org.apache.openjpa.meta
Interface Order

All Superinterfaces:
Serializable
All Known Subinterfaces:
JDBCOrder
All Known Implementing Classes:
InMemoryRelatedFieldOrder, InMemoryValueOrder, JDBCColumnOrder, JDBCRelatedFieldOrder, JDBCValueOrder

public interface Order
extends Serializable

Order a field.

Author:
Abe White

Field Summary
static String ELEMENT
          Token denoting to order by the element value.
 
Method Summary
 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.
 

Field Detail

ELEMENT

static final String ELEMENT
Token denoting to order by the element value.

See Also:
Constant Field Values
Method Detail

getName

String getName()
Return the name of the orderable.


isAscending

boolean isAscending()
Order direction.


getComparator

Comparator getComparator()
Return a comparator for ordering by this element, or null if the ordering is done in the datastore.



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.