ERXBetweenQualifier Class Reference
Inherits
er::extensions::qualifiers::ERXKeyValueQualifier, and com::webobjects::eocontrol::EOQualifierEvaluation.
List of all members.
Detailed Description
The between qualifier allows qualification on an attribute that is between two values. This qualifier supports both in-memory and sql based qualification.
The SQL generated is of the form: "FOO BETWEEN 1 AND 3"
Note this qualifier supports qualifing against String, Number and NSTimestamp values.
Constructor & Destructor Documentation
Creates a qualifier for a given key with a min and max value specified.
- Parameters:
-
| aKey | key to qualify against |
| aMinimumValue | minimum value of the key |
| aMaximumValue | maximum value of the key |
Member Function Documentation
| [static initializer] |
( |
|
) |
[static, package] |
register SQL generation support for the qualifier
Adds the qualification key of the qualifier to the given set.
- Parameters:
-
| aSet | to add the qualification key to. |
Implementation of the Clonable interface.
- Returns:
- clone of the qualifier
| NSComparator comparatorForObject |
( |
Object |
anObject |
) |
[protected] |
Determines the comparator to use for a given object based on the object's class.
- Parameters:
-
| anObject | to find the comparator for |
- Returns:
- comparator to use when comparing objects of a given class.
| boolean evaluateWithObject |
( |
Object |
anObject |
) |
|
Compares an object to determine if it is within the between qualification of the current qualifier. This method is only used for in-memory qualification.
- Returns:
- if the given object is within the boundries of the qualifier.
Gets the key to qualify against.
- Returns:
- qualifier key
Gets the maximum value.
- Returns:
- maximum value.
Gets the minimum value.
- Returns:
- minimum value.
| EOQualifier qualifierWithBindings |
( |
NSDictionary |
someBindings, |
|
|
boolean |
requiresAll | |
|
) |
| | |
Creates another qualifier after replacing the values of the bindings. Since this qualifier does not support qualifier binding keys a clone of the qualifier is returned.
- Parameters:
-
| someBindings | some bindings |
| requiresAll | tells if the qualifier requires all bindings |
- Returns:
- clone of the current qualifier.
Sets the qualification key.
- Parameters:
-
| aValue | for the qualification key. |
| void setMaximumValue |
( |
Object |
aValue |
) |
|
Sets the maximum value.
- Parameters:
-
| void setMinimumValue |
( |
Object |
aValue |
) |
|
Sets the minimum value.
- Parameters:
-
| void validateKeysWithRootClassDescription |
( |
EOClassDescription |
aClassDescription |
) |
|
This qualifier does not perform validation. This is a no-op method.
- Parameters:
-
| aClassDescription | to validation the qualifier keys against. |
| String valueStringForValue |
( |
Object |
aValue |
) |
[private] |
Member Data Documentation
holds the key used to compare against
holds the between sql string
The documentation for this class was generated from the following file: