public class TableNameOrderByComparator<T> extends OrderByComparator<T>
Constructor and Description |
---|
TableNameOrderByComparator(OrderByComparator<T> orderByComparator,
String tableName) |
Modifier and Type | Method and Description |
---|---|
int |
compare(T obj1,
T obj2) |
String |
getOrderBy() |
String[] |
getOrderByConditionFields() |
Object[] |
getOrderByConditionValues(Object obj) |
String[] |
getOrderByFields() |
OrderByComparator<T> |
getWrappedOrderByComparator() |
boolean |
isAscending() |
boolean |
isAscending(String field) |
void |
setTableName(String tableName) |
String |
toString() |
public TableNameOrderByComparator(OrderByComparator<T> orderByComparator, String tableName)
public String getOrderBy()
getOrderBy
in class OrderByComparator<T>
public String[] getOrderByConditionFields()
getOrderByConditionFields
in class OrderByComparator<T>
public Object[] getOrderByConditionValues(Object obj)
getOrderByConditionValues
in class OrderByComparator<T>
public String[] getOrderByFields()
getOrderByFields
in class OrderByComparator<T>
public OrderByComparator<T> getWrappedOrderByComparator()
public boolean isAscending()
isAscending
in class OrderByComparator<T>
public boolean isAscending(String field)
isAscending
in class OrderByComparator<T>
public void setTableName(String tableName)
public String toString()
toString
in class OrderByComparator<T>