Class OrderByItem
java.lang.Object
org.apache.ofbiz.entity.condition.OrderByItem
- All Implemented Interfaces:
Comparator<GenericEntity>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOrderByItem
(EntityConditionValue value) OrderByItem
(EntityConditionValue value, boolean descending) OrderByItem
(EntityConditionValue value, boolean descending, Boolean nullsFirst) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkOrderBy
(ModelEntity modelEntity) Check order by.int
compare
(GenericEntity obj1, GenericEntity obj2) boolean
boolean
Gets descending.getValue()
Gets value.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.static final OrderByItem
static final OrderByItem
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 Details
-
DEFAULT
public static final int DEFAULT- See Also:
-
UPPER
public static final int UPPER- See Also:
-
-
Constructor Details
-
OrderByItem
-
OrderByItem
-
OrderByItem
-
-
Method Details
-
getValue
Gets value.- Returns:
- the value
-
getDescending
public boolean getDescending()Gets descending.- Returns:
- the descending
-
parse
-
parse
-
checkOrderBy
Check order by.- Parameters:
modelEntity
- the model entity- Throws:
GenericModelException
- the generic model exception
-
compare
- Specified by:
compare
in interfaceComparator<GenericEntity>
-
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
-
hashCode
public int hashCode() -
equals
- Specified by:
equals
in interfaceComparator<GenericEntity>
- Overrides:
equals
in classObject
-
toString
-