de.uplanet.lucy.server.newsagent
Interface IOrder

All Superinterfaces:
java.util.Comparator<de.uplanet.lucy.server.newsagent.IMessage>
All Known Implementing Classes:
ApplicationOrder, CreationOrder

@Scriptable
public interface IOrder
extends java.util.Comparator<de.uplanet.lucy.server.newsagent.IMessage>

Version:
$Revision: 72022 $

Method Summary
 void setAscending(boolean p_bAscending)
          Set ascending (default) or descending sort order.
 java.lang.String sqlOrderExpression()
          Provide a SQL order-by expression to order messages at database level.
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

setAscending

void setAscending(boolean p_bAscending)
Set ascending (default) or descending sort order.

Parameters:
p_bAscending - true if sorting order is ascending, or false otherwise.

sqlOrderExpression

java.lang.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 can not be provided.
Note:
The "ORDER BY" keyword must not be included in the returned string.


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.