class InMemoryRelatedFieldOrder extends Object implements Order, Comparator
| Constructor and Description |
|---|
InMemoryRelatedFieldOrder(FieldMetaData rel,
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 InMemoryRelatedFieldOrder(FieldMetaData rel, 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–2013 Apache Software Foundation. All rights reserved.