org.apache.openjpa.meta
Class InMemoryValueOrder
java.lang.Object
   org.apache.openjpa.meta.InMemoryValueOrder
org.apache.openjpa.meta.InMemoryValueOrder
- All Implemented Interfaces: 
- Serializable, Comparator, Order
-  class InMemoryValueOrder 
- extends Object- implements Order, Comparator
Order by the field value in memory. If the field contains
 PersistenceCapable objects, order on their primary key values.
 Relies on primary key values, including datastore oid objects, being
 Comparable.
- Author:
- Abe White
 
| Fields inherited from interface org.apache.openjpa.meta.Order | 
| ELEMENT | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
InMemoryValueOrder
public InMemoryValueOrder(boolean asc,
                          OpenJPAConfiguration conf)
getName
public String getName()
- Description copied from interface: Order
- Return the name of the orderable.
 
- 
- Specified by:
- getNamein interface- Order
 
- 
 
isAscending
public boolean isAscending()
- Description copied from interface: Order
- Order direction.
 
- 
- Specified by:
- isAscendingin interface- Order
 
- 
 
getComparator
public Comparator getComparator()
- Description copied from interface: Order
- Return a comparator for ordering by this element, or null if
 the ordering is done in the datastore.
 
- 
- Specified by:
- getComparatorin interface- Order
 
- 
 
compare
public int compare(Object o1,
                   Object o2)
- 
- Specified by:
- comparein interface- Comparator
 
- 
 
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.