public static class ERXExtensions.KeyValueQualifierSQLGenerationSupport extends EOQualifierSQLGeneration.Support
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HANDLES_KEY_PATH_WITH_DERIVED_ATTRIBUTE_PROPERTY_NAME |
| Constructor and Description |
|---|
KeyValueQualifierSQLGenerationSupport(EOQualifierSQLGeneration.Support old) |
| Modifier and Type | Method and Description |
|---|---|
static EOAttribute |
destinationAttribute(EOEntity rootEntity,
java.lang.String keyPath)
Returns the last attribute referenced by key path.
|
static java.lang.String |
formatValueForAttribute(EOSQLExpression e,
java.lang.Object value,
EOAttribute attribute) |
static boolean |
isKeyPathWithDerivedAttributeCase(EOEntity entity,
EOQualifier eoqualifier)
Normally EOF can handle key value qualifiers with a key corresponding to a
derived attribute, i.e.
|
static NSArray<java.lang.String> |
parseDefinitionPropertyKeys(EOAttribute derivedAttribute)
Given the definition of a derived attribute belonging to the entity provided
this method parses the definition looking for key paths that represent properties.
|
EOQualifier |
qualifierMigratedFromEntityRelationshipPath(EOQualifier eoqualifier,
EOEntity eoentity,
java.lang.String s) |
EOQualifier |
schemaBasedQualifierWithRootEntity(EOQualifier eoqualifier,
EOEntity eoentity) |
java.lang.String |
sqlStringForAttributeValue(EOSQLExpression e,
EOAttribute att,
java.lang.Object value)
Uses the EOSQLExpression provided to get the SQL string for value and
corresponding attribute.
|
java.lang.String |
sqlStringForSQLExpression(EOQualifier eoqualifier,
EOSQLExpression e) |
java.lang.String |
sqlStringForSQLExpressionWithKeyPathWithDerivedAttribute(EOQualifier eoqualifier,
EOSQLExpression e)
This method handles an edge case where the key of the qualifier is a key path and
the last key in the key path references a derived attribute.
|
_flattenRelationshipPath, _optimizeQualifierKeyPath, _qualifierMigratedFromEntityRelationshipPath, _qualifierMigratedToSubEntityFromParentEntity, _schemaBasedQualifierWithRootEntity, _sqlStringForSQLExpression, _translateKeyAcrossRelationshipPath, setSupportForClass, supportForClasspublic static final java.lang.String HANDLES_KEY_PATH_WITH_DERIVED_ATTRIBUTE_PROPERTY_NAME
public KeyValueQualifierSQLGenerationSupport(EOQualifierSQLGeneration.Support old)
public java.lang.String sqlStringForSQLExpression(EOQualifier eoqualifier, EOSQLExpression e)
sqlStringForSQLExpression in class EOQualifierSQLGeneration.Supportpublic java.lang.String sqlStringForSQLExpressionWithKeyPathWithDerivedAttribute(EOQualifier eoqualifier, EOSQLExpression e)
eoqualifier - An EOKeyValueQualifier with a key that is a key path and the last
component in the key path is a derived attribute.e - The EOSQLExpression participating in the SQL generation.public java.lang.String sqlStringForAttributeValue(EOSQLExpression e, EOAttribute att, java.lang.Object value)
e - The EOSQLExpression to use to generate the SQLatt - The attribute corresponding to the value passed invalue - The value to convert to SQLpublic static java.lang.String formatValueForAttribute(EOSQLExpression e, java.lang.Object value, EOAttribute attribute)
public static boolean isKeyPathWithDerivedAttributeCase(EOEntity entity, EOQualifier eoqualifier)
entity - The entity where the eoqualifier is rootedeoqualifier - A qualifier to testpublic static EOAttribute destinationAttribute(EOEntity rootEntity, java.lang.String keyPath)
rootEntity - The entity where the key path begins.keyPath - The key path leading to an attribute.public static NSArray<java.lang.String> parseDefinitionPropertyKeys(EOAttribute derivedAttribute)
derivedAttribute - An EOAttribute with a definitionpublic EOQualifier schemaBasedQualifierWithRootEntity(EOQualifier eoqualifier, EOEntity eoentity)
schemaBasedQualifierWithRootEntity in class EOQualifierSQLGeneration.Supportpublic EOQualifier qualifierMigratedFromEntityRelationshipPath(EOQualifier eoqualifier, EOEntity eoentity, java.lang.String s)
qualifierMigratedFromEntityRelationshipPath in class EOQualifierSQLGeneration.SupportCopyright © 2002 – 2022 Project Wonder.