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.SupportSupport class that listens for EOKeyValueQualifiers that have an  isContainedInArray-selector and replaces these
 with the ERXInQualifier. | 
ERXInQualifier.InQualifierSQLGenerationSupportEOQualifier.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._StringSupportEOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, 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 – 2025 Project Wonder.