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, wait
equals
public InMemoryValueOrder(boolean asc, OpenJPAConfiguration conf)
public String getName()
Order
public boolean isAscending()
Order
isAscending
in interface Order
public Comparator getComparator()
Order
getComparator
in interface Order
public int compare(Object o1, Object o2)
compare
in interface Comparator
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.