WebObjects 5.4.2

com.webobjects.eoaccess
Interface EOQualifierSQLGeneration

All Known Implementing Classes:
EOSQLQualifier

public interface EOQualifierSQLGeneration

All qualifiers that can be used to generate SQL queries implement this interface.

See Also:
EOFetchSpecification.setHints(NSDictionary hints), EOAdaptorChannel.evaluateExpression(EOSQLExpression expression), EOQualifier, EOSQLQualifier

Nested Class Summary
static class EOQualifierSQLGeneration.Support
          The abstract EOQualifierSQLGeneration.Support class provides basic functionality to subclasses that implement the EOQualifierSQLGeneration interface for specific qualifier types.
 
Method Summary
 EOQualifier qualifierMigratedFromEntityRelationshipPath(EOEntity entity, String relationshipPath)
          Creates a new EOQualifier by moving the qualifier from the source entity to the destination of the relationship path.
 EOQualifier schemaBasedQualifierWithRootEntity(EOEntity entity)
          Returns an equivalent EOQualifier with object references replaced by foreign key references.
 String sqlStringForSQLExpression(EOSQLExpression sqlExpression)
          Returns the SQL text that is represented by the EOSQLExpression object.
 

Method Detail

sqlStringForSQLExpression

String sqlStringForSQLExpression(EOSQLExpression sqlExpression)
Returns the SQL text that is represented by the EOSQLExpression object.

Parameters:
sqlExpression - the EOSQLExpression object to be converted into text
Returns:
the String equivalent

schemaBasedQualifierWithRootEntity

EOQualifier schemaBasedQualifierWithRootEntity(EOEntity entity)
Returns an equivalent EOQualifier with object references replaced by foreign key references.

Parameters:
entity - the source entity
Returns:
the equivalent EOQualifier

qualifierMigratedFromEntityRelationshipPath

EOQualifier qualifierMigratedFromEntityRelationshipPath(EOEntity entity,
                                                        String relationshipPath)
Creates a new EOQualifier by moving the qualifier from the source entity to the destination of the relationship path. All of the keys are migrated across the specified relationshipPath.

Parameters:
entity - the source entity
relationshipPath - the migration relationship path
Returns:
the migrated EOQualifier

Last updated June 2008

Copyright © 2000-2008 Apple Inc.