org.ofbiz.entity.condition
Class OrderByItem
java.lang.Object
org.ofbiz.entity.condition.OrderByItem
- All Implemented Interfaces:
- java.util.Comparator<GenericEntity>
public class OrderByItem
- extends java.lang.Object
- implements java.util.Comparator<GenericEntity>
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT
public static final int DEFAULT
- See Also:
- Constant Field Values
UPPER
public static final int UPPER
- See Also:
- Constant Field Values
LOWER
public static final int LOWER
- See Also:
- Constant Field Values
descending
protected boolean descending
value
protected EntityConditionValue value
OrderByItem
public OrderByItem(EntityConditionValue value)
OrderByItem
public OrderByItem(EntityConditionValue value,
boolean descending)
getValue
public EntityConditionValue getValue()
getDescending
public boolean getDescending()
parse
public static final OrderByItem parse(java.lang.Object obj)
parse
public static final OrderByItem parse(java.lang.String text)
checkOrderBy
public void checkOrderBy(ModelEntity modelEntity)
throws GenericModelException
- Throws:
GenericModelException
compare
public int compare(GenericEntity obj1,
GenericEntity obj2)
- Specified by:
compare
in interface java.util.Comparator<GenericEntity>
makeOrderByString
public java.lang.String makeOrderByString(ModelEntity modelEntity,
boolean includeTablenamePrefix,
DatasourceInfo datasourceInfo)
makeOrderByString
public void makeOrderByString(java.lang.StringBuilder sb,
ModelEntity modelEntity,
boolean includeTablenamePrefix,
DatasourceInfo datasourceInfo)
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interface java.util.Comparator<GenericEntity>
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object