Class OrderByList
- java.lang.Object
-
- org.apache.ofbiz.entity.condition.OrderByList
-
- All Implemented Interfaces:
java.util.Comparator<GenericEntity>
public class OrderByList extends java.lang.Object implements java.util.Comparator<GenericEntity>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<OrderByItem>
orderByList
-
Constructor Summary
Constructors Constructor Description OrderByList()
OrderByList(java.lang.String... orderByList)
OrderByList(java.util.Collection<java.lang.String> orderByList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrderBy(java.lang.String text)
void
addOrderBy(java.lang.String... orderByList)
void
addOrderBy(java.util.Collection<java.lang.String> orderByList)
void
addOrderBy(EntityConditionValue value)
void
addOrderBy(EntityConditionValue value, boolean descending)
void
addOrderBy(OrderByItem orderByItem)
void
checkOrderBy(ModelEntity modelEntity)
int
compare(GenericEntity entity1, GenericEntity entity2)
boolean
equals(java.lang.Object obj)
int
hashCode()
void
makeOrderByString(java.lang.StringBuilder sb, ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo)
java.lang.String
makeOrderByString(ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo)
java.lang.String
toString()
-
-
-
Field Detail
-
orderByList
protected java.util.List<OrderByItem> orderByList
-
-
Method Detail
-
addOrderBy
public void addOrderBy(java.lang.String... orderByList)
-
addOrderBy
public void addOrderBy(java.util.Collection<java.lang.String> orderByList)
-
addOrderBy
public void addOrderBy(java.lang.String text)
-
addOrderBy
public void addOrderBy(EntityConditionValue value)
-
addOrderBy
public void addOrderBy(EntityConditionValue value, boolean descending)
-
addOrderBy
public void addOrderBy(OrderByItem orderByItem)
-
checkOrderBy
public void checkOrderBy(ModelEntity modelEntity) throws GenericModelException
- Throws:
GenericModelException
-
makeOrderByString
public java.lang.String makeOrderByString(ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo)
-
makeOrderByString
public void makeOrderByString(java.lang.StringBuilder sb, ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo)
-
compare
public int compare(GenericEntity entity1, GenericEntity entity2)
- Specified by:
compare
in interfacejava.util.Comparator<GenericEntity>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.util.Comparator<GenericEntity>
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-