Constructor and Description |
---|
InMemoryRelatedFieldOrder(FieldMetaData rel,
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 InMemoryRelatedFieldOrder(FieldMetaData rel, boolean asc, OpenJPAConfiguration conf)
public java.lang.String getName()
Order
public boolean isAscending()
Order
isAscending
in interface Order
public java.util.Comparator getComparator()
Order
getComparator
in interface Order
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.