|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objecter.extensions.eof.ERXKey<T>
T - the type of the value of this keypublic class ERXKey<T>
ERXKey provides a rich wrapper around a keypath. When combined with chainable qualifiers, ERXKey provides a starting point for the qualifier chain. As an example:
<code>
public class Person extends ERXGenericRecord {
...
public static final ERXKey<Country> country = new ERXKey<Country>(Person.COUNTRY_KEY);
public static final ERXKey<NSTimestamp> birthDate = new ERXKey<NSTimestamp>(Person.BIRTH_DATE_KEY);
...
}
Country germany = ...;
NSTimestamp someRandomDate = ...;
EOQualifier qualifier = Person.country.is(germany).and(Person.birthDate.after(someRandomDate));
</code>
| Nested Class Summary | |
|---|---|
static class |
ERXKey.Type
Enums to desribe the type of key this represents. |
static interface |
ERXKey.ValueCoding
|
| Constructor Summary | |
|---|---|
ERXKey(java.lang.String key)
Constructs an ERXKey. |
|
| Method Summary | ||
|---|---|---|
ERXKeyComparisonQualifier |
after(ERXKey<? extends com.webobjects.foundation.NSTimestamp> when)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorGreaterThan, value); |
|
ERXKeyValueQualifier |
after(com.webobjects.foundation.NSTimestamp when)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorGreaterThan, value); |
|
|
append(ERXKey<U> key)
Returns a new ERXKey that appends the given key to this keypath. |
|
|
append(java.lang.String key)
Returns a new ERXKey that appends the given key to this keypath. |
|
|
appendAsArray(ERXKey<U> key)
Returns a new ERXKey that appends the given key to this keypath. |
|
com.webobjects.foundation.NSArray<T> |
arrayValueInObject(java.lang.Object obj)
Returns the value of this keypath on the given object cast as an NSArray. |
|
ERXSortOrdering |
asc()
Equivalent to ERXS.asc(key()) |
|
ERXSortOrdering |
ascInsensitive()
Equivalent to ERXS.ascInsensitive(key()) |
|
ERXSortOrdering.ERXSortOrderings |
ascInsensitives()
Equivalent to ERXS.ascInsensitives(key()) |
|
ERXSortOrdering.ERXSortOrderings |
ascs()
Equivalent to ERXS.ascs(key()) |
|
ERXKey<java.math.BigDecimal> |
atAvg()
Returns a new ERXKey that uses NSArray's AVERAGE aggregate operator @avg. |
|
ERXKey<java.math.BigDecimal> |
atAvg(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with NSArray's AVERAGE aggregate operator @avg. |
|
ERXKey<java.math.BigDecimal> |
atAvgNonNull()
Returns a new ERXKey that appends ERXArrayUtilities' avgNonNull aggregate operator @avgNonNull. |
|
ERXKey<java.math.BigDecimal> |
atAvgNonNull(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' avgNonNull aggregate operator @avgNonNull. |
|
ERXKey<java.lang.Integer> |
atCount()
Returns a new ERXKey that uses NSArray's COUNT operator @count. |
|
|
atFetchSpec(java.lang.String fetchSpecName)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' fetchSpec operator @fetchSpec. |
|
|
atFetchSpec(java.lang.String fetchSpecName,
ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' fetchSpec operator @fetchSpec. |
|
|
atFlatten()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' flatten operator @flatten. |
|
|
atFlatten(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' flatten operator @flatten. |
|
ERXKey<java.lang.Boolean> |
atIsEmpty()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' isEmpty operator @isEmpty. |
|
|
atLimit(java.lang.Integer limit)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' limit operator @limit. |
|
|
atLimit(java.lang.Integer limit,
ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' limit operator @limit. |
|
|
atMax()
Returns a new ERXKey that uses NSArray's MAX aggregate operator @max. |
|
|
atMax(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with NSArray's MAX aggregate operator @max. |
|
ERXKey<java.math.BigDecimal> |
atMedian()
Returns a new ERXKey that appends the given key with ERXArrayUtilities' median aggregate operator @median. |
|
ERXKey<java.math.BigDecimal> |
atMedian(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' median aggregate operator @median. |
|
|
atMin()
Returns a new ERXKey that uses NSArray's MIN aggregate operator @min. |
|
|
atMin(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with NSArray's MIN aggregate operator @min. |
|
|
atObjectAtIndex(java.lang.Integer index)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' objectAtIndex operator @objectAtIndex. |
|
|
atObjectAtIndex(java.lang.Integer index,
ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' objectAtIndex operator @objectAtIndex. |
|
ERXKey<java.math.BigDecimal> |
atPopStdDev()
Returns a new ERXKey that uses Wonder's standard deviation operator @popStdDev |
|
ERXKey<java.math.BigDecimal> |
atPopStdDev(ERXKey<?> key)
Returns a new ERXKey that uses Wonder's standard deviation operator @popStdDev |
|
|
atRemoveNullValues()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' RemoveNullValues operator @removeNullValues. |
|
|
atRemoveNullValues(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' RemoveNullValues operator @removeNullValues. |
|
|
atReverse()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Reverse operator @reverse. |
|
|
atReverse(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Reverse operator @reverse. |
|
|
atSort(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Sort operator @sort. |
|
|
atSortAsc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortAsc operator @sortAsc. |
|
|
atSortDesc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortDescending operator @sortDesc. |
|
|
atSortInsensitiveAsc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortInsensitiveAscending operator @sortInsensitiveAsc. |
|
|
atSortInsensitiveDesc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortInsensitiveDescending operator @sortInsensitiveDesc. |
|
ERXKey<java.math.BigDecimal> |
atStdDev()
Returns a new ERXKey that uses Wonder's standard deviation operator @stdDev |
|
ERXKey<java.math.BigDecimal> |
atStdDev(ERXKey<?> key)
Returns a new ERXKey that uses Wonder's standard deviation operator @stdDev |
|
|
atSubarrayWithRange(com.webobjects.foundation.NSRange range)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SubarrayWithRange operator @subarrayWithRange. |
|
|
atSubarrayWithRange(com.webobjects.foundation.NSRange range,
ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SubarrayWithRange operator @subarrayWithRange. |
|
ERXKey<java.math.BigDecimal> |
atSum()
Returns a new ERXKey that uses NSArray's SUM aggregate operator @sum. |
|
ERXKey<java.math.BigDecimal> |
atSum(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with NSArray's SUM aggregate operator @sum. |
|
|
atUnique()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Unique operator @unique. |
|
|
atUnique(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Unique operator @unique. |
|
static ERXKey<java.math.BigDecimal> |
avg()
Returns a new ERXKey that uses NSArray's AVERAGE aggregate operator @avg. |
|
static ERXKey<java.math.BigDecimal> |
avg(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with NSArray's AVERAGE aggregate operator @avg. |
|
static ERXKey<java.math.BigDecimal> |
avgNonNull()
Returns ERXArrayUtilities' avgNonNull aggregate operator @avgNonNull. |
|
static ERXKey<java.math.BigDecimal> |
avgNonNull(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' avgNonNull aggregate operator @avgNonNull. |
|
ERXKeyComparisonQualifier |
before(ERXKey<? extends com.webobjects.foundation.NSTimestamp> when)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorLessThan, value); |
|
ERXKeyValueQualifier |
before(com.webobjects.foundation.NSTimestamp when)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorLessThan, value); |
|
com.webobjects.eocontrol.EOQualifier |
between(T lowerBound,
T upperBound)
Equivalent to key > lowerBound and key < upperBound (exclusive). |
|
com.webobjects.eocontrol.EOQualifier |
between(T lowerBound,
T upperBound,
boolean inclusive)
Equivalent to key >= lowerBound and key <= upperBound (inclusive). |
|
ERXKeyValueQualifier |
contains(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.OperatorCaseInsensitiveLike, "*" + value + "*"). |
|
ERXAndQualifier |
containsAll(java.lang.String tokens)
Returns a qualifier that evalutes to true when the value of the given key contains all of the given tokens (insensitively) in the search string. |
|
ERXAndQualifier |
containsAll(java.lang.String[] tokens)
Returns a qualifier that evalutes to true when the value of the given key contains all of the given tokens (insensitively). |
|
ERXOrQualifier |
containsAny(java.lang.String tokens)
Returns a qualifier that evalutes to true when the value of the given key contains any of the given tokens (insensitively) in the search string. |
|
ERXOrQualifier |
containsAny(java.lang.String[] tokens)
Returns a qualifier that evalutes to true when the value of the given key contains any of the given tokens (insensitively). |
|
ERXKeyValueQualifier |
containsObject(java.lang.Object obj)
Returns a qualifier that evaluates to true when the given to many key contains the given object. |
|
static ERXKey<java.lang.Integer> |
count()
Returns a new ERXKey that uses NSArray's COUNT operator @count. |
|
ERXSortOrdering |
desc()
Equivalent to ERXS.desc(key()) |
|
ERXSortOrdering |
descInsensitive()
Equivalent to ERXS.descInsensitive(key()) |
|
ERXSortOrdering.ERXSortOrderings |
descInsensitives()
Equivalent to ERXS.descInsensitives(key()) |
|
ERXSortOrdering.ERXSortOrderings |
descs()
Equivalent to ERXS.descs(key()) |
|
|
dot(ERXKey<U> key)
Calls append(key) |
|
|
dot(java.lang.String key)
Calls append(key) |
|
|
dotArray(ERXKey<U> key)
Calls appendAsArray(key). |
|
ERXKeyValueQualifier |
endsWith(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.OperatorLike, "*" + value). |
|
ERXKeyValueQualifier |
endsWithInsensitive(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.OperatorCaseInsensitiveLike, "*" + value). |
|
ERXKeyComparisonQualifier |
eq(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorEqual, value); |
|
ERXKeyValueQualifier |
eq(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorEqual, value); |
|
boolean |
equals(java.lang.Object obj)
|
|
static
|
fetchSpec(java.lang.String fetchSpecName)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' fetchSpec operator @fetchSpec. |
|
static
|
fetchSpec(java.lang.String fetchSpecName,
ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' fetchSpec operator @fetchSpec. |
|
static
|
flatten()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' flatten operator @flatten. |
|
static
|
flatten(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' flatten operator @flatten. |
|
ERXKeyComparisonQualifier |
greaterThan(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorGreaterThan, value); |
|
ERXKeyValueQualifier |
greaterThan(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorGreaterThan, value); |
|
ERXKeyComparisonQualifier |
greaterThanOrEqualTo(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorGreaterThanOrEqualTo, value); |
|
ERXKeyValueQualifier |
greaterThanOrEqualTo(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorGreaterThanOrEqualTo, value); |
|
ERXKeyComparisonQualifier |
gt(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorGreaterThan, value); |
|
ERXKeyValueQualifier |
gt(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorGreaterThan, value); |
|
ERXKeyComparisonQualifier |
gte(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorGreaterThanOrEqualTo, value); |
|
ERXKeyValueQualifier |
gte(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorGreaterThanOrEqualTo, value); |
|
int |
hashCode()
|
|
ERXKeyValueQualifier |
hasValues(com.webobjects.foundation.NSArray<T> values)
Equivalent to new ERXInQualifier(key, values); |
|
ERXKeyValueQualifier |
ilike(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorCaseInsensitiveLike, value); |
|
ERXOrQualifier |
in(com.webobjects.foundation.NSArray<T> values)
Equivalent to a new ERXOrQualifier of EOKeyValueQualifier with key equals value for each value. |
|
ERXOrQualifier |
inObjects(T... values)
Equivalent to a new ERXOrQualifier of EOKeyValueQualifier with key equals value for each value. |
|
ERXKeyComparisonQualifier |
is(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorEqual, value); |
|
ERXKeyValueQualifier |
is(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorEqual, value); |
|
static ERXKey<java.lang.Boolean> |
isEmpty()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' isEmpty operator @isEmpty. |
|
ERXKeyValueQualifier |
isFalse()
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorEqual, Boolean.FALSE); |
|
ERXKeyComparisonQualifier |
isNot(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorNotEqual, value); |
|
ERXKeyValueQualifier |
isNot(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorNotEqual, value); |
|
ERXKeyValueQualifier |
isNotNull()
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorNotEqual, null); |
|
ERXKeyValueQualifier |
isNull()
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorEqual, null); |
|
ERXKeyValueQualifier |
isTrue()
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorEqual, Boolean.TRUE); |
|
ERXKeyValueQualifier |
isUnlessNull(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorEqual, value) only if the value is not null. |
|
java.lang.String |
key()
Returns the keypath that this ERXKey represents. |
|
ERXKeyComparisonQualifier |
lessThan(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorLessThan, value); |
|
ERXKeyValueQualifier |
lessThan(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorLessThan, value); |
|
ERXKeyComparisonQualifier |
lessThanOrEqualTo(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorLessThanOrEqualTo, value); |
|
ERXKeyValueQualifier |
lessThanOrEqualTo(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorLessThanOrEqualTo, value); |
|
ERXKeyValueQualifier |
like(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorLike, value); |
|
ERXKeyValueQualifier |
likeInsensitive(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorCaseInsensitiveLike, value); |
|
static
|
limit(java.lang.Integer limit)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' limit operator @limit. |
|
static
|
limit(java.lang.Integer limit,
ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' limit operator @limit. |
|
ERXKeyComparisonQualifier |
lt(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorLessThan, value); |
|
ERXKeyValueQualifier |
lt(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorLessThan, value); |
|
ERXKeyComparisonQualifier |
lte(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorLessThanOrEqualTo, value); |
|
ERXKeyValueQualifier |
lte(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorLessThanOrEqualTo, value); |
|
static
|
max()
Returns a new ERXKey that uses NSArray's MAX aggregate operator @max. |
|
static
|
max(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with NSArray's MAX aggregate operator @max. |
|
static ERXKey<java.math.BigDecimal> |
median()
Returns ERXArrayUtilities' median aggregate operator @median. |
|
static ERXKey<java.math.BigDecimal> |
median(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' median aggregate operator @median. |
|
static
|
min()
Returns a new ERXKey that uses NSArray's MIN aggregate operator @min. |
|
static
|
min(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with NSArray's MIN aggregate operator @min. |
|
ERXKeyComparisonQualifier |
ne(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorNotEqual, value); |
|
ERXKeyValueQualifier |
ne(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorNotEqual, value); |
|
ERXAndQualifier |
notIn(com.webobjects.foundation.NSArray<T> values)
Equivalent to a new ERXAndQualifier of EONotQualifier(EOKeyValueQualifier) with key equals value for each value. |
|
static
|
objectAtIndex(java.lang.Integer index)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' objectAtIndex operator @objectAtIndex. |
|
static
|
objectAtIndex(java.lang.Integer index,
ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' objectAtIndex operator @objectAtIndex. |
|
static ERXKey<java.math.BigDecimal> |
popStdDev()
Returns a new ERXKey that uses Wonder's standard deviation operator @popStdDev |
|
static ERXKey<java.math.BigDecimal> |
popStdDev(ERXKey<?> key)
Returns a new ERXKey that uses Wonder's standard deviation operator @popStdDev |
|
com.webobjects.eocontrol.EOQualifier |
prefix(com.webobjects.eocontrol.EOQualifier qualifier)
Prefixes the keys in the given qualifier with this key. |
|
java.lang.Object |
rawValueInObject(java.lang.Object obj)
Returns the value of this keypath on the given object. |
|
static
|
removeNullValues()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' RemoveNullValues operator @removeNullValues. |
|
static
|
removeNullValues(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' RemoveNullValues operator @removeNullValues. |
|
static
|
reverse()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Reverse operator @reverse. |
|
static
|
reverse(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Reverse operator @reverse. |
|
static
|
sort(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Sort operator @sort. |
|
static
|
sortAsc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortAscending operator @sortAsc. |
|
static
|
sortDesc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortDescending operator @sortDesc. |
|
static
|
sortInsensitiveAsc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortInsensitiveAscending operator @sortInsensitiveAsc. |
|
static
|
sortInsensitiveDesc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortInsensitiveDescending operator @sortInsensitiveDesc. |
|
ERXKeyValueQualifier |
startsWith(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.OperatorLike, value + "*"). |
|
ERXKeyValueQualifier |
startsWithInsensitive(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.OperatorCaseInsensitiveLike, value + "*"). |
|
static ERXKey<java.math.BigDecimal> |
stdDev()
Returns a new ERXKey that uses Wonder's standard deviation operator @stdDev |
|
static ERXKey<java.math.BigDecimal> |
stdDev(ERXKey<?> key)
Returns a new ERXKey that uses Wonder's standard deviation operator @stdDev |
|
static
|
subarrayWithRange(com.webobjects.foundation.NSRange range)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SubarrayWithRange operator @subarrayWithRange. |
|
static
|
subarrayWithRange(com.webobjects.foundation.NSRange range,
ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SubarrayWithRange operator @subarrayWithRange. |
|
static ERXKey<java.math.BigDecimal> |
sum()
Returns a new ERXKey that uses NSArray's SUM aggregate operator @sum. |
|
static ERXKey<java.math.BigDecimal> |
sum(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with NSArray's SUM aggregate operator @sum. |
|
void |
takeValueInObject(T value,
java.lang.Object obj)
Sets the value of this keypath on the given object. |
|
java.lang.String |
toString()
|
|
static
|
unique()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Unique operator @unique. |
|
static
|
unique(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Unique operator @unique. |
|
T |
valueInObject(java.lang.Object obj)
Returns the value of this keypath on the given object. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ERXKey(java.lang.String key)
key - the underlying keypath| Method Detail |
|---|
public static ERXKey<java.math.BigDecimal> avgNonNull(ERXKey<?> key)
key - the key to use for this aggregate keypath
AvgNonNullOperatorpublic static ERXKey<java.math.BigDecimal> avgNonNull()
AvgNonNullOperatorpublic ERXKey<java.math.BigDecimal> atAvgNonNull(ERXKey<?> key)
key - the key to use for this aggregate keypath
AvgNonNullOperatorpublic ERXKey<java.math.BigDecimal> atAvgNonNull()
AvgNonNullOperator
public static <U> ERXKey<com.webobjects.foundation.NSArray<U>> fetchSpec(java.lang.String fetchSpecName,
ERXKey<U> key)
U - the type of the next keyfetchSpecName - the fetchSpec namekey - the key to use for this keypath
FetchSpecOperator
public <U> ERXKey<com.webobjects.foundation.NSArray<U>> atFetchSpec(java.lang.String fetchSpecName,
ERXKey<U> key)
U - the type of the next keyfetchSpecName - the fetchSpec namekey - the key to use for this keypath
FetchSpecOperatorpublic static <U> ERXKey<U> fetchSpec(java.lang.String fetchSpecName)
U - the type of the next keyfetchSpecName - the fetchSpec name
FetchSpecOperatorpublic <U> ERXKey<U> atFetchSpec(java.lang.String fetchSpecName)
U - the type of the next keyfetchSpecName - the fetchSpec name
FetchSpecOperatorpublic static <U> ERXKey<com.webobjects.foundation.NSArray<U>> flatten(ERXKey<U> key)
U - the type of the next keykey - the key to use for this keypath
FlattenOperatorpublic <U> ERXKey<com.webobjects.foundation.NSArray<U>> atFlatten(ERXKey<U> key)
U - the type of the next keykey - the key to use for this keypath
FlattenOperatorpublic static <U> ERXKey<U> flatten()
U - the type of the next key
FlattenOperatorpublic <U> ERXKey<U> atFlatten()
U - the type of the next key
FlattenOperatorpublic static ERXKey<java.lang.Boolean> isEmpty()
IsEmptyOperatorpublic ERXKey<java.lang.Boolean> atIsEmpty()
IsEmptyOperator
public static <U> ERXKey<com.webobjects.foundation.NSArray<U>> limit(java.lang.Integer limit,
ERXKey<U> key)
U - the type of the next keylimit - the maximum number of objects allowed by the limitkey - the key to use for this keypath
LimitOperator
public <U> ERXKey<com.webobjects.foundation.NSArray<U>> atLimit(java.lang.Integer limit,
ERXKey<U> key)
U - the type of the next keylimit - the maximum number of objects allowed by the limitkey - the key to use for this keypath
LimitOperatorpublic static <U> ERXKey<U> limit(java.lang.Integer limit)
U - the type of the next keylimit - the maximum number of objects allowed by the limit
LimitOperatorpublic <U> ERXKey<U> atLimit(java.lang.Integer limit)
U - the type of the next keylimit - the maximum number of objects allowed by the limit
LimitOperatorpublic static ERXKey<java.math.BigDecimal> median()
key - the key to use for this aggregate keypath
MedianOperatorpublic static ERXKey<java.math.BigDecimal> median(ERXKey<?> key)
key - the key to use for this aggregate keypath
MedianOperatorpublic ERXKey<java.math.BigDecimal> atMedian()
key - the key to use for this aggregate keypath
MedianOperatorpublic ERXKey<java.math.BigDecimal> atMedian(ERXKey<?> key)
key - the key to use for this aggregate keypath
MedianOperator
public static <U> ERXKey<U> objectAtIndex(java.lang.Integer index,
ERXKey<U> key)
U - the type of the next keyindex - The index of the object to return from the arraykey - the key following the operator
ObjectAtIndexOperator
public <U> ERXKey<U> atObjectAtIndex(java.lang.Integer index,
ERXKey<U> key)
U - the type of the next keyindex - The index of the object to return from the arraykey - the key following the operator
ObjectAtIndexOperatorpublic static <U> ERXKey<U> objectAtIndex(java.lang.Integer index)
U - the type of the next keyindex - The index of the object to return from the array
ObjectAtIndexOperatorpublic <U> ERXKey<U> atObjectAtIndex(java.lang.Integer index)
U - the type of the next keyindex - The index of the object to return from the array
ObjectAtIndexOperatorpublic static <U> ERXKey<U> removeNullValues(ERXKey<U> key)
U - the type of the next keykey - the key to use for this keypath
RemoveNullValuesOperatorpublic <U> ERXKey<U> atRemoveNullValues(ERXKey<U> key)
U - the type of the next keykey - the key to use for this keypath
RemoveNullValuesOperatorpublic static <U> ERXKey<U> removeNullValues()
U - the type of the next key
RemoveNullValuesOperatorpublic <U> ERXKey<U> atRemoveNullValues()
U - the type of the next key
RemoveNullValuesOperatorpublic static <U> ERXKey<com.webobjects.foundation.NSArray<U>> reverse(ERXKey<U> key)
U - the type of the next keykey - the key to use for this keypath
ReverseOperatorpublic <U> ERXKey<com.webobjects.foundation.NSArray<U>> atReverse(ERXKey<U> key)
U - the type of the next keykey - the key to use for this keypath
ReverseOperatorpublic static <U> ERXKey<U> reverse()
U - the type of the next key
ReverseOperatorpublic <U> ERXKey<U> atReverse()
U - the type of the next key
ReverseOperatorpublic static <U> ERXKey<U> sort(ERXKey<?>... sortKeys)
sort(Employee.FIRST_NAME, Employee.LAST_NAME)
would return a key like @sort.firstName,lastname
U - the type of the next keysortKeys - the ERXKeys to append for sorting
SortOperatorpublic <U> ERXKey<U> atSort(ERXKey<?>... sortKeys)
atSort(Employee.FIRST_NAME, Employee.LAST_NAME)
would return a key like @sort.firstName,lastname
U - the type of the next keysortKeys - the ERXKeys to append for sorting
SortOperatorpublic static <U> ERXKey<U> sortAsc(ERXKey<?>... sortKeys)
sortAsc(Employee.FIRST_NAME, Employee.LAST_NAME)
would return a key like @sortAsc.firstName,lastname
U - the type of the next keysortKeys - the ERXKeys to append for sorting
SortOperatorpublic <U> ERXKey<U> atSortAsc(ERXKey<?>... sortKeys)
atSortAsc(Employee.FIRST_NAME, Employee.LAST_NAME)
would return a key like @sortAsc.firstName,lastname
U - the type of the next keysortKeys - the ERXKeys to append for sorting
SortOperatorpublic static <U> ERXKey<U> sortDesc(ERXKey<?>... sortKeys)
sortDesc(Employee.FIRST_NAME, Employee.LAST_NAME)
would return a key like @sortDesc.firstName,lastname
U - the type of the next keysortKeys - the ERXKeys to append for sorting
SortOperatorpublic <U> ERXKey<U> atSortDesc(ERXKey<?>... sortKeys)
atSortDesc(Employee.FIRST_NAME, Employee.LAST_NAME)
would return a key like @sortDesc.firstName,lastname
U - the type of the next keysortKeys - the ERXKeys to append for sorting
SortOperatorpublic static <U> ERXKey<U> sortInsensitiveAsc(ERXKey<?>... sortKeys)
sortInsensitiveAsc(Employee.FIRST_NAME, Employee.LAST_NAME)
would return a key like @sortInsensitiveAsc.firstName,lastname
U - the type of the next keysortKeys - the ERXKeys to append for sorting
SortOperatorpublic <U> ERXKey<U> atSortInsensitiveAsc(ERXKey<?>... sortKeys)
atSortInsensitiveAsc(Employee.FIRST_NAME, Employee.LAST_NAME)
would return a key like @sortInsensitiveAsc.firstName,lastname
U - the type of the next keysortKeys - the ERXKeys to append for sorting
SortOperatorpublic static <U> ERXKey<U> sortInsensitiveDesc(ERXKey<?>... sortKeys)
sortInsensitiveDesc(Employee.FIRST_NAME, Employee.LAST_NAME)
would return a key like @sortInsensitiveDesc.firstName,lastname
U - the type of the next keysortKeys - the ERXKeys to append for sorting
SortOperatorpublic <U> ERXKey<U> atSortInsensitiveDesc(ERXKey<?>... sortKeys)
atSortInsensitiveDesc(Employee.FIRST_NAME, Employee.LAST_NAME)
would return a key like @sortInsensitiveDesc.firstName,lastname
U - the type of the next keysortKeys - the ERXKeys to append for sorting
SortOperator
public static <U> ERXKey<com.webobjects.foundation.NSArray<U>> subarrayWithRange(com.webobjects.foundation.NSRange range,
ERXKey<U> key)
new NSRange(4,2) this will return a new ERXKey "@subarrayWithRange.4-2.price".
U - the type of the next keykey - the key to use for this keypathrange - the range for the operator
SubarrayWithRangeOperator
public <U> ERXKey<com.webobjects.foundation.NSArray<U>> atSubarrayWithRange(com.webobjects.foundation.NSRange range,
ERXKey<U> key)
new NSRange(4,2) this will return a new ERXKey "@subarrayWithRange.4-2.price".
U - the type of the next keykey - the key to use for this keypathrange - the range for the operator
SubarrayWithRangeOperatorpublic static <U> ERXKey<U> subarrayWithRange(com.webobjects.foundation.NSRange range)
new NSRange(4,2) this will return a new
ERXKey "@subarrayWithRange.4-2.price".
U - the type of the next keyrange - the range for the operator
SubarrayWithRangeOperatorpublic <U> ERXKey<U> atSubarrayWithRange(com.webobjects.foundation.NSRange range)
new NSRange(4,2) this will return a new
ERXKey "@subarrayWithRange.4-2.price".
U - the type of the next keyrange - the range for the operator
SubarrayWithRangeOperatorpublic static <U> ERXKey<com.webobjects.foundation.NSArray<U>> unique(ERXKey<U> key)
U - the type of the next keykey - the key to use for this keypath
UniqueOperatorpublic <U> ERXKey<com.webobjects.foundation.NSArray<U>> atUnique(ERXKey<U> key)
U - the type of the next keykey - the key to use for this keypath
UniqueOperatorpublic static <U> ERXKey<U> unique()
U - the type of the next key
UniqueOperatorpublic <U> ERXKey<U> atUnique()
U - the type of the next key
UniqueOperatorpublic static ERXKey<java.math.BigDecimal> sum(ERXKey<?> key)
key - the key to use for this aggregate keypath
public ERXKey<java.math.BigDecimal> atSum(ERXKey<?> key)
key - the key to use for this aggregate keypath
public ERXKey<java.math.BigDecimal> atSum()
public static ERXKey<java.math.BigDecimal> sum()
public static ERXKey<java.math.BigDecimal> popStdDev()
StandardDeviationOperatorpublic ERXKey<java.math.BigDecimal> atPopStdDev()
StandardDeviationOperatorpublic static ERXKey<java.math.BigDecimal> popStdDev(ERXKey<?> key)
key - the key to append
StandardDeviationOperatorpublic ERXKey<java.math.BigDecimal> atPopStdDev(ERXKey<?> key)
key - the key to append
StandardDeviationOperatorpublic static ERXKey<java.math.BigDecimal> stdDev()
StandardDeviationOperatorpublic ERXKey<java.math.BigDecimal> atStdDev()
StandardDeviationOperatorpublic static ERXKey<java.math.BigDecimal> stdDev(ERXKey<?> key)
key - the key to append
StandardDeviationOperatorpublic ERXKey<java.math.BigDecimal> atStdDev(ERXKey<?> key)
key - the key to append
StandardDeviationOperatorpublic static ERXKey<java.math.BigDecimal> avg(ERXKey<?> key)
key - the key to use for this aggregate keypath
public ERXKey<java.math.BigDecimal> atAvg(ERXKey<?> key)
key - the key to use for this aggregate keypath
public static ERXKey<java.math.BigDecimal> avg()
public ERXKey<java.math.BigDecimal> atAvg()
public static <U> ERXKey<U> min(ERXKey<U> key)
U - the type of the next keykey - the key to use for this aggregate keypath
public <U> ERXKey<U> atMin(ERXKey<U> key)
U - the type of the next keykey - the key to use for this aggregate keypath
public static <U> ERXKey<U> min()
U - the type of the next key
public <U> ERXKey<U> atMin()
U - the type of the next key
public static <U> ERXKey<U> max(ERXKey<U> key)
U - the type of the next keykey - the key to use for this aggregate keypath
public <U> ERXKey<U> atMax(ERXKey<U> key)
U - the type of the next keykey - the key to use for this aggregate keypath
public static <U> ERXKey<U> max()
U - the type of the next key
public <U> ERXKey<U> atMax()
U - the type of the next key
public static ERXKey<java.lang.Integer> count()
public ERXKey<java.lang.Integer> atCount()
public ERXSortOrdering asc()
public ERXSortOrdering.ERXSortOrderings ascs()
public ERXSortOrdering desc()
public ERXSortOrdering.ERXSortOrderings descs()
public ERXSortOrdering ascInsensitive()
public ERXSortOrdering.ERXSortOrderings ascInsensitives()
public ERXSortOrdering descInsensitive()
public ERXSortOrdering.ERXSortOrderings descInsensitives()
public java.lang.String key()
public ERXKeyValueQualifier isTrue()
public ERXKeyValueQualifier isFalse()
public ERXKeyValueQualifier isUnlessNull(T value)
value - the value
public ERXKeyValueQualifier is(T value)
value - the value
public ERXKeyComparisonQualifier is(ERXKey<T> value)
value - the value
public ERXKeyValueQualifier eq(T value)
value - the value
public ERXKeyComparisonQualifier eq(ERXKey<T> value)
value - the value
public ERXKeyValueQualifier isNot(T value)
value - the value
public ERXKeyComparisonQualifier isNot(ERXKey<T> value)
value - the value
public ERXKeyValueQualifier ne(T value)
value - the value
public ERXKeyComparisonQualifier ne(ERXKey<T> value)
value - the value
public ERXKeyValueQualifier greaterThan(T value)
value - the value
public ERXKeyComparisonQualifier greaterThan(ERXKey<T> value)
value - the value
public ERXKeyValueQualifier gt(T value)
value - the value
public ERXKeyComparisonQualifier gt(ERXKey<T> value)
value - the value
public ERXKeyValueQualifier lessThan(T value)
value - the value
public ERXKeyComparisonQualifier lessThan(ERXKey<T> value)
value - the value
public ERXKeyValueQualifier lt(T value)
value - the value
public ERXKeyComparisonQualifier lt(ERXKey<T> value)
value - the value
public ERXKeyValueQualifier greaterThanOrEqualTo(T value)
value - the value
public ERXKeyComparisonQualifier greaterThanOrEqualTo(ERXKey<T> value)
value - the value
public ERXKeyValueQualifier gte(T value)
value - the value
public ERXKeyComparisonQualifier gte(ERXKey<T> value)
value - the value
public ERXKeyValueQualifier lessThanOrEqualTo(T value)
value - the value
public ERXKeyComparisonQualifier lessThanOrEqualTo(ERXKey<T> value)
value - the value
public ERXKeyValueQualifier lte(T value)
value - the value
public ERXKeyComparisonQualifier lte(ERXKey<T> value)
value - the value
public ERXKeyValueQualifier like(java.lang.String value)
value - the value
public ERXKeyValueQualifier likeInsensitive(java.lang.String value)
value - the value
public ERXKeyValueQualifier ilike(java.lang.String value)
value - the value
public ERXKeyValueQualifier isNull()
public ERXKeyValueQualifier isNotNull()
public ERXOrQualifier inObjects(T... values)
values - the values
public ERXOrQualifier in(com.webobjects.foundation.NSArray<T> values)
values - the values
public ERXAndQualifier notIn(com.webobjects.foundation.NSArray<T> values)
values - the values
public ERXKeyValueQualifier before(com.webobjects.foundation.NSTimestamp when)
when - the date to compare with
public ERXKeyComparisonQualifier before(ERXKey<? extends com.webobjects.foundation.NSTimestamp> when)
when - the date to compare with
public ERXKeyValueQualifier after(com.webobjects.foundation.NSTimestamp when)
when - the date to compare with
public ERXKeyComparisonQualifier after(ERXKey<? extends com.webobjects.foundation.NSTimestamp> when)
when - the date to compare with
public com.webobjects.eocontrol.EOQualifier between(T lowerBound,
T upperBound)
lowerBound - the lower bound valueupperBound - the upper bound value
public com.webobjects.eocontrol.EOQualifier between(T lowerBound,
T upperBound,
boolean inclusive)
lowerBound - the lower bound valueupperBound - the upper bound valueinclusive - whether or not the between includes the endpoints
public ERXKeyValueQualifier startsWith(java.lang.String value)
value - the substring value
public ERXKeyValueQualifier startsWithInsensitive(java.lang.String value)
value - the substring value
public ERXKeyValueQualifier endsWith(java.lang.String value)
value - the substring value
public ERXKeyValueQualifier endsWithInsensitive(java.lang.String value)
value - the substring value
public ERXKeyValueQualifier contains(java.lang.String value)
value - the substring value
public ERXOrQualifier containsAny(java.lang.String tokens)
tokens - a whitespace separated list of tokens to search for
public ERXOrQualifier containsAny(java.lang.String[] tokens)
tokens - the list of tokens to search for
public ERXAndQualifier containsAll(java.lang.String tokens)
tokens - a whitespace separated list of tokens to search for
public ERXAndQualifier containsAll(java.lang.String[] tokens)
tokens - the list of tokens to search for
public ERXKeyValueQualifier containsObject(java.lang.Object obj)
Returns a qualifier that evaluates to true when the given to many key contains the given object.
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.OperatorContains, value).
obj - the object
public ERXKeyValueQualifier hasValues(com.webobjects.foundation.NSArray<T> values)
Equivalent to new ERXInQualifier(key, values);
values - the values
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic <U> ERXKey<U> append(java.lang.String key)
U - the type of the next keykey - the key to append to this keypath
public <U> ERXKey<U> dot(java.lang.String key)
U - the key typekey - the key to append to this keypath
public <U> ERXKey<U> append(ERXKey<U> key)
U - the type of the next keykey - the key to append to this keypath
public <U> ERXKey<U> dot(ERXKey<U> key)
U - the key typekey - the key to append to this keypath
public <U> ERXKey<com.webobjects.foundation.NSArray<U>> appendAsArray(ERXKey<U> key)
<code>
ERXKey<String> k = new ERXKey<String>("foo");
ERXKey<NSArray<String>> a = new ERXKey<NSArray<String>>("foos");
k = k.append(k);
a = a.append(k);
a = k.appendAsArray(k);
k = k.appendAsArray(k);
a = k.appendAsArray(a);
a = a.appendAsArray(k);
a = a.appendAsArray(a);
</code>
U - the type of the next key in the arraykey - the key to append to this keypath
public <U> ERXKey<com.webobjects.foundation.NSArray<U>> dotArray(ERXKey<U> key)
U - the typekey - the key to append to this keypath
public T valueInObject(java.lang.Object obj)
obj - the target object to apply this keypath on
public java.lang.Object rawValueInObject(java.lang.Object obj)
obj - the target object to apply this keypath on
public com.webobjects.foundation.NSArray<T> arrayValueInObject(java.lang.Object obj)
obj - the target object to apply this keypath on
public void takeValueInObject(T value,
java.lang.Object obj)
value - the value to setobj - the object to set the value onpublic com.webobjects.eocontrol.EOQualifier prefix(com.webobjects.eocontrol.EOQualifier qualifier)
qualifier - the qualifier to prefix
public java.lang.String toString()
toString in class java.lang.Object
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||