Package de.uplanet.lucy.server.newsagent
Interface IOrder
-
- All Superinterfaces:
Comparator<de.uplanet.lucy.server.newsagent.IMessage>
- All Known Implementing Classes:
ApplicationOrder
,CreationOrder
@Scriptable public interface IOrder extends Comparator<de.uplanet.lucy.server.newsagent.IMessage>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setAscending(boolean p_bAscending)
Set ascending (default) or descending sort order.String
sqlOrderExpression()
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 Detail
-
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.
-
-