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, wait
equals
public InMemoryRelatedFieldOrder(FieldMetaData rel, 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–2013 Apache Software Foundation. All rights reserved.