|
WebObjects 5.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.webobjects.eocontrol.EOQualifier
|
+--com.webobjects.eoaccess.EOSQLQualifier
EOSQLQualifier contains unstructured text that can be transformed into a SQL expression. EOSQLQualifier is provided for backwards compatibility with EOF 1.x products and to provide a way that programmers can create SQL expressions with any arbitrary SQL. In general, programmers should use EOQualifier whenever possible and use EOSQLQualifier only in cases that absolutely require it.
An EOSQLQualifier holds qualifications expressed in the target query language and rooted in a single EOEntity. EOSQLQualifier formats differ from EOQualifier formats. EOSQLQualifier formats are not parsed, they are simply scanned for keys and format characters. EOSQLQualifiers should only be used when one wants to use a query available in the database query language that cannot be expressed using the EOQualifier formats.
EOSQLQualifiers cannot be applied to objects in memory. See EOQualifierConcepts for more information.
EOFetchSpecification.setHints(NSDictionary hints),
EOAdaptorChannel.evaluateExpression(EOSQLExpression expression),
EOQualifier, Serialized Form| Inner classes inherited from class com.webobjects.eocontrol.EOQualifier |
EOQualifier.Comparison, EOQualifier.ComparisonSupport, EOQualifier.QualifierVariableSubstitutionException |
| Inner classes inherited from class com.webobjects.eoaccess.EOQualifierSQLGeneration |
EOQualifierSQLGeneration.Support |
| Fields inherited from class com.webobjects.eocontrol.EOQualifier |
QualifierOperatorCaseInsensitiveLike, QualifierOperatorContains, QualifierOperatorEqual, QualifierOperatorGreaterThan, QualifierOperatorGreaterThanOrEqualTo, QualifierOperatorLessThan, QualifierOperatorLessThanOrEqualTo, QualifierOperatorLike, QualifierOperatorNotEqual |
| Constructor Summary | |
EOSQLQualifier(EOEntity entity,
String qualifierFormat,
Object[] arguments)
Deprecated. Creates an EOSQLQualifier |
|
| Method Summary | |
void |
addQualifierKeysToSet(NSMutableSet qualKeys)
Deprecated. Adds the receiver's qualifier keys to qualifierKeys. |
Object |
clone()
Deprecated. Returns an exact replica of the receiver. |
void |
conjoinWithQualifier(EOSQLQualifier qualifier)
Deprecated. |
void |
disjoinWithQualifier(EOSQLQualifier qualifier)
Deprecated. |
void |
encodeIntoPropertyList(NSMutableDictionary result)
Deprecated. |
boolean |
isEmpty()
Deprecated. Returns true if the qualifier is empty, false otherwise. |
void |
negate()
Deprecated. |
EOQualifier |
qualifierMigratedFromEntityRelationshipPath(EOEntity entity,
String relationshipPath)
Deprecated. Creates a new EOQualifier by moving the qualifier from the source entity to the destination of the relationship path. |
EOQualifier |
qualifierWithBindings(NSDictionary bindings,
boolean requiresAll)
Deprecated. Returns a new qualifier substituting all variables with values found in bindings. |
EOQualifier |
schemaBasedQualifierWithRootEntity(EOEntity entity)
Deprecated. Returns an equivalent EOQualifier with object references replaced by foreign key references. |
void |
setUsesDistinct(boolean bool)
Deprecated. |
String |
sqlStringForSQLExpression(EOSQLExpression sqlExpression)
Deprecated. Returns the SQL text that is represented by the EOSQLExpression object. |
String |
toString()
Deprecated. |
boolean |
usesDistinct()
Deprecated. |
void |
validateKeysWithRootClassDescription(EOClassDescription classDesc)
Deprecated. Ensures that the receiver contains keys and key paths that belong to or originate from classDescription. |
String |
valueForSQLExpression(EOSQLExpression context)
Deprecated. Conformance to EOSQLExpression.SQLValue. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public EOSQLQualifier(EOEntity entity,
String qualifierFormat,
Object[] arguments)
entity - an EOEntityqualifierFormat - a format Stringarguments - an array of Objects to substitute into qualifierFormat| Method Detail |
public void addQualifierKeysToSet(NSMutableSet qualKeys)
EOQualifierSubclasses of EOQualifier must implement this method.
addQualifierKeysToSet in class EOQualifiercom.webobjects.eocontrol.EOQualifierqualifierKeys - The mutable array of qualifier keyspublic Object clone()
EOQualifierclone in class EOQualifiercom.webobjects.eocontrol.EOQualifierpublic void conjoinWithQualifier(EOSQLQualifier qualifier)
public void disjoinWithQualifier(EOSQLQualifier qualifier)
public void encodeIntoPropertyList(NSMutableDictionary result)
public boolean isEmpty()
true if the qualifier is empty, false otherwise.true if the qualifier is emptypublic void negate()
public EOQualifier qualifierMigratedFromEntityRelationshipPath(EOEntity entity,
String relationshipPath)
EOQualifierSQLGenerationrelationshipPath.qualifierMigratedFromEntityRelationshipPath in interface EOQualifierSQLGenerationcom.webobjects.eoaccess.EOQualifierSQLGenerationentity - the source entityrelationshipPath - the migration relationship path
public EOQualifier qualifierWithBindings(NSDictionary bindings,
boolean requiresAll)
EOQualifiertrue, any variable not found
in bindings throws an exception. If requiresAll is false, missing
variable values cause the qualifier node to be pruned from the tree.qualifierWithBindings in class EOQualifiercom.webobjects.eocontrol.EOQualifierbindings - bindings dictionaryrequiresAll - Value indicating if all the criteria are requiredpublic EOQualifier schemaBasedQualifierWithRootEntity(EOEntity entity)
EOQualifierSQLGenerationschemaBasedQualifierWithRootEntity in interface EOQualifierSQLGenerationcom.webobjects.eoaccess.EOQualifierSQLGenerationentity - the source entitypublic void setUsesDistinct(boolean bool)
public String sqlStringForSQLExpression(EOSQLExpression sqlExpression)
EOQualifierSQLGenerationsqlStringForSQLExpression in interface EOQualifierSQLGenerationcom.webobjects.eoaccess.EOQualifierSQLGenerationsqlExpression - the EOSQLExpression object to be converted into textpublic String toString()
toString in class Objectpublic boolean usesDistinct()
public void validateKeysWithRootClassDescription(EOClassDescription classDesc)
EOQualifiernull to indicate
that the keys contained by the qualifier are valid.validateKeysWithRootClassDescription in class EOQualifiercom.webobjects.eocontrol.EOQualifierclassDescription - The EOClassDescription to be checked with the receiverpublic String valueForSQLExpression(EOSQLExpression context)
valueForSQLExpression in interface EOSQLExpression.SQLValuecontext - specify SQL expression
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||