WebObjects 5.2

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

Constructor Summary
EOQualifierSQLGeneration.Support()
           
 
Method Summary
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.
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.
static void setSupportForClass(EOQualifierSQLGeneration.Support support, Class aClass)
          Sets the Support class to be used internally for the specified qualifier class.
abstract  String sqlStringForSQLExpression(EOQualifier qualifier, EOSQLExpression sqlExpression)
          Returns the SQL String for the qualifier within the context of sqlExpression.
static EOQualifierSQLGeneration.Support supportForClass(Class aClass)
          Returns the Support class for the specified qualifier class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EOQualifierSQLGeneration.Support

public EOQualifierSQLGeneration.Support()
Method Detail

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 EOQualifier
entity - original EOEntity
relationshipPath - 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 EOQualifier
entity - 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 used
aClass - 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 sqlExpression
sqlExpression - 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

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.