public class ERXRegExQualifier extends ERXKeyValueQualifier
matches
and you should be able to have qualifier strings with "foo matches bar".
This class does not do any conversion of the regular expression, so you'd need to have your syntax in a way that is understood by both the java code and the DB.
Modifier and Type | Class and Description |
---|---|
static class |
ERXRegExQualifier.Support |
EOQualifier.Comparison, EOQualifier.ComparisonSupport, EOQualifier.QualifierVariableSubstitutionException
NSCoding._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
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization
Modifier and Type | Field and Description |
---|---|
static NSSelector |
MatchesSelector |
static String |
MatchesSelectorName |
_CLASS, _key, _lowercaseCache, _selector, _value
QualifierOperatorCaseInsensitiveLike, QualifierOperatorContains, QualifierOperatorEqual, QualifierOperatorGreaterThan, QualifierOperatorGreaterThanOrEqualTo, QualifierOperatorLessThan, QualifierOperatorLessThanOrEqualTo, QualifierOperatorLike, QualifierOperatorNotEqual
Constructor and Description |
---|
ERXRegExQualifier(String aKey,
String aValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluateWithObject(Object object)
Overridden to handle case of in-memory evaluation of QualifierOperatorContains selector and a keyPath that has multiple toMany and/or manyToMany-flattened relationships resulting in arrays of arrays rather than
an array of discrete objects.
|
and, filter, filtered, first, not, one, or, requiredOne
_accept, addQualifierKeysToSet, classForCoder, decodeObject, decodeWithKeyValueUnarchiver, encodeWithCoder, encodeWithKeyValueArchiver, equals, key, qualifierWithBindings, selector, toString, validateKeysWithRootClassDescription, value
_isEmpty, allQualifierKeys, allQualifierOperators, bindingKeys, clone, filterArrayWithQualifier, filteredArrayWithQualifier, keyPathForBindingKey, operatorSelectorForSelectorNamed, operatorSelectorForString, qualifierToMatchAllValues, qualifierToMatchAnyValue, qualifierWithQualifierFormat, relationalQualifierOperators, stringForOperatorSelector
public static final String MatchesSelectorName
public static final NSSelector MatchesSelector
public boolean evaluateWithObject(Object object)
ERXKeyValueQualifier
er.extensions.ERXKeyValueQualifier.Contains.flatten
to false
evaluateWithObject
in interface EOQualifierEvaluation
evaluateWithObject
in class ERXKeyValueQualifier
Copyright © 2002 – 2024 Project Wonder.