Package de.uplanet.lucy.server.newsagent
Class ApplicationOrder
java.lang.Object
de.uplanet.lucy.server.newsagent.ApplicationOrder
- All Implemented Interfaces:
- IOrder,- Comparator<de.uplanet.lucy.server.newsagent.IMessage>
Order messages by application GUID and creation time.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintcompare(de.uplanet.lucy.server.newsagent.IMessage p_msg1, de.uplanet.lucy.server.newsagent.IMessage p_msg2) Compare two messages using their application GUID and their creation time.voidsetAscending(boolean p_bAscending) Set ascending (default) or descending sort order.voidsetCreationTimeAscending(boolean p_bAscending) Set ascending or descending (default) sort order for the creation time.The creation order SQL-expression.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Constructor Details- 
ApplicationOrderpublic ApplicationOrder()Construct aApplicationOrder.for ascending order.
 
- 
- 
Method Details- 
setAscendingpublic void setAscending(boolean p_bAscending) Description copied from interface:IOrderSet ascending (default) or descending sort order.- Specified by:
- setAscendingin interface- IOrder
- Parameters:
- p_bAscending-- trueif sorting order is ascending, or- falseotherwise.
 
- 
setCreationTimeAscendingpublic void setCreationTimeAscending(boolean p_bAscending) Set ascending or descending (default) sort order for the creation time.
- 
comparepublic int compare(de.uplanet.lucy.server.newsagent.IMessage p_msg1, de.uplanet.lucy.server.newsagent.IMessage p_msg2) Compare two messages using their application GUID and their creation time.- Specified by:
- comparein interface- Comparator<de.uplanet.lucy.server.newsagent.IMessage>
- See Also:
 
- 
sqlOrderExpressionThe creation order SQL-expression.- Specified by:
- sqlOrderExpressionin interface- IOrder
- Returns:
- The creation order SQL-expression.
 
 
-