|
Project Wonder 5.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.eocontrol.EOQualifier
er.extensions.eof.qualifiers.ERXExistsQualifier
public class ERXExistsQualifier
A qualifier that qualifies using an EXISTS clause.
It will produce an SQL clause like the following:
select t0.ID, t0.ATT_1, ... t0.ATT_N from FIRST_TABLE t0 where EXISTS (select t1.ID from ANOTHER_TABLE where t1.ATT_1 = ? and t1.FIRST_TABLE_ID = t0.ID)
Nested Class Summary | |
---|---|
static class |
ERXExistsQualifier.ExistsQualifierSQLGenerationSupport
Implements the SQL generation for the exists qualifier. |
Nested classes/interfaces inherited from class com.webobjects.eocontrol.EOQualifier |
---|
com.webobjects.eocontrol.EOQualifier.Comparison, com.webobjects.eocontrol.EOQualifier.ComparisonSupport, com.webobjects.eocontrol.EOQualifier.QualifierVariableSubstitutionException |
Field Summary | |
---|---|
protected java.lang.String |
baseKeyPath
Holds the key path from the base entity to the entity to which the exists clause (and qualifier) will be applied. |
static org.apache.log4j.Logger |
log
|
protected com.webobjects.eocontrol.EOQualifier |
subqualifier
Holds the subqualifier that will be applied in the exists clause. |
Fields inherited from class com.webobjects.eocontrol.EOQualifier |
---|
_CLASS, QualifierOperatorCaseInsensitiveLike, QualifierOperatorContains, QualifierOperatorEqual, QualifierOperatorGreaterThan, QualifierOperatorGreaterThanOrEqualTo, QualifierOperatorLessThan, QualifierOperatorLessThanOrEqualTo, QualifierOperatorLike, QualifierOperatorNotEqual |
Constructor Summary | |
---|---|
ERXExistsQualifier(com.webobjects.eocontrol.EOQualifier subqualifier)
Public single argument constructor. |
|
ERXExistsQualifier(com.webobjects.eocontrol.EOQualifier subqualifier,
java.lang.String baseKeyPath)
Public two argument constructor. |
Method Summary | |
---|---|
void |
addQualifierKeysToSet(com.webobjects.foundation.NSMutableSet aSet)
Only used with qualifier keys which are not supported in this qualifier at this time. |
java.lang.String |
baseKeyPath()
Gets the key path from the base base entity to the entity to which the exists clause (and qualifier) will be applied. |
java.lang.Object |
clone()
Implementation of the Clonable interface. |
com.webobjects.eocontrol.EOQualifier |
qualifierWithBindings(com.webobjects.foundation.NSDictionary someBindings,
boolean requiresAll)
Creates another qualifier after replacing the values of the bindings. |
com.webobjects.eocontrol.EOQualifier |
subqualifier()
Gets the subqualifier that will be applied in the exists clause. |
java.lang.String |
toString()
Description of the qualifier. |
void |
validateKeysWithRootClassDescription(com.webobjects.eocontrol.EOClassDescription aClassDescription)
This qualifier does not perform validation. |
Methods inherited from class com.webobjects.eocontrol.EOQualifier |
---|
_accept, _isEmpty, allQualifierKeys, allQualifierOperators, bindingKeys, evaluateWithObject, filterArrayWithQualifier, filteredArrayWithQualifier, keyPathForBindingKey, operatorSelectorForSelectorNamed, operatorSelectorForString, qualifierToMatchAllValues, qualifierToMatchAnyValue, qualifierWithQualifierFormat, relationalQualifierOperators, stringForOperatorSelector |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final org.apache.log4j.Logger log
protected java.lang.String baseKeyPath
protected com.webobjects.eocontrol.EOQualifier subqualifier
Constructor Detail |
---|
public ERXExistsQualifier(com.webobjects.eocontrol.EOQualifier subqualifier)
subqualifier
- sub-qualifierpublic ERXExistsQualifier(com.webobjects.eocontrol.EOQualifier subqualifier, java.lang.String baseKeyPath)
subqualifier
- sub qualifierbaseKeyPath
- to the entity to which the subqualifier will be applied. Note that this should end in a
relationship rather than an attribute, e.g., the key path from an Employee might be department.division
.Method Detail |
---|
public com.webobjects.eocontrol.EOQualifier subqualifier()
public java.lang.String baseKeyPath()
public void addQualifierKeysToSet(com.webobjects.foundation.NSMutableSet aSet)
addQualifierKeysToSet
in class com.webobjects.eocontrol.EOQualifier
aSet
- of qualifier keyspublic com.webobjects.eocontrol.EOQualifier qualifierWithBindings(com.webobjects.foundation.NSDictionary someBindings, boolean requiresAll)
qualifierWithBindings
in class com.webobjects.eocontrol.EOQualifier
someBindings
- some bindingsrequiresAll
- tells if the qualifier requires all bindings
public void validateKeysWithRootClassDescription(com.webobjects.eocontrol.EOClassDescription aClassDescription)
validateKeysWithRootClassDescription
in class com.webobjects.eocontrol.EOQualifier
aClassDescription
- to validation the qualifier keys against.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class com.webobjects.eocontrol.EOQualifier
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |