|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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 FormNested Class Summary |
Nested classes inherited from class com.webobjects.eocontrol.EOQualifier |
EOQualifier.Comparison, EOQualifier.ComparisonSupport, EOQualifier.QualifierVariableSubstitutionException |
Nested classes inherited from class com.webobjects.eoaccess.EOQualifierSQLGeneration |
EOQualifierSQLGeneration.Support |
Field Summary |
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)
EOQualifier
Subclasses of EOQualifier must implement this method.
addQualifierKeysToSet
in class EOQualifier
qualKeys
- The mutable array of qualifier keyspublic Object clone()
EOQualifier
clone
in class EOQualifier
public 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)
EOQualifierSQLGeneration
relationshipPath
.
qualifierMigratedFromEntityRelationshipPath
in interface EOQualifierSQLGeneration
entity
- the source entityrelationshipPath
- the migration relationship path
public EOQualifier qualifierWithBindings(NSDictionary bindings, boolean requiresAll)
EOQualifier
true
, 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 EOQualifier
bindings
- bindings dictionaryrequiresAll
- Value indicating if all the criteria are required
public EOQualifier schemaBasedQualifierWithRootEntity(EOEntity entity)
EOQualifierSQLGeneration
schemaBasedQualifierWithRootEntity
in interface EOQualifierSQLGeneration
entity
- the source entity
public void setUsesDistinct(boolean bool)
public String sqlStringForSQLExpression(EOSQLExpression sqlExpression)
EOQualifierSQLGeneration
sqlStringForSQLExpression
in interface EOQualifierSQLGeneration
sqlExpression
- the EOSQLExpression object to be converted into text
public String toString()
public boolean usesDistinct()
public void validateKeysWithRootClassDescription(EOClassDescription classDesc)
EOQualifier
null
to indicate
that the keys contained by the qualifier are valid.
validateKeysWithRootClassDescription
in class EOQualifier
classDesc
- The EOClassDescription to be checked with the receiverpublic String valueForSQLExpression(EOSQLExpression context)
valueForSQLExpression
in interface EOSQLExpression.SQLValue
context
- specify SQL expression
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |