public class ERXModuloQualifier extends com.webobjects.eocontrol.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.
|
com.webobjects.eocontrol.EOQualifier.Comparison, com.webobjects.eocontrol.EOQualifier.ComparisonSupport, com.webobjects.eocontrol.EOQualifier.QualifierVariableSubstitutionException
com.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._StringSupport, com.webobjects.foundation.NSCoding.Support
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.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 com.webobjects.eocontrol.EOKeyValueQualifier
public boolean evaluateWithObject(Object object)
evaluateWithObject
in interface com.webobjects.eocontrol.EOQualifierEvaluation
evaluateWithObject
in class com.webobjects.eocontrol.EOKeyValueQualifier
public Object clone()
clone
in class com.webobjects.eocontrol.EOQualifier
Copyright © 2002 – 2020 Project Wonder.