Package de.uplanet.lucy.server.newsagent
Interface IOrder
- All Superinterfaces:
Comparator<de.uplanet.lucy.server.newsagent.IMessage>
- All Known Implementing Classes:
ApplicationOrder
,CreationOrder
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setAscending
(boolean p_bAscending) Set ascending (default) or descending sort order.Provide a SQL order-by expression to order messages at database level.Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
setAscending
void setAscending(boolean p_bAscending) Set ascending (default) or descending sort order.- Parameters:
p_bAscending
-true
if sorting order is ascending, orfalse
otherwise.
-
sqlOrderExpression
String sqlOrderExpression()Provide a SQL order-by expression to order messages at database level.- Returns:
- The SQL order-by expression or
null
if such an expression cannot be provided.
-