Class OrderByList
java.lang.Object
org.apache.ofbiz.entity.condition.OrderByList
- All Implemented Interfaces:
Comparator<GenericEntity>
-
Constructor Summary
ConstructorDescriptionOrderByList
(String... orderByList) OrderByList
(Collection<String> orderByList) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOrderBy
(String text) Add order by.void
addOrderBy
(String... orderByList) Add order by.void
addOrderBy
(Collection<String> orderByList) Add order by.void
addOrderBy
(EntityConditionValue value) Add order by.void
addOrderBy
(EntityConditionValue value, boolean descending) Add order by.void
addOrderBy
(OrderByItem orderByItem) Add order by.void
checkOrderBy
(ModelEntity modelEntity) Check order by.int
compare
(GenericEntity entity1, GenericEntity entity2) boolean
int
hashCode()
void
makeOrderByString
(StringBuilder sb, ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo) Make order by string.makeOrderByString
(ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo) Make order by string 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
-
Constructor Details
-
OrderByList
public OrderByList() -
OrderByList
-
OrderByList
-
-
Method Details
-
addOrderBy
Add order by.- Parameters:
orderByList
- the order by list
-
addOrderBy
Add order by.- Parameters:
orderByList
- the order by list
-
addOrderBy
Add order by.- Parameters:
text
- the text
-
addOrderBy
Add order by.- Parameters:
value
- the value
-
addOrderBy
Add order by.- Parameters:
value
- the valuedescending
- the descending
-
addOrderBy
Add order by.- Parameters:
orderByItem
- the order by item
-
checkOrderBy
Check order by.- Parameters:
modelEntity
- the model entity- Throws:
GenericModelException
- the generic model exception
-
makeOrderByString
public String makeOrderByString(ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo) Make order by string string.- Parameters:
modelEntity
- the model entityincludeTablenamePrefix
- the include tablename prefixdatasourceInfo
- the datasource info- Returns:
- the string
-
makeOrderByString
public void makeOrderByString(StringBuilder sb, ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo) Make order by string.- Parameters:
sb
- the sbmodelEntity
- the model entityincludeTablenamePrefix
- the include tablename prefixdatasourceInfo
- the datasource info
-
compare
- Specified by:
compare
in interfaceComparator<GenericEntity>
-
hashCode
public int hashCode() -
equals
- Specified by:
equals
in interfaceComparator<GenericEntity>
- Overrides:
equals
in classObject
-
toString
-