
Classes | |
| class | ExistsQualifierSQLGenerationSupport |
Public Member Functions | |
| void | addQualifierKeysToSet (NSMutableSet aSet) |
| String | baseKeyPath () |
| Object | clone () |
| ERXExistsQualifier (EOQualifier subqualifier, String baseKeyPath) | |
| ERXExistsQualifier (EOQualifier subqualifier) | |
| EOQualifier | qualifierWithBindings (NSDictionary someBindings, boolean requiresAll) |
| EOQualifier | subqualifier () |
| String | toString () |
| void | validateKeysWithRootClassDescription (EOClassDescription aClassDescription) |
Static Public Attributes | |
| static final Logger | log = Logger.getLogger(ERXExistsQualifier.class) |
Protected Attributes | |
| String | baseKeyPath |
| EOQualifier | subqualifier |
Static Package Functions | |
| [static initializer] | |
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)
| ERXExistsQualifier | ( | EOQualifier | subqualifier | ) |
Public single argument constructor. Use this constructor for sub-qualification on the same table.
| subqualifier | sub-qualifier |
| ERXExistsQualifier | ( | EOQualifier | subqualifier, | |
| String | baseKeyPath | |||
| ) |
Public two argument constructor. Use this constructor for for building queries based on a key path to a separate entity from the current entity.
| subqualifier | sub qualifier | |
| baseKeyPath | 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. |
| [static initializer] | ( | ) | [static, package] |
Register SQL generation support for the qualifier.
| void addQualifierKeysToSet | ( | NSMutableSet | aSet | ) |
Only used with qualifier keys which are not supported in this qualifier at this time. Does nothing.
| aSet | of qualifier keys |
| String baseKeyPath | ( | ) |
Gets the key path from the base base entity to the entity to which the exists clause (and qualifier) will be applied.
| Object clone | ( | ) |
Implementation of the Clonable interface. Clones the current qualifier.
| EOQualifier qualifierWithBindings | ( | NSDictionary | someBindings, | |
| boolean | requiresAll | |||
| ) |
Creates another qualifier after replacing the values of the bindings. Since this qualifier does not support qualifier binding keys a clone of the qualifier is returned.
| someBindings | some bindings | |
| requiresAll | tells if the qualifier requires all bindings |
| EOQualifier subqualifier | ( | ) |
Gets the subqualifier that will be applied in the exists clause.
| String toString | ( | ) |
Description of the qualifier.
| void validateKeysWithRootClassDescription | ( | EOClassDescription | aClassDescription | ) |
This qualifier does not perform validation. This is a no-op method.
| aClassDescription | to validation the qualifier keys against. |
String baseKeyPath [protected] |
Holds the key path from the base entity to the entity to which the exists clause (and qualifier) will be applied.
final Logger log = Logger.getLogger(ERXExistsQualifier.class) [static] |
EOQualifier subqualifier [protected] |
Holds the subqualifier that will be applied in the exists clause.
1.5.8