class InMemoryValueOrder extends Object implements Order, 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(Object o1,
Object o2) |
Comparator |
getComparator()
Return a comparator for ordering by this element, or null if
the ordering is done in the datastore.
|
String |
getName()
Return the name of the orderable.
|
boolean |
isAscending()
Order direction.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic InMemoryValueOrder(boolean asc,
OpenJPAConfiguration conf)
public String getName()
Orderpublic boolean isAscending()
OrderisAscending in interface Orderpublic Comparator getComparator()
OrdergetComparator in interface Orderpublic int compare(Object o1, Object o2)
compare in interface ComparatorCopyright © 2006–2015 Apache Software Foundation. All rights reserved.