Project Wonder 5.0

er.extensions.eof
Class ERXKey<T>

java.lang.Object
  extended by er.extensions.eof.ERXKey<T>
Type Parameters:
T - the type of the value of this key

public class ERXKey<T>
extends java.lang.Object

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>
 

Author:
mschrag

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);
<U> ERXKey<U>
append(ERXKey<U> key)
          Returns a new ERXKey that appends the given key to this keypath.
<U> ERXKey<U>
append(java.lang.String key)
          Returns a new ERXKey that appends the given key to this keypath.
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
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.
<U> ERXKey<U>
atFetchSpec(java.lang.String fetchSpecName)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' fetchSpec operator @fetchSpec.
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
atFetchSpec(java.lang.String fetchSpecName, ERXKey<U> key)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' fetchSpec operator @fetchSpec.
<U> ERXKey<U>
atFlatten()
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' flatten operator @flatten.
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
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.
<U> ERXKey<U>
atLimit(java.lang.Integer limit)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' limit operator @limit.
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
atLimit(java.lang.Integer limit, ERXKey<U> key)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' limit operator @limit.
<U> ERXKey<U>
atMax()
          Returns a new ERXKey that uses NSArray's MAX aggregate operator @max.
<U> ERXKey<U>
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.
<U> ERXKey<U>
atMin()
          Returns a new ERXKey that uses NSArray's MIN aggregate operator @min.
<U> ERXKey<U>
atMin(ERXKey<U> key)
          Returns a new ERXKey that prepends the given key with NSArray's MIN aggregate operator @min.
<U> ERXKey<U>
atObjectAtIndex(java.lang.Integer index)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' objectAtIndex operator @objectAtIndex.
<U> ERXKey<U>
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
<U> ERXKey<U>
atRemoveNullValues()
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' RemoveNullValues operator @removeNullValues.
<U> ERXKey<U>
atRemoveNullValues(ERXKey<U> key)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' RemoveNullValues operator @removeNullValues.
<U> ERXKey<U>
atReverse()
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Reverse operator @reverse.
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
atReverse(ERXKey<U> key)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Reverse operator @reverse.
<U> ERXKey<U>
atSort(ERXKey<?>... sortKeys)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Sort operator @sort.
<U> ERXKey<U>
atSortAsc(ERXKey<?>... sortKeys)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortAsc operator @sortAsc.
<U> ERXKey<U>
atSortDesc(ERXKey<?>... sortKeys)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortDescending operator @sortDesc.
<U> ERXKey<U>
atSortInsensitiveAsc(ERXKey<?>... sortKeys)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortInsensitiveAscending operator @sortInsensitiveAsc.
<U> ERXKey<U>
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
<U> ERXKey<U>
atSubarrayWithRange(com.webobjects.foundation.NSRange range)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SubarrayWithRange operator @subarrayWithRange.
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
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.
<U> ERXKey<U>
atUnique()
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Unique operator @unique.
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
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())
<U> ERXKey<U>
dot(ERXKey<U> key)
          Calls append(key)
<U> ERXKey<U>
dot(java.lang.String key)
          Calls append(key)
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
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
<U> ERXKey<U>
fetchSpec(java.lang.String fetchSpecName)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' fetchSpec operator @fetchSpec.
static
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
fetchSpec(java.lang.String fetchSpecName, ERXKey<U> key)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' fetchSpec operator @fetchSpec.
static
<U> ERXKey<U>
flatten()
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' flatten operator @flatten.
static
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
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
<U> ERXKey<U>
limit(java.lang.Integer limit)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' limit operator @limit.
static
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
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
<U> ERXKey<U>
max()
          Returns a new ERXKey that uses NSArray's MAX aggregate operator @max.
static
<U> ERXKey<U>
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
<U> ERXKey<U>
min()
          Returns a new ERXKey that uses NSArray's MIN aggregate operator @min.
static
<U> ERXKey<U>
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
<U> ERXKey<U>
objectAtIndex(java.lang.Integer index)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' objectAtIndex operator @objectAtIndex.
static
<U> ERXKey<U>
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
<U> ERXKey<U>
removeNullValues()
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' RemoveNullValues operator @removeNullValues.
static
<U> ERXKey<U>
removeNullValues(ERXKey<U> key)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' RemoveNullValues operator @removeNullValues.
static
<U> ERXKey<U>
reverse()
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Reverse operator @reverse.
static
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
reverse(ERXKey<U> key)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Reverse operator @reverse.
static
<U> ERXKey<U>
sort(ERXKey<?>... sortKeys)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Sort operator @sort.
static
<U> ERXKey<U>
sortAsc(ERXKey<?>... sortKeys)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortAscending operator @sortAsc.
static
<U> ERXKey<U>
sortDesc(ERXKey<?>... sortKeys)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortDescending operator @sortDesc.
static
<U> ERXKey<U>
sortInsensitiveAsc(ERXKey<?>... sortKeys)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortInsensitiveAscending operator @sortInsensitiveAsc.
static
<U> ERXKey<U>
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
<U> ERXKey<U>
subarrayWithRange(com.webobjects.foundation.NSRange range)
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SubarrayWithRange operator @subarrayWithRange.
static
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
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
<U> ERXKey<U>
unique()
          Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Unique operator @unique.
static
<U> ERXKey<com.webobjects.foundation.NSArray<U>>
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

ERXKey

public ERXKey(java.lang.String key)
Constructs an ERXKey.

Parameters:
key - the underlying keypath
Method Detail

avgNonNull

public static ERXKey<java.math.BigDecimal> avgNonNull(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' avgNonNull aggregate operator @avgNonNull. For instance, if the key is "price" this will return a new ERXKey "@avgNonNull.price".

Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key
See Also:
AvgNonNullOperator

avgNonNull

public static ERXKey<java.math.BigDecimal> avgNonNull()
Returns ERXArrayUtilities' avgNonNull aggregate operator @avgNonNull.

Returns:
the avgNonNull key
See Also:
AvgNonNullOperator

atAvgNonNull

public ERXKey<java.math.BigDecimal> atAvgNonNull(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' avgNonNull aggregate operator @avgNonNull. For instance, if the key is "price" this will return a new ERXKey "@avgNonNull.price".

Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key
See Also:
AvgNonNullOperator

atAvgNonNull

public ERXKey<java.math.BigDecimal> atAvgNonNull()
Returns a new ERXKey that appends ERXArrayUtilities' avgNonNull aggregate operator @avgNonNull.

Returns:
the new appended key
See Also:
AvgNonNullOperator

fetchSpec

public static <U> ERXKey<com.webobjects.foundation.NSArray<U>> fetchSpec(java.lang.String fetchSpecName,
                                                                         ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' fetchSpec operator @fetchSpec. For instance, if the key is "price" and fetchSpecName is "newHomes" this will return a new ERXKey "@fetchSpec.newHomes.price".

Type Parameters:
U - the type of the next key
Parameters:
fetchSpecName - the fetchSpec name
key - the key to use for this keypath
Returns:
the new appended key
See Also:
FetchSpecOperator

atFetchSpec

public <U> ERXKey<com.webobjects.foundation.NSArray<U>> atFetchSpec(java.lang.String fetchSpecName,
                                                                    ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' fetchSpec operator @fetchSpec. For instance, if the key is "price" and fetchSpecName is "newHomes" this will return a new ERXKey "@fetchSpec.newHomes.price".

Type Parameters:
U - the type of the next key
Parameters:
fetchSpecName - the fetchSpec name
key - the key to use for this keypath
Returns:
the new appended key
See Also:
FetchSpecOperator

fetchSpec

public static <U> ERXKey<U> fetchSpec(java.lang.String fetchSpecName)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' fetchSpec operator @fetchSpec. For instance, if the fetchSpecName is "newHomes" this will return a new ERXKey "@fetchSpec.newHomes".

Type Parameters:
U - the type of the next key
Parameters:
fetchSpecName - the fetchSpec name
Returns:
the new appended key
See Also:
FetchSpecOperator

atFetchSpec

public <U> ERXKey<U> atFetchSpec(java.lang.String fetchSpecName)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' fetchSpec operator @fetchSpec. For instance, if the fetchSpecName is "newHomes" this will return a new ERXKey "@fetchSpec.newHomes".

Type Parameters:
U - the type of the next key
Parameters:
fetchSpecName - the fetchSpec name
Returns:
the new appended key
See Also:
FetchSpecOperator

flatten

public static <U> ERXKey<com.webobjects.foundation.NSArray<U>> flatten(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' flatten operator @flatten. For instance, if the key is "price" this will return a new ERXKey "@flatten.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this keypath
Returns:
the new appended key
See Also:
FlattenOperator

atFlatten

public <U> ERXKey<com.webobjects.foundation.NSArray<U>> atFlatten(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' flatten operator @flatten. For instance, if the key is "price" this will return a new ERXKey "@flatten.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this keypath
Returns:
the new appended key
See Also:
FlattenOperator

flatten

public static <U> ERXKey<U> flatten()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' flatten operator @flatten.

Type Parameters:
U - the type of the next key
Returns:
the new appended key
See Also:
FlattenOperator

atFlatten

public <U> ERXKey<U> atFlatten()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' flatten operator @flatten.

Type Parameters:
U - the type of the next key
Returns:
the new appended key
See Also:
FlattenOperator

isEmpty

public static ERXKey<java.lang.Boolean> isEmpty()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' isEmpty operator @isEmpty. Since any keypath beyond @isEmpty is ignored, only a no arg method is available.

Returns:
the new appended key
See Also:
IsEmptyOperator

atIsEmpty

public ERXKey<java.lang.Boolean> atIsEmpty()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' isEmpty operator @isEmpty. Since any keypath beyond @isEmpty is ignored, only a no arg method is available.

Returns:
the new appended key
See Also:
IsEmptyOperator

limit

public static <U> ERXKey<com.webobjects.foundation.NSArray<U>> limit(java.lang.Integer limit,
                                                                     ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' limit operator @limit. For instance, if the key is "price" and limit is 3 this will return a new ERXKey "@limit.3.price".

Type Parameters:
U - the type of the next key
Parameters:
limit - the maximum number of objects allowed by the limit
key - the key to use for this keypath
Returns:
the new appended key
See Also:
LimitOperator

atLimit

public <U> ERXKey<com.webobjects.foundation.NSArray<U>> atLimit(java.lang.Integer limit,
                                                                ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' limit operator @limit. For instance, if the key is "price" and limit is 3 this will return a new ERXKey "@limit.3.price".

Type Parameters:
U - the type of the next key
Parameters:
limit - the maximum number of objects allowed by the limit
key - the key to use for this keypath
Returns:
the new appended key
See Also:
LimitOperator

limit

public static <U> ERXKey<U> limit(java.lang.Integer limit)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' limit operator @limit. For instance, if the limit is 3 this will return a new ERXKey "@limit.3".

Type Parameters:
U - the type of the next key
Parameters:
limit - the maximum number of objects allowed by the limit
Returns:
the new appended key
See Also:
LimitOperator

atLimit

public <U> ERXKey<U> atLimit(java.lang.Integer limit)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' limit operator @limit. For instance, if the limit is 3 this will return a new ERXKey "@limit.3".

Type Parameters:
U - the type of the next key
Parameters:
limit - the maximum number of objects allowed by the limit
Returns:
the new appended key
See Also:
LimitOperator

median

public static ERXKey<java.math.BigDecimal> median()
Returns ERXArrayUtilities' median aggregate operator @median.

Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key
See Also:
MedianOperator

median

public static ERXKey<java.math.BigDecimal> median(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' median aggregate operator @median. For instance, if the key is "price" this will return a new ERXKey "@median.price".

Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key
See Also:
MedianOperator

atMedian

public ERXKey<java.math.BigDecimal> atMedian()
Returns a new ERXKey that appends the given key with ERXArrayUtilities' median aggregate operator @median.

Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key
See Also:
MedianOperator

atMedian

public ERXKey<java.math.BigDecimal> atMedian(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' median aggregate operator @median. For instance, if the key is "price" this will return a new ERXKey "@median.price".

Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key
See Also:
MedianOperator

objectAtIndex

public static <U> ERXKey<U> objectAtIndex(java.lang.Integer index,
                                          ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' objectAtIndex operator @objectAtIndex. For instance, if the index is 3 and the key is "price" then this will return a new ERXKey "@objectAtIndex.3.price".

Type Parameters:
U - the type of the next key
Parameters:
index - The index of the object to return from the array
key - the key following the operator
Returns:
the new appended key
See Also:
ObjectAtIndexOperator

atObjectAtIndex

public <U> ERXKey<U> atObjectAtIndex(java.lang.Integer index,
                                     ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' objectAtIndex operator @objectAtIndex. For instance, if the index is 3 and the key is "price" then this will return a new ERXKey "@objectAtIndex.3.price".

Type Parameters:
U - the type of the next key
Parameters:
index - The index of the object to return from the array
key - the key following the operator
Returns:
the new appended key
See Also:
ObjectAtIndexOperator

objectAtIndex

public static <U> ERXKey<U> objectAtIndex(java.lang.Integer index)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' objectAtIndex operator @objectAtIndex. For instance, if the index is 3 then this will return a new ERXKey "@objectAtIndex.3".

Type Parameters:
U - the type of the next key
Parameters:
index - The index of the object to return from the array
Returns:
the new appended key
See Also:
ObjectAtIndexOperator

atObjectAtIndex

public <U> ERXKey<U> atObjectAtIndex(java.lang.Integer index)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' objectAtIndex operator @objectAtIndex. For instance, if the index is 3 then this will return a new ERXKey "@objectAtIndex.3".

Type Parameters:
U - the type of the next key
Parameters:
index - The index of the object to return from the array
Returns:
the new appended key
See Also:
ObjectAtIndexOperator

removeNullValues

public static <U> ERXKey<U> removeNullValues(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' RemoveNullValues operator @removeNullValues. For instance, if the key is "price" this will return a new ERXKey "@removeNullValues.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this keypath
Returns:
the new appended key
See Also:
RemoveNullValuesOperator

atRemoveNullValues

public <U> ERXKey<U> atRemoveNullValues(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' RemoveNullValues operator @removeNullValues. For instance, if the key is "price" this will return a new ERXKey "@removeNullValues.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this keypath
Returns:
the new appended key
See Also:
RemoveNullValuesOperator

removeNullValues

public static <U> ERXKey<U> removeNullValues()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' RemoveNullValues operator @removeNullValues.

Type Parameters:
U - the type of the next key
Returns:
the new appended key
See Also:
RemoveNullValuesOperator

atRemoveNullValues

public <U> ERXKey<U> atRemoveNullValues()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' RemoveNullValues operator @removeNullValues.

Type Parameters:
U - the type of the next key
Returns:
the new appended key
See Also:
RemoveNullValuesOperator

reverse

public static <U> ERXKey<com.webobjects.foundation.NSArray<U>> reverse(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Reverse operator @reverse. For instance, if the key is "price" this will return a new ERXKey "@reverse.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this keypath
Returns:
the new appended key
See Also:
ReverseOperator

atReverse

public <U> ERXKey<com.webobjects.foundation.NSArray<U>> atReverse(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Reverse operator @reverse. For instance, if the key is "price" this will return a new ERXKey "@reverse.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this keypath
Returns:
the new appended key
See Also:
ReverseOperator

reverse

public static <U> ERXKey<U> reverse()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Reverse operator @reverse.

Type Parameters:
U - the type of the next key
Returns:
the new appended key
See Also:
ReverseOperator

atReverse

public <U> ERXKey<U> atReverse()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Reverse operator @reverse.

Type Parameters:
U - the type of the next key
Returns:
the new appended key
See Also:
ReverseOperator

sort

public static <U> ERXKey<U> sort(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Sort operator @sort. For instance, sort(Employee.FIRST_NAME, Employee.LAST_NAME) would return a key like @sort.firstName,lastname

Type Parameters:
U - the type of the next key
Parameters:
sortKeys - the ERXKeys to append for sorting
Returns:
the new appended key
See Also:
SortOperator

atSort

public <U> ERXKey<U> atSort(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Sort operator @sort. For instance, atSort(Employee.FIRST_NAME, Employee.LAST_NAME) would return a key like @sort.firstName,lastname

Type Parameters:
U - the type of the next key
Parameters:
sortKeys - the ERXKeys to append for sorting
Returns:
the new appended key
See Also:
SortOperator

sortAsc

public static <U> ERXKey<U> sortAsc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortAscending operator @sortAsc. For instance, sortAsc(Employee.FIRST_NAME, Employee.LAST_NAME) would return a key like @sortAsc.firstName,lastname

Type Parameters:
U - the type of the next key
Parameters:
sortKeys - the ERXKeys to append for sorting
Returns:
the new appended key
See Also:
SortOperator

atSortAsc

public <U> ERXKey<U> atSortAsc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortAsc operator @sortAsc. For instance, atSortAsc(Employee.FIRST_NAME, Employee.LAST_NAME) would return a key like @sortAsc.firstName,lastname

Type Parameters:
U - the type of the next key
Parameters:
sortKeys - the ERXKeys to append for sorting
Returns:
the new appended key
See Also:
SortOperator

sortDesc

public static <U> ERXKey<U> sortDesc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortDescending operator @sortDesc. For instance, sortDesc(Employee.FIRST_NAME, Employee.LAST_NAME) would return a key like @sortDesc.firstName,lastname

Type Parameters:
U - the type of the next key
Parameters:
sortKeys - the ERXKeys to append for sorting
Returns:
the new appended key
See Also:
SortOperator

atSortDesc

public <U> ERXKey<U> atSortDesc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortDescending operator @sortDesc. For instance, atSortDesc(Employee.FIRST_NAME, Employee.LAST_NAME) would return a key like @sortDesc.firstName,lastname

Type Parameters:
U - the type of the next key
Parameters:
sortKeys - the ERXKeys to append for sorting
Returns:
the new appended key
See Also:
SortOperator

sortInsensitiveAsc

public static <U> ERXKey<U> sortInsensitiveAsc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortInsensitiveAscending operator @sortInsensitiveAsc. For instance, sortInsensitiveAsc(Employee.FIRST_NAME, Employee.LAST_NAME) would return a key like @sortInsensitiveAsc.firstName,lastname

Type Parameters:
U - the type of the next key
Parameters:
sortKeys - the ERXKeys to append for sorting
Returns:
the new appended key
See Also:
SortOperator

atSortInsensitiveAsc

public <U> ERXKey<U> atSortInsensitiveAsc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortInsensitiveAscending operator @sortInsensitiveAsc. For instance, atSortInsensitiveAsc(Employee.FIRST_NAME, Employee.LAST_NAME) would return a key like @sortInsensitiveAsc.firstName,lastname

Type Parameters:
U - the type of the next key
Parameters:
sortKeys - the ERXKeys to append for sorting
Returns:
the new appended key
See Also:
SortOperator

sortInsensitiveDesc

public static <U> ERXKey<U> sortInsensitiveDesc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortInsensitiveDescending operator @sortInsensitiveDesc. For instance, sortInsensitiveDesc(Employee.FIRST_NAME, Employee.LAST_NAME) would return a key like @sortInsensitiveDesc.firstName,lastname

Type Parameters:
U - the type of the next key
Parameters:
sortKeys - the ERXKeys to append for sorting
Returns:
the new appended key
See Also:
SortOperator

atSortInsensitiveDesc

public <U> ERXKey<U> atSortInsensitiveDesc(ERXKey<?>... sortKeys)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SortInsensitiveDescending operator @sortInsensitiveDesc. For instance, atSortInsensitiveDesc(Employee.FIRST_NAME, Employee.LAST_NAME) would return a key like @sortInsensitiveDesc.firstName,lastname

Type Parameters:
U - the type of the next key
Parameters:
sortKeys - the ERXKeys to append for sorting
Returns:
the new appended key
See Also:
SortOperator

subarrayWithRange

public static <U> ERXKey<com.webobjects.foundation.NSArray<U>> subarrayWithRange(com.webobjects.foundation.NSRange range,
                                                                                 ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SubarrayWithRange operator @subarrayWithRange. For instance, if the key is "price" and the range is new NSRange(4,2) this will return a new ERXKey "@subarrayWithRange.4-2.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this keypath
range - the range for the operator
Returns:
the new appended key
See Also:
SubarrayWithRangeOperator

atSubarrayWithRange

public <U> ERXKey<com.webobjects.foundation.NSArray<U>> atSubarrayWithRange(com.webobjects.foundation.NSRange range,
                                                                            ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SubarrayWithRange operator @subarrayWithRange. For instance, if the key is "price" and the range is new NSRange(4,2) this will return a new ERXKey "@subarrayWithRange.4-2.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this keypath
range - the range for the operator
Returns:
the new appended key
See Also:
SubarrayWithRangeOperator

subarrayWithRange

public static <U> ERXKey<U> subarrayWithRange(com.webobjects.foundation.NSRange range)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SubarrayWithRange operator @subarrayWithRange. For instance, if the range is new NSRange(4,2) this will return a new ERXKey "@subarrayWithRange.4-2.price".

Type Parameters:
U - the type of the next key
Parameters:
range - the range for the operator
Returns:
the new appended key
See Also:
SubarrayWithRangeOperator

atSubarrayWithRange

public <U> ERXKey<U> atSubarrayWithRange(com.webobjects.foundation.NSRange range)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' SubarrayWithRange operator @subarrayWithRange. For instance, if the range is new NSRange(4,2) this will return a new ERXKey "@subarrayWithRange.4-2.price".

Type Parameters:
U - the type of the next key
Parameters:
range - the range for the operator
Returns:
the new appended key
See Also:
SubarrayWithRangeOperator

unique

public static <U> ERXKey<com.webobjects.foundation.NSArray<U>> unique(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Unique operator @unique. For instance, if the key is "price" this will return a new ERXKey "@unique.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this keypath
Returns:
the new appended key
See Also:
UniqueOperator

atUnique

public <U> ERXKey<com.webobjects.foundation.NSArray<U>> atUnique(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Unique operator @unique. For instance, if the key is "price" this will return a new ERXKey "@unique.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this keypath
Returns:
the new appended key
See Also:
UniqueOperator

unique

public static <U> ERXKey<U> unique()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Unique operator @unique.

Type Parameters:
U - the type of the next key
Returns:
the new appended key
See Also:
UniqueOperator

atUnique

public <U> ERXKey<U> atUnique()
Returns a new ERXKey that prepends the given key with ERXArrayUtilities' Unique operator @unique.

Type Parameters:
U - the type of the next key
Returns:
the new appended key
See Also:
UniqueOperator

sum

public static ERXKey<java.math.BigDecimal> sum(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with NSArray's SUM aggregate operator @sum. For instance, if the key is "price" this will return a new ERXKey "@sum.price".

Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key

atSum

public ERXKey<java.math.BigDecimal> atSum(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with NSArray's SUM aggregate operator @sum. For instance, if the key is "price" this will return a new ERXKey "@sum.price".

Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key

atSum

public ERXKey<java.math.BigDecimal> atSum()
Returns a new ERXKey that uses NSArray's SUM aggregate operator @sum.

Returns:
the new key

sum

public static ERXKey<java.math.BigDecimal> sum()
Returns a new ERXKey that uses NSArray's SUM aggregate operator @sum.

Returns:
the new key

popStdDev

public static ERXKey<java.math.BigDecimal> popStdDev()
Returns a new ERXKey that uses Wonder's standard deviation operator @popStdDev

Returns:
the new key
See Also:
StandardDeviationOperator

atPopStdDev

public ERXKey<java.math.BigDecimal> atPopStdDev()
Returns a new ERXKey that uses Wonder's standard deviation operator @popStdDev

Returns:
the new key
See Also:
StandardDeviationOperator

popStdDev

public static ERXKey<java.math.BigDecimal> popStdDev(ERXKey<?> key)
Returns a new ERXKey that uses Wonder's standard deviation operator @popStdDev

Parameters:
key - the key to append
Returns:
the new key
See Also:
StandardDeviationOperator

atPopStdDev

public ERXKey<java.math.BigDecimal> atPopStdDev(ERXKey<?> key)
Returns a new ERXKey that uses Wonder's standard deviation operator @popStdDev

Parameters:
key - the key to append
Returns:
the new key
See Also:
StandardDeviationOperator

stdDev

public static ERXKey<java.math.BigDecimal> stdDev()
Returns a new ERXKey that uses Wonder's standard deviation operator @stdDev

Returns:
the new key
See Also:
StandardDeviationOperator

atStdDev

public ERXKey<java.math.BigDecimal> atStdDev()
Returns a new ERXKey that uses Wonder's standard deviation operator @stdDev

Returns:
the new key
See Also:
StandardDeviationOperator

stdDev

public static ERXKey<java.math.BigDecimal> stdDev(ERXKey<?> key)
Returns a new ERXKey that uses Wonder's standard deviation operator @stdDev

Parameters:
key - the key to append
Returns:
the new key
See Also:
StandardDeviationOperator

atStdDev

public ERXKey<java.math.BigDecimal> atStdDev(ERXKey<?> key)
Returns a new ERXKey that uses Wonder's standard deviation operator @stdDev

Parameters:
key - the key to append
Returns:
the new key
See Also:
StandardDeviationOperator

avg

public static ERXKey<java.math.BigDecimal> avg(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with NSArray's AVERAGE aggregate operator @avg. For instance, if the key is "price" this will return a new ERXKey "@avg.price".

Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key

atAvg

public ERXKey<java.math.BigDecimal> atAvg(ERXKey<?> key)
Returns a new ERXKey that prepends the given key with NSArray's AVERAGE aggregate operator @avg. For instance, if the key is "price" this will return a new ERXKey "@avg.price".

Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key

avg

public static ERXKey<java.math.BigDecimal> avg()
Returns a new ERXKey that uses NSArray's AVERAGE aggregate operator @avg.

Returns:
the new key

atAvg

public ERXKey<java.math.BigDecimal> atAvg()
Returns a new ERXKey that uses NSArray's AVERAGE aggregate operator @avg.

Returns:
the new key

min

public static <U> ERXKey<U> min(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with NSArray's MIN aggregate operator @min. For instance, if the key is "price" this will return a new ERXKey "@min.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key

atMin

public <U> ERXKey<U> atMin(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with NSArray's MIN aggregate operator @min. For instance, if the key is "price" this will return a new ERXKey "@min.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key

min

public static <U> ERXKey<U> min()
Returns a new ERXKey that uses NSArray's MIN aggregate operator @min.

Type Parameters:
U - the type of the next key
Returns:
the new key

atMin

public <U> ERXKey<U> atMin()
Returns a new ERXKey that uses NSArray's MIN aggregate operator @min.

Type Parameters:
U - the type of the next key
Returns:
the new key

max

public static <U> ERXKey<U> max(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with NSArray's MAX aggregate operator @max. For instance, if the key is "price" this will return a new ERXKey "@max.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key

atMax

public <U> ERXKey<U> atMax(ERXKey<U> key)
Returns a new ERXKey that prepends the given key with NSArray's MAX aggregate operator @max. For instance, if the key is "price" this will return a new ERXKey "@max.price".

Type Parameters:
U - the type of the next key
Parameters:
key - the key to use for this aggregate keypath
Returns:
the new appended key

max

public static <U> ERXKey<U> max()
Returns a new ERXKey that uses NSArray's MAX aggregate operator @max.

Type Parameters:
U - the type of the next key
Returns:
the new key

atMax

public <U> ERXKey<U> atMax()
Returns a new ERXKey that uses NSArray's MAX aggregate operator @max.

Type Parameters:
U - the type of the next key
Returns:
the new key

count

public static ERXKey<java.lang.Integer> count()
Returns a new ERXKey that uses NSArray's COUNT operator @count. Since any keypath beyond @count is ignored, only a no arg method is available.

Returns:
the new key

atCount

public ERXKey<java.lang.Integer> atCount()
Returns a new ERXKey that uses NSArray's COUNT operator @count. Since any keypath beyond @count is ignored, only a no arg method is available.

Returns:
the new key

asc

public ERXSortOrdering asc()
Equivalent to ERXS.asc(key())

Returns:
asc sort ordering for key

ascs

public ERXSortOrdering.ERXSortOrderings ascs()
Equivalent to ERXS.ascs(key())

Returns:
asc sort ordering for key

desc

public ERXSortOrdering desc()
Equivalent to ERXS.desc(key())

Returns:
desc sort ordering for key

descs

public ERXSortOrdering.ERXSortOrderings descs()
Equivalent to ERXS.descs(key())

Returns:
desc sort ordering for key

ascInsensitive

public ERXSortOrdering ascInsensitive()
Equivalent to ERXS.ascInsensitive(key())

Returns:
ascInsensitive sort ordering for key

ascInsensitives

public ERXSortOrdering.ERXSortOrderings ascInsensitives()
Equivalent to ERXS.ascInsensitives(key())

Returns:
ascInsensitive sort ordering for key

descInsensitive

public ERXSortOrdering descInsensitive()
Equivalent to ERXS.descInsensitive(key())

Returns:
descInsensitive sort ordering for key

descInsensitives

public ERXSortOrdering.ERXSortOrderings descInsensitives()
Equivalent to ERXS.descInsensitives(key())

Returns:
descInsensitive sort ordering for key

key

public java.lang.String key()
Returns the keypath that this ERXKey represents.

Returns:
the keypath that this ERXKey represents

isTrue

public ERXKeyValueQualifier isTrue()
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorEqual, Boolean.TRUE);

Returns:
an ERXKeyValueQualifier

isFalse

public ERXKeyValueQualifier isFalse()
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorEqual, Boolean.FALSE);

Returns:
an ERXKeyValueQualifier

isUnlessNull

public ERXKeyValueQualifier isUnlessNull(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorEqual, value) only if the value is not null. If the value is null, this will return null, allowing you to conditionally chain an equals only if the value is non-null.

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier or null

is

public ERXKeyValueQualifier is(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorEqual, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

is

public ERXKeyComparisonQualifier is(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorEqual, value);

Parameters:
value - the value
Returns:
an ERXKeyComparisonQualifier

eq

public ERXKeyValueQualifier eq(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorEqual, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

eq

public ERXKeyComparisonQualifier eq(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorEqual, value);

Parameters:
value - the value
Returns:
an ERXKeyComparisonQualifier

isNot

public ERXKeyValueQualifier isNot(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorNotEqual, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

isNot

public ERXKeyComparisonQualifier isNot(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorNotEqual, value);

Parameters:
value - the value
Returns:
an ERXKeyComparisonQualifier

ne

public ERXKeyValueQualifier ne(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorNotEqual, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

ne

public ERXKeyComparisonQualifier ne(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorNotEqual, value);

Parameters:
value - the value
Returns:
an ERXKeyComparisonQualifier

greaterThan

public ERXKeyValueQualifier greaterThan(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorGreaterThan, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

greaterThan

public ERXKeyComparisonQualifier greaterThan(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorGreaterThan, value);

Parameters:
value - the value
Returns:
an ERXKeyComparisonQualifier

gt

public ERXKeyValueQualifier gt(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorGreaterThan, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

gt

public ERXKeyComparisonQualifier gt(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorGreaterThan, value);

Parameters:
value - the value
Returns:
an ERXKeyComparisonQualifier

lessThan

public ERXKeyValueQualifier lessThan(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorLessThan, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

lessThan

public ERXKeyComparisonQualifier lessThan(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorLessThan, value);

Parameters:
value - the value
Returns:
an ERXKeyComparisonQualifier

lt

public ERXKeyValueQualifier lt(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorLessThan, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

lt

public ERXKeyComparisonQualifier lt(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorLessThan, value);

Parameters:
value - the value
Returns:
an ERXKeyComparisonQualifier

greaterThanOrEqualTo

public ERXKeyValueQualifier greaterThanOrEqualTo(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorGreaterThanOrEqualTo, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

greaterThanOrEqualTo

public ERXKeyComparisonQualifier greaterThanOrEqualTo(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorGreaterThanOrEqualTo, value);

Parameters:
value - the value
Returns:
an ERXKeyComparisonQualifier

gte

public ERXKeyValueQualifier gte(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorGreaterThanOrEqualTo, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

gte

public ERXKeyComparisonQualifier gte(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorGreaterThanOrEqualTo, value);

Parameters:
value - the value
Returns:
an ERXKeyComparisonQualifier

lessThanOrEqualTo

public ERXKeyValueQualifier lessThanOrEqualTo(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorLessThanOrEqualTo, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

lessThanOrEqualTo

public ERXKeyComparisonQualifier lessThanOrEqualTo(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorLessThanOrEqualTo, value);

Parameters:
value - the value
Returns:
an ERXKeyComparisonQualifier

lte

public ERXKeyValueQualifier lte(T value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorLessThanOrEqualTo, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

lte

public ERXKeyComparisonQualifier lte(ERXKey<T> value)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorLessThanOrEqualTo, value);

Parameters:
value - the value
Returns:
an ERXKeyComparisonQualifier

like

public ERXKeyValueQualifier like(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorLike, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

likeInsensitive

public ERXKeyValueQualifier likeInsensitive(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorCaseInsensitiveLike, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

ilike

public ERXKeyValueQualifier ilike(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorCaseInsensitiveLike, value);

Parameters:
value - the value
Returns:
an ERXKeyValueQualifier

isNull

public ERXKeyValueQualifier isNull()
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorEqual, null);

Returns:
an ERXKeyValueQualifier

isNotNull

public ERXKeyValueQualifier isNotNull()
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorNotEqual, null);

Returns:
an ERXKeyValueQualifier

inObjects

public ERXOrQualifier inObjects(T... values)
Equivalent to a new ERXOrQualifier of EOKeyValueQualifier with key equals value for each value.

Parameters:
values - the values
Returns:
an ERXOrQualifier

in

public ERXOrQualifier in(com.webobjects.foundation.NSArray<T> values)
Equivalent to a new ERXOrQualifier of EOKeyValueQualifier with key equals value for each value.

Parameters:
values - the values
Returns:
an ERXOrQualifier

notIn

public ERXAndQualifier notIn(com.webobjects.foundation.NSArray<T> values)
Equivalent to a new ERXAndQualifier of EONotQualifier(EOKeyValueQualifier) with key equals value for each value.

Parameters:
values - the values
Returns:
an ERXAndQualifier

before

public ERXKeyValueQualifier before(com.webobjects.foundation.NSTimestamp when)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorLessThan, value);

Parameters:
when - the date to compare with
Returns:
an ERXKeyValueQualifier

before

public ERXKeyComparisonQualifier before(ERXKey<? extends com.webobjects.foundation.NSTimestamp> when)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorLessThan, value);

Parameters:
when - the date to compare with
Returns:
an ERXKeyComparisonQualifier

after

public ERXKeyValueQualifier after(com.webobjects.foundation.NSTimestamp when)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.QualifierOperatorGreaterThan, value);

Parameters:
when - the date to compare with
Returns:
an ERXKeyValueQualifier

after

public ERXKeyComparisonQualifier after(ERXKey<? extends com.webobjects.foundation.NSTimestamp> when)
Equivalent to new ERXKeyComparisonQualifier(key, EOQualifier.QualifierOperatorGreaterThan, value);

Parameters:
when - the date to compare with
Returns:
an ERXKeyComparisonQualifier

between

public com.webobjects.eocontrol.EOQualifier between(T lowerBound,
                                                    T upperBound)
Equivalent to key > lowerBound and key < upperBound (exclusive). Note that this does not return an ERXBetweenQualifier.

Parameters:
lowerBound - the lower bound value
upperBound - the upper bound value
Returns:
the qualifier

between

public com.webobjects.eocontrol.EOQualifier between(T lowerBound,
                                                    T upperBound,
                                                    boolean inclusive)
Equivalent to key >= lowerBound and key <= upperBound (inclusive). Note that this does not return an ERXBetweenQualifier.

Parameters:
lowerBound - the lower bound value
upperBound - the upper bound value
inclusive - whether or not the between includes the endpoints
Returns:
the qualifier

startsWith

public ERXKeyValueQualifier startsWith(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.OperatorLike, value + "*").

Parameters:
value - the substring value
Returns:
an ERXKeyValueQualifier

startsWithInsensitive

public ERXKeyValueQualifier startsWithInsensitive(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.OperatorCaseInsensitiveLike, value + "*").

Parameters:
value - the substring value
Returns:
an ERXKeyValueQualifier

endsWith

public ERXKeyValueQualifier endsWith(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.OperatorLike, "*" + value).

Parameters:
value - the substring value
Returns:
an ERXKeyValueQualifier

endsWithInsensitive

public ERXKeyValueQualifier endsWithInsensitive(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.OperatorCaseInsensitiveLike, "*" + value).

Parameters:
value - the substring value
Returns:
an ERXKeyValueQualifier

contains

public ERXKeyValueQualifier contains(java.lang.String value)
Equivalent to new ERXKeyValueQualifier(key, EOQualifier.OperatorCaseInsensitiveLike, "*" + value + "*").

Parameters:
value - the substring value
Returns:
an ERXKeyValueQualifier

containsAny

public 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. The search string will be tokenized by splitting on space characters.

Parameters:
tokens - a whitespace separated list of tokens to search for
Returns:
an ERXOrQualifier

containsAny

public 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).

Parameters:
tokens - the list of tokens to search for
Returns:
an ERXOrQualifier

containsAll

public 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. The search string will be tokenized by splitting on space characters.

Parameters:
tokens - a whitespace separated list of tokens to search for
Returns:
an ERXAndQualifier

containsAll

public 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).

Parameters:
tokens - the list of tokens to search for
Returns:
an ERXAndQualifier

containsObject

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).

Parameters:
obj - the object
Returns:
an EOKeyValueQualifier

hasValues

public ERXKeyValueQualifier hasValues(com.webobjects.foundation.NSArray<T> values)

Equivalent to new ERXInQualifier(key, values);

Parameters:
values - the values
Returns:
an ERXKeyValueQualifier

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

append

public <U> ERXKey<U> append(java.lang.String key)
Returns a new ERXKey that appends the given key to this keypath. For instance, if this key is "person" and you add "firstName" to it, this will return a new ERXKey "person.firstName". Note: ERXKey has a limitation that it will not return the proper generic type if you attempt to build a keypath extension of an NSArray. For instance, ERXKey<NSArray<Person>>.append(ERXKey<String>) will return ERXKey<String> when, in fact, it should be ERXKey<NSArray<String>>. This is a limitation due to type erasure with generics that we cannot currently resolve this problem.

Type Parameters:
U - the type of the next key
Parameters:
key - the key to append to this keypath
Returns:
the new appended key

dot

public <U> ERXKey<U> dot(java.lang.String key)
Calls append(key)

Type Parameters:
U - the key type
Parameters:
key - the key to append to this keypath
Returns:
the new appended key

append

public <U> ERXKey<U> append(ERXKey<U> key)
Returns a new ERXKey that appends the given key to this keypath. For instance, if this key is "person" and you add "firstName" to it, this will return a new ERXKey "person.firstName". Note: ERXKey has a limitation that it will not return the proper generic type if you attempt to build a keypath extension of an NSArray. For instance, ERXKey<NSArray<Person>>.append(ERXKey<String>) will return ERXKey<String> when, in fact, it should be ERXKey<NSArray<String>>. This is a limitation due to type erasure with generics that we cannot currently resolve this problem.

Type Parameters:
U - the type of the next key
Parameters:
key - the key to append to this keypath
Returns:
the new appended key

dot

public <U> ERXKey<U> dot(ERXKey<U> key)
Calls append(key)

Type Parameters:
U - the key type
Parameters:
key - the key to append to this keypath
Returns:
the new appended key

appendAsArray

public <U> ERXKey<com.webobjects.foundation.NSArray<U>> appendAsArray(ERXKey<U> key)
Returns a new ERXKey that appends the given key to this keypath. For instance, if this key is "person" and you add "firstName" to it, this will return a new ERXKey "person.firstName".
 <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>
 

Type Parameters:
U - the type of the next key in the array
Parameters:
key - the key to append to this keypath
Returns:
the new appended key

dotArray

public <U> ERXKey<com.webobjects.foundation.NSArray<U>> dotArray(ERXKey<U> key)
Calls appendAsArray(key).

Type Parameters:
U - the type
Parameters:
key - the key to append to this keypath
Returns:
the new append to this keypath

valueInObject

public T valueInObject(java.lang.Object obj)
Returns the value of this keypath on the given object. Note: If you ERXKey representation a keypath through an NSArray, this method will result in a ClassCastException. See the 'Note' on .append(..) for further explanation.

Parameters:
obj - the target object to apply this keypath on
Returns:
the value of the keypath on the target object

rawValueInObject

public java.lang.Object rawValueInObject(java.lang.Object obj)
Returns the value of this keypath on the given object.

Parameters:
obj - the target object to apply this keypath on
Returns:
the value of the keypath on the target object

arrayValueInObject

public com.webobjects.foundation.NSArray<T> arrayValueInObject(java.lang.Object obj)
Returns the value of this keypath on the given object cast as an NSArray.

Parameters:
obj - the target object to apply this keypath on
Returns:
the value of the keypath on the target object

takeValueInObject

public void takeValueInObject(T value,
                              java.lang.Object obj)
Sets the value of this keypath on the given object.

Parameters:
value - the value to set
obj - the object to set the value on

prefix

public com.webobjects.eocontrol.EOQualifier prefix(com.webobjects.eocontrol.EOQualifier qualifier)
Prefixes the keys in the given qualifier with this key. For example, if you have a qualifier on Company of name = 'mDT' and you want to find Person eo's whose companies match that qualifier, you need to prefix all the keys in the qualifier to be "company.whatever" (to go through the company relationship on Person) -- so in the example you would need company.name = 'mDT'. Prefix provides a mechanism to do that. Person.COMPANY.prefix(ERXQ.is("name", "mDT")) is equivalent to ERXQ.is("company.name", "mDT")

Parameters:
qualifier - the qualifier to prefix
Returns:
a qualifier with all of its keys prefixed with this key

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.