Class OrderByItem
- java.lang.Object
-
- org.apache.ofbiz.entity.condition.OrderByItem
-
- All Implemented Interfaces:
java.util.Comparator<GenericEntity>
public class OrderByItem extends java.lang.Object implements java.util.Comparator<GenericEntity>
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT
protected boolean
descending
static int
LOWER
static java.lang.String
module
static java.lang.String
NULLS_FIRST
static java.lang.String
NULLS_LAST
protected java.lang.Boolean
nullsFirst
static int
UPPER
protected EntityConditionValue
value
-
Constructor Summary
Constructors Constructor Description OrderByItem(EntityConditionValue value)
OrderByItem(EntityConditionValue value, boolean descending)
OrderByItem(EntityConditionValue value, boolean descending, java.lang.Boolean nullsFirst)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkOrderBy(ModelEntity modelEntity)
int
compare(GenericEntity obj1, GenericEntity obj2)
boolean
equals(java.lang.Object obj)
boolean
getDescending()
EntityConditionValue
getValue()
int
hashCode()
void
makeOrderByString(java.lang.StringBuilder sb, ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo)
java.lang.String
makeOrderByString(ModelEntity modelEntity, boolean includeTablenamePrefix, Datasource datasourceInfo)
static OrderByItem
parse(java.lang.Object obj)
static OrderByItem
parse(java.lang.String text)
java.lang.String
toString()
-
-
-
Field Detail
-
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
-
NULLS_FIRST
public static final java.lang.String NULLS_FIRST
- See Also:
- Constant Field Values
-
NULLS_LAST
public static final java.lang.String NULLS_LAST
- See Also:
- Constant Field Values
-
module
public static final java.lang.String module
-
descending
protected boolean descending
-
nullsFirst
protected java.lang.Boolean nullsFirst
-
value
protected EntityConditionValue value
-
-
Constructor Detail
-
OrderByItem
public OrderByItem(EntityConditionValue value)
-
OrderByItem
public OrderByItem(EntityConditionValue value, boolean descending)
-
OrderByItem
public OrderByItem(EntityConditionValue value, boolean descending, java.lang.Boolean nullsFirst)
-
-
Method Detail
-
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 interfacejava.util.Comparator<GenericEntity>
-
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)
-
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
-
-