public class ERXExistsQualifier extends EOQualifier implements Cloneable, NSCoding, EOKeyValueArchiving
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)| Modifier and Type | Class and Description | 
|---|---|
| static class  | ERXExistsQualifier.ExistsQualifierSQLGenerationSupportImplements the SQL generation for the exists qualifier. | 
EOQualifier.Comparison, EOQualifier.ComparisonSupport, EOQualifier.QualifierVariableSubstitutionExceptionNSCoding._BigDecimalSupport, NSCoding._BigIntegerSupport, NSCoding._BooleanSupport, NSCoding._ByteSupport, NSCoding._CharacterSupport, NSCoding._DateSupport, NSCoding._DoubleSupport, NSCoding._FloatSupport, NSCoding._IntegerSupport, NSCoding._LongSupport, NSCoding._NumberSupport, NSCoding._ShortSupport, NSCoding._StringSupport, NSCoding.SupportEOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support| Modifier and Type | Field and Description | 
|---|---|
| protected String | baseKeyPathHolds the key path from the base entity to the entity to which the exists clause (and qualifier) will be applied. | 
| static String | EXISTS_ALIAS | 
| protected EOQualifier | subqualifierHolds the subqualifier that will be applied in the exists clause. | 
| protected boolean | usesInQualInstead | 
| static boolean | UseSQLExistsClause | 
| static boolean | UseSQLInClause | 
_CLASS, QualifierOperatorCaseInsensitiveLike, QualifierOperatorContains, QualifierOperatorEqual, QualifierOperatorGreaterThan, QualifierOperatorGreaterThanOrEqualTo, QualifierOperatorLessThan, QualifierOperatorLessThanOrEqualTo, QualifierOperatorLike, QualifierOperatorNotEqual_CLASS| Constructor and Description | 
|---|
| ERXExistsQualifier(EOQualifier subqualifier)Public single argument constructor. | 
| ERXExistsQualifier(EOQualifier subqualifier,
                  String baseKeyPath)Public two argument constructor. | 
| ERXExistsQualifier(EOQualifier subqualifier,
                  String baseKeyPath,
                  boolean usesInQualInstead)Public three argument constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addQualifierKeysToSet(NSMutableSet aSet)Only used with qualifier keys which are not supported in this qualifier at this time. | 
| String | baseKeyPath()Gets the key path from the base base entity to the entity to which the exists clause (and qualifier) will be applied. | 
| Class | classForCoder() | 
| Object | clone()Implementation of the Clonable interface. | 
| static Object | decodeObject(NSCoder coder) | 
| static Object | decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver) | 
| void | encodeWithCoder(NSCoder coder) | 
| void | encodeWithKeyValueArchiver(EOKeyValueArchiver archiver) | 
| boolean | evaluateWithObject(Object object) | 
| EOQualifier | qualifierWithBindings(NSDictionary someBindings,
                     boolean requiresAll)Creates another qualifier after replacing the values of the bindings. | 
| void | setUsesInQualInstead(boolean usesInQualInstead) | 
| EOQualifier | subqualifier()Gets the subqualifier that will be applied in the exists clause. | 
| String | toString()Description of the qualifier. | 
| boolean | usesInQualInstead() | 
| void | validateKeysWithRootClassDescription(EOClassDescription aClassDescription)This qualifier does not perform validation. | 
_accept, _isEmpty, allQualifierKeys, allQualifierOperators, bindingKeys, filterArrayWithQualifier, filteredArrayWithQualifier, keyPathForBindingKey, operatorSelectorForSelectorNamed, operatorSelectorForString, qualifierToMatchAllValues, qualifierToMatchAnyValue, qualifierWithQualifierFormat, relationalQualifierOperators, stringForOperatorSelectorpublic static final String EXISTS_ALIAS
public static final boolean UseSQLInClause
public static final boolean UseSQLExistsClause
protected boolean usesInQualInstead
protected String baseKeyPath
protected EOQualifier subqualifier
public ERXExistsQualifier(EOQualifier subqualifier)
subqualifier - sub-qualifierpublic ERXExistsQualifier(EOQualifier subqualifier, 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.public ERXExistsQualifier(EOQualifier subqualifier, String baseKeyPath, boolean usesInQualInstead)
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.usesInQualInstead - when true will convert the EXISTS clause into an IN clause - to be used if it makes the query plan faster.public EOQualifier subqualifier()
public String baseKeyPath()
public void addQualifierKeysToSet(NSMutableSet aSet)
addQualifierKeysToSet in class EOQualifieraSet - of qualifier keyspublic EOQualifier qualifierWithBindings(NSDictionary someBindings, boolean requiresAll)
qualifierWithBindings in class EOQualifiersomeBindings - some bindingsrequiresAll - tells if the qualifier requires all bindingspublic void validateKeysWithRootClassDescription(EOClassDescription aClassDescription)
validateKeysWithRootClassDescription in class EOQualifieraClassDescription - to validation the qualifier keys against.public String toString()
public Object clone()
clone in class EOQualifierpublic Class classForCoder()
classForCoder in interface NSCodingpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic void encodeWithKeyValueArchiver(EOKeyValueArchiver archiver)
encodeWithKeyValueArchiver in interface EOKeyValueArchivingpublic static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
public boolean evaluateWithObject(Object object)
evaluateWithObject in interface EOQualifierEvaluationevaluateWithObject in class EOQualifierpublic boolean usesInQualInstead()
public void setUsesInQualInstead(boolean usesInQualInstead)
Copyright © 2002 – 2025 Project Wonder.