org.ofbiz.entity.condition
Class OrderByItem

java.lang.Object
  extended by org.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
static int DEFAULT
           
protected  boolean descending
           
static int LOWER
           
static int UPPER
           
protected  EntityConditionValue value
           
 
Constructor Summary
OrderByItem(EntityConditionValue value)
           
OrderByItem(EntityConditionValue value, boolean descending)
           
 
Method Summary
 void checkOrderBy(ModelEntity modelEntity)
           
 int compare(GenericEntity obj1, GenericEntity obj2)
           
 boolean equals(java.lang.Object obj)
           
 boolean getDescending()
           
 EntityConditionValue getValue()
           
 java.lang.String makeOrderByString(ModelEntity modelEntity, boolean includeTablenamePrefix, DatasourceInfo datasourceInfo)
           
 void makeOrderByString(java.lang.StringBuilder sb, ModelEntity modelEntity, boolean includeTablenamePrefix, DatasourceInfo datasourceInfo)
           
static OrderByItem parse(java.lang.Object obj)
           
static OrderByItem parse(java.lang.String text)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

descending

protected boolean descending

value

protected EntityConditionValue value
Constructor Detail

OrderByItem

public OrderByItem(EntityConditionValue value)

OrderByItem

public OrderByItem(EntityConditionValue value,
                   boolean descending)
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 interface java.util.Comparator<GenericEntity>

makeOrderByString

public java.lang.String makeOrderByString(ModelEntity modelEntity,
                                          boolean includeTablenamePrefix,
                                          DatasourceInfo datasourceInfo)

makeOrderByString

public void makeOrderByString(java.lang.StringBuilder sb,
                              ModelEntity modelEntity,
                              boolean includeTablenamePrefix,
                              DatasourceInfo datasourceInfo)

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Comparator<GenericEntity>
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object