public class ERXExistsQualifier extends com.webobjects.eocontrol.EOQualifier implements Cloneable, com.webobjects.foundation.NSCoding, com.webobjects.eocontrol.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.ExistsQualifierSQLGenerationSupport
Implements the SQL generation for the exists qualifier.
|
com.webobjects.eocontrol.EOQualifier.Comparison, com.webobjects.eocontrol.EOQualifier.ComparisonSupport, com.webobjects.eocontrol.EOQualifier.QualifierVariableSubstitutionException
com.webobjects.foundation.NSCoding._BigDecimalSupport, com.webobjects.foundation.NSCoding._BigIntegerSupport, com.webobjects.foundation.NSCoding._BooleanSupport, com.webobjects.foundation.NSCoding._ByteSupport, com.webobjects.foundation.NSCoding._CharacterSupport, com.webobjects.foundation.NSCoding._DateSupport, com.webobjects.foundation.NSCoding._DoubleSupport, com.webobjects.foundation.NSCoding._FloatSupport, com.webobjects.foundation.NSCoding._IntegerSupport, com.webobjects.foundation.NSCoding._LongSupport, com.webobjects.foundation.NSCoding._NumberSupport, com.webobjects.foundation.NSCoding._ShortSupport, com.webobjects.foundation.NSCoding._StringSupport, com.webobjects.foundation.NSCoding.Support
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.EOKeyValueArchiving.Support
Modifier and Type | Field and Description |
---|---|
protected String |
baseKeyPath
Holds 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 com.webobjects.eocontrol.EOQualifier |
subqualifier
Holds 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
Constructor and Description |
---|
ERXExistsQualifier(com.webobjects.eocontrol.EOQualifier subqualifier)
Public single argument constructor.
|
ERXExistsQualifier(com.webobjects.eocontrol.EOQualifier subqualifier,
String baseKeyPath)
Public two argument constructor.
|
ERXExistsQualifier(com.webobjects.eocontrol.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(com.webobjects.foundation.NSCoder coder) |
static Object |
decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver unarchiver) |
void |
encodeWithCoder(com.webobjects.foundation.NSCoder coder) |
void |
encodeWithKeyValueArchiver(com.webobjects.eocontrol.EOKeyValueArchiver archiver) |
boolean |
evaluateWithObject(Object object) |
com.webobjects.eocontrol.EOQualifier |
qualifierWithBindings(NSDictionary someBindings,
boolean requiresAll)
Creates another qualifier after replacing the values of the bindings.
|
void |
setUsesInQualInstead(boolean usesInQualInstead) |
com.webobjects.eocontrol.EOQualifier |
subqualifier()
Gets the subqualifier that will be applied in the exists clause.
|
String |
toString()
Description of the qualifier.
|
boolean |
usesInQualInstead() |
void |
validateKeysWithRootClassDescription(com.webobjects.eocontrol.EOClassDescription aClassDescription)
This qualifier does not perform validation.
|
_accept, _isEmpty, allQualifierKeys, allQualifierOperators, bindingKeys, filterArrayWithQualifier, filteredArrayWithQualifier, keyPathForBindingKey, operatorSelectorForSelectorNamed, operatorSelectorForString, qualifierToMatchAllValues, qualifierToMatchAnyValue, qualifierWithQualifierFormat, relationalQualifierOperators, stringForOperatorSelector
public static final String EXISTS_ALIAS
public static final boolean UseSQLInClause
public static final boolean UseSQLExistsClause
protected boolean usesInQualInstead
protected String baseKeyPath
protected com.webobjects.eocontrol.EOQualifier subqualifier
public ERXExistsQualifier(com.webobjects.eocontrol.EOQualifier subqualifier)
subqualifier
- sub-qualifierpublic ERXExistsQualifier(com.webobjects.eocontrol.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(com.webobjects.eocontrol.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 com.webobjects.eocontrol.EOQualifier subqualifier()
public String baseKeyPath()
public void addQualifierKeysToSet(NSMutableSet aSet)
addQualifierKeysToSet
in class com.webobjects.eocontrol.EOQualifier
aSet
- of qualifier keyspublic com.webobjects.eocontrol.EOQualifier qualifierWithBindings(NSDictionary someBindings, boolean requiresAll)
qualifierWithBindings
in class com.webobjects.eocontrol.EOQualifier
someBindings
- some bindingsrequiresAll
- tells if the qualifier requires all bindingspublic void validateKeysWithRootClassDescription(com.webobjects.eocontrol.EOClassDescription aClassDescription)
validateKeysWithRootClassDescription
in class com.webobjects.eocontrol.EOQualifier
aClassDescription
- to validation the qualifier keys against.public String toString()
public Object clone()
clone
in class com.webobjects.eocontrol.EOQualifier
public Class classForCoder()
classForCoder
in interface com.webobjects.foundation.NSCoding
public static Object decodeObject(com.webobjects.foundation.NSCoder coder)
public void encodeWithCoder(com.webobjects.foundation.NSCoder coder)
encodeWithCoder
in interface com.webobjects.foundation.NSCoding
public void encodeWithKeyValueArchiver(com.webobjects.eocontrol.EOKeyValueArchiver archiver)
encodeWithKeyValueArchiver
in interface com.webobjects.eocontrol.EOKeyValueArchiving
public static Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver unarchiver)
public boolean evaluateWithObject(Object object)
evaluateWithObject
in interface com.webobjects.eocontrol.EOQualifierEvaluation
evaluateWithObject
in class com.webobjects.eocontrol.EOQualifier
public boolean usesInQualInstead()
public void setUsesInQualInstead(boolean usesInQualInstead)
Copyright © 2002 – 2020 Project Wonder.