class InMemoryValueOrder extends java.lang.Object implements Order, java.util.Comparator
PersistenceCapable objects, order on their primary key values.
Relies on primary key values, including datastore oid objects, being
Comparable.| Constructor and Description |
|---|
InMemoryValueOrder(boolean asc,
OpenJPAConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2) |
java.util.Comparator |
getComparator()
Return a comparator for ordering by this element, or null if
the ordering is done in the datastore.
|
java.lang.String |
getName()
Return the name of the orderable.
|
boolean |
isAscending()
Order direction.
|
public InMemoryValueOrder(boolean asc,
OpenJPAConfiguration conf)
public java.lang.String getName()
Orderpublic boolean isAscending()
OrderisAscending in interface Orderpublic java.util.Comparator getComparator()
OrdergetComparator in interface Orderpublic int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.ComparatorCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.