public class ERXModuloQualifier extends EOKeyValueQualifier implements Cloneable
ERXModuloQualifier q = new ERXModuloQualifier("userId", 3, 5);
Then this qualifier would generate SQL of the form:
... where mod(userId,5)=3;
Note that this syntax is Oracle specificModifier and Type | Class and Description |
---|---|
static class |
ERXModuloQualifier.ModuloQualifierSQLGenerationSupport
Adds SQL generation 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, NSCoding.Support
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
_CLASS, _key, _lowercaseCache, _selector, _value
QualifierOperatorCaseInsensitiveLike, QualifierOperatorContains, QualifierOperatorEqual, QualifierOperatorGreaterThan, QualifierOperatorGreaterThanOrEqualTo, QualifierOperatorLessThan, QualifierOperatorLessThanOrEqualTo, QualifierOperatorLike, QualifierOperatorNotEqual
Constructor and Description |
---|
ERXModuloQualifier(String key,
int modulo,
int index) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
evaluateWithObject(Object object)
Tests if the given object's key is in the supplied values
|
int |
index() |
int |
modulo() |
String |
toString()
String representation of the in
qualifier.
|
_accept, addQualifierKeysToSet, classForCoder, decodeObject, decodeWithKeyValueUnarchiver, encodeWithCoder, encodeWithKeyValueArchiver, equals, key, qualifierWithBindings, selector, validateKeysWithRootClassDescription, value
_isEmpty, allQualifierKeys, allQualifierOperators, bindingKeys, filterArrayWithQualifier, filteredArrayWithQualifier, keyPathForBindingKey, operatorSelectorForSelectorNamed, operatorSelectorForString, qualifierToMatchAllValues, qualifierToMatchAnyValue, qualifierWithQualifierFormat, relationalQualifierOperators, stringForOperatorSelector
public ERXModuloQualifier(String key, int modulo, int index)
public int modulo()
public int index()
public String toString()
toString
in class EOKeyValueQualifier
public boolean evaluateWithObject(Object object)
evaluateWithObject
in interface EOQualifierEvaluation
evaluateWithObject
in class EOKeyValueQualifier
public Object clone()
clone
in class EOQualifier
Copyright © 2002 – 2024 Project Wonder.