com.webobjects.eoaccess
Class EOQualifierSQLGeneration.Support
java.lang.Object
|
+--com.webobjects.eoaccess.EOQualifierSQLGeneration.Support
- Enclosing class:
- EOQualifierSQLGeneration
- public abstract static class EOQualifierSQLGeneration.Support
- extends Object
The abstract EOQualifierSQLGeneration.Support class provides basic
functionality to subclasses that implement the EOQualifierSQLGeneration
interface for specific qualifier types.
- See Also:
EOQualifierSQLGeneration
,
EOSQLQualifier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EOQualifierSQLGeneration.Support
public EOQualifierSQLGeneration.Support()
qualifierMigratedFromEntityRelationshipPath
public abstract EOQualifier qualifierMigratedFromEntityRelationshipPath(EOQualifier qualifier,
EOEntity entity,
String relationshipPath)
- Creates a new version of
qualifier
, translates all the keys to
work with the entity specified in relationshipPath
.
The receiver's keys are all specified in terms of entity
.
For example, assume that an Employee entity has a relationship named
"department" to a Department entity. You could migrate a qualifier
described in terms of the Employee entity (department.name = "Finance",
for example) to a qualifier described in terms of the Department
entity (name = "Finance"). To do so, send a
qualifierMigratedFromEntityRelationshipPath
message with
the Employee entity as the entity and "department" as the
relationship path.
- Parameters:
qualifier
- original EOQualifierentity
- original EOEntityrelationshipPath
- relationship to migrate across- Returns:
- an EOQualifier
schemaBasedQualifierWithRootEntity
public abstract EOQualifier schemaBasedQualifierWithRootEntity(EOQualifier qualifier,
EOEntity entity)
- Returns an EOQualifier that is translated so that it is based on the foreign keys of the entity.
- Parameters:
qualifier
- an EOQualifierentity
- an EOEntity- Returns:
- an EOQualifier
setSupportForClass
public static void setSupportForClass(EOQualifierSQLGeneration.Support support,
Class aClass)
- Sets the Support class to be used internally for the specified
qualifier class.
- Parameters:
support
- the Support class to be usedaClass
- the associated EOQualifier class
sqlStringForSQLExpression
public abstract String sqlStringForSQLExpression(EOQualifier qualifier,
EOSQLExpression sqlExpression)
- Returns the SQL String for the qualifier within the context of
sqlExpression
.
- Parameters:
qualifier
- an EOQualifier within sqlExpressionsqlExpression
- containing EOSQLExpression- Returns:
- an SQL String
supportForClass
public static EOQualifierSQLGeneration.Support supportForClass(Class aClass)
- Returns the Support class for the specified qualifier class.
- Parameters:
aClass
- the EOQualifier class involved- Returns:
- the Support class associated with
aClass
Copyright © 2003 Apple Computer, Inc.