|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.meta.JDBCValueOrder
class JDBCValueOrder
Order by value columns, which are the primary key columns in the case of a relation field.
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.meta.Order |
---|
ELEMENT |
Constructor Summary | |
---|---|
JDBCValueOrder(FieldMapping fm,
boolean asc)
|
Method Summary | |
---|---|
Comparator<?> |
getComparator()
Return a comparator for ordering by this element, or null if the ordering is done in the datastore. |
DBIdentifier |
getIdentifier()
|
String |
getName()
Return the name of the orderable. |
boolean |
isAscending()
Order direction. |
boolean |
isInRelation()
Whether the value is a member of the field's related type, rather than columns of the field itself. |
void |
order(Select sel,
ClassMapping elem,
Joins joins)
Order by this value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCValueOrder(FieldMapping fm, boolean asc)
Method Detail |
---|
public String getName()
Order
getName
in interface Order
public DBIdentifier getIdentifier()
getIdentifier
in interface JDBCOrder
public boolean isAscending()
Order
isAscending
in interface Order
public Comparator<?> getComparator()
Order
getComparator
in interface Order
public boolean isInRelation()
JDBCOrder
isInRelation
in interface JDBCOrder
public void order(Select sel, ClassMapping elem, Joins joins)
JDBCOrder
order
in interface JDBCOrder
elem
- if this value has independent mappings, the mapping
we're selecting
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |