public class ERXPrimaryKeyListQualifier extends ERXInQualifier
Given a list of EOs, this generates a query looking like ... t0.ID in (< the list of primary Keys for EOs in the list >) .. this is useful for pre-fetching type uses.
| Modifier and Type | Class and Description |
|---|---|
static class |
ERXPrimaryKeyListQualifier.Support
Support class that listens for EOKeyValueQualifiers that have an
isContainedInArray-selector and replaces these
with the ERXInQualifier. |
ERXInQualifier.InQualifierSQLGenerationSupportcom.webobjects.eocontrol.EOQualifier.Comparison, com.webobjects.eocontrol.EOQualifier.ComparisonSupport, com.webobjects.eocontrol.EOQualifier.QualifierVariableSubstitutionExceptioncom.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._StringSupportcom.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization| Modifier and Type | Field and Description |
|---|---|
static String |
IsContainedInArraySelectorName |
_CLASS, _key, _lowercaseCache, _selector, _valueQualifierOperatorCaseInsensitiveLike, QualifierOperatorContains, QualifierOperatorEqual, QualifierOperatorGreaterThan, QualifierOperatorGreaterThanOrEqualTo, QualifierOperatorLessThan, QualifierOperatorLessThanOrEqualTo, QualifierOperatorLike, QualifierOperatorNotEqual| Constructor and Description |
|---|
ERXPrimaryKeyListQualifier(NSArray eos)
Constructs a primary key list qualifer for a given
set of enterprise objects.
|
ERXPrimaryKeyListQualifier(String key,
NSArray eos)
Constructs a primary key list qualifer for a given
set of enterprise objects and the primary key
attribute name.
|
ERXPrimaryKeyListQualifier(String key,
String foreignKey,
NSArray eos)
Constructs a primary key list qualifer for a given
set of enterprise objects, the primary key
attribute name and a foreign key.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
EOF seems to be wanting to clone qualifiers when
they are inside an and-or qualifier without this
method, ERXInQualifier is cloned into
an EOKeyValueQualifier and the generated SQL is incorrect...
|
protected static String |
primaryKeyNameForObjects(NSArray eos)
Calculates the primary key attribute name for an
array of enterprise objects.
|
protected static NSArray |
validateObjects(NSArray eos)
Simple validation routine used to ensure that
the objects being passed in are enterprise
objects and have more than one in the array.
|
classForCoder, decodeObject, decodeWithKeyValueUnarchiver, encodeWithCoder, encodeWithKeyValueArchiver, evaluateWithObject, toString, valuesand, filter, filtered, first, not, one, or, requiredOne_accept, addQualifierKeysToSet, equals, key, qualifierWithBindings, selector, validateKeysWithRootClassDescription, value_isEmpty, allQualifierKeys, allQualifierOperators, bindingKeys, filterArrayWithQualifier, filteredArrayWithQualifier, keyPathForBindingKey, operatorSelectorForSelectorNamed, operatorSelectorForString, qualifierToMatchAllValues, qualifierToMatchAnyValue, qualifierWithQualifierFormat, relationalQualifierOperators, stringForOperatorSelectorpublic static final String IsContainedInArraySelectorName
public ERXPrimaryKeyListQualifier(NSArray eos)
eos - array of enterprise objectspublic ERXPrimaryKeyListQualifier(String key, NSArray eos)
key - primary key attribute nameeos - array of enterprise objectspublic ERXPrimaryKeyListQualifier(String key, String foreignKey, NSArray eos)
key - primary key attribute nameforeignKey - attribute name.eos - array of enterprise objectspublic Object clone()
ERXInQualifierclone in class ERXInQualifierprotected static String primaryKeyNameForObjects(NSArray eos)
eos - array of enterprise objectsprotected static NSArray validateObjects(NSArray eos)
eos - array of objects to checkCopyright © 2002 – 2020 Project Wonder.