Examples of useUpperCaseForComparisons()


Examples of org.eclipse.persistence.internal.helper.DatabaseField.useUpperCaseForComparisons()

            if (!metadataDescriptor.hasIdAccessor() && !metadataDescriptor.hasEmbeddedId()) {
                DatabaseField pkField = new DatabaseField(MetadataConstants.MAPPED_SUPERCLASS_RESERVED_PK_NAME);
                if (this.useDelimitedIdentifier()) {
                    pkField.setUseDelimiters(true);
                } else if (this.getShouldForceFieldNamesToUpperCase()) {
                    pkField.useUpperCaseForComparisons(true);
                }

                metadataDescriptor.addPrimaryKeyField(pkField);
            }
           
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.DatabaseField.useUpperCaseForComparisons()

            if (!metadataDescriptor.hasIdAccessor() && !metadataDescriptor.hasEmbeddedId()) {
                DatabaseField pkField = new DatabaseField(MetadataConstants.MAPPED_SUPERCLASS_RESERVED_PK_NAME);
                if (this.useDelimitedIdentifier()) {
                    pkField.setUseDelimiters(true);
                } else if (this.getShouldForceFieldNamesToUpperCase()) {
                    pkField.useUpperCaseForComparisons(true);
                }

                metadataDescriptor.addPrimaryKeyField(pkField);
            }
           
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.DatabaseField.useUpperCaseForComparisons()

            }
            DatabaseField column = new DatabaseField(columnName);

            // Force field names to upper case is set.
            if (getPlatform().shouldForceFieldNamesToUpperCase()) {
                column.useUpperCaseForComparisons(true);
            }
            columnNames.addElement(column);
        }
        return columnNames;
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.DatabaseField.useUpperCaseForComparisons()

                boolean useDelimitedIdentifier = (embeddableDescriptor.getProject() != null) ? embeddableDescriptor.getProject().useDelimitedIdentifier() : false;
                DatabaseField overrideField = attributeOverride.getColumn().getDatabaseField();
                if (useDelimitedIdentifier){
                    overrideField.setUseDelimiters(useDelimitedIdentifier);
                } else if (embeddableDescriptor.getProject().getShouldForceFieldNamesToUpperCase() && !overrideField.shouldUseDelimiters()) {
                    overrideField.useUpperCaseForComparisons(true);
                }
                addFieldNameTranslation(aggregateObjectMapping, attributeName, overrideField, mappingAccessor);
            }
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.DatabaseField.useUpperCaseForComparisons()

                            for (DatabaseRecord record : columnInfo) {
                                String fieldName = (String)record.get(columnNameLookupField);
                                if (fieldName != null && fieldName.length() > 0) {
                                    DatabaseField column = new DatabaseField(fieldName);
                                    if (session.getPlatform().shouldForceFieldNamesToUpperCase()) {
                                        column.useUpperCaseForComparisons(true);
                                    }
                                    String schema = (String)record.get(schemaLookupField);
                                    // Check the schema as well.  Ignore columns for other schema if a schema match is found.
                                    if (schemaMatchFound) {
                                        if (qualifier.equalsIgnoreCase(schema)) {
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.DatabaseField.useUpperCaseForComparisons()

            if (eResult.getDiscriminatorColumn() !=null){
                DatabaseField descriminatorField = new DatabaseField(eResult.getDiscriminatorColumn());
                if (project.useDelimitedIdentifier()) {
                    descriminatorField.setUseDelimiters(true);
                } else if (project.getShouldForceFieldNamesToUpperCase() && !descriminatorField.shouldUseDelimiters()){
                    descriminatorField.useUpperCaseForComparisons(true);
                }
                entityResult.setDiscriminatorColumn(descriminatorField);
            }
       
            // Add the result to the SqlResultSetMapping.
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.DatabaseField.useUpperCaseForComparisons()

            if (!metadataDescriptor.hasIdAccessor() && !metadataDescriptor.hasEmbeddedId()) {
                DatabaseField pkField = new DatabaseField(MetadataConstants.MAPPED_SUPERCLASS_RESERVED_PK_NAME);
                if (this.useDelimitedIdentifier()) {
                    pkField.setUseDelimiters(true);
                } else if (this.getShouldForceFieldNamesToUpperCase()) {
                    pkField.useUpperCaseForComparisons(true);
                }

                metadataDescriptor.addPrimaryKeyField(pkField);
            }
           
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.DatabaseField.useUpperCaseForComparisons()

            }
            DatabaseField column = new DatabaseField(columnName);

            // Force field names to upper case is set.
            if (getPlatform().shouldForceFieldNamesToUpperCase()) {
                column.useUpperCaseForComparisons(true);
            }
            columnNames.addElement(column);
        }
        return columnNames;
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.DatabaseField.useUpperCaseForComparisons()

            if (eResult.getDiscriminatorColumn() !=null){
                DatabaseField descriminatorField = new DatabaseField(eResult.getDiscriminatorColumn());
                if (project.useDelimitedIdentifier()) {
                    descriminatorField.setUseDelimiters(true);
                } else if (project.getShouldForceFieldNamesToUpperCase() && !descriminatorField.shouldUseDelimiters()){
                    descriminatorField.useUpperCaseForComparisons(true);
                }
                entityResult.setDiscriminatorColumn(descriminatorField);
            }
       
            // Add the result to the SqlResultSetMapping.
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.DatabaseField.useUpperCaseForComparisons()

                boolean useDelimitedIdentifier = (embeddableDescriptor.getProject() != null) ? embeddableDescriptor.getProject().useDelimitedIdentifier() : false;
                DatabaseField overrideField = attributeOverride.getColumn().getDatabaseField();
                if (useDelimitedIdentifier){
                    overrideField.setUseDelimiters(useDelimitedIdentifier);
                } else if (embeddableDescriptor.getProject().getShouldForceFieldNamesToUpperCase() && !overrideField.shouldUseDelimiters()) {
                    overrideField.useUpperCaseForComparisons(true);
                }
                addFieldNameTranslation(aggregateObjectMapping, attributeName, overrideField, mappingAccessor);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.