Class OrderByList
- java.lang.Object
-
- org.apache.ofbiz.entity.condition.OrderByList
-
- All Implemented Interfaces:
Comparator<GenericEntity>
public class OrderByList extends Object implements Comparator<GenericEntity>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<OrderByItem>
orderByList
-
Constructor Summary
Constructors Constructor Description OrderByList()
OrderByList(String... orderByList)
OrderByList(Collection<String> orderByList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrderBy(String text)
void
addOrderBy(String... orderByList)
void
addOrderBy(Collection<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(Object obj)
int
hashCode()
void
makeOrderByString(StringBuilder sb, ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo)
String
makeOrderByString(ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
orderByList
protected List<OrderByItem> orderByList
-
-
Constructor Detail
-
OrderByList
public OrderByList()
-
OrderByList
public OrderByList(String... orderByList)
-
OrderByList
public OrderByList(Collection<String> orderByList)
-
-
Method Detail
-
addOrderBy
public void addOrderBy(String... orderByList)
-
addOrderBy
public void addOrderBy(Collection<String> orderByList)
-
addOrderBy
public void addOrderBy(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 String makeOrderByString(ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo)
-
makeOrderByString
public void makeOrderByString(StringBuilder sb, ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo)
-
compare
public int compare(GenericEntity entity1, GenericEntity entity2)
- Specified by:
compare
in interfaceComparator<GenericEntity>
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceComparator<GenericEntity>
- Overrides:
equals
in classObject
-
-