Class ApplicationOrder

  • All Implemented Interfaces:
    IOrder, Comparator<de.uplanet.lucy.server.newsagent.IMessage>

    @Scriptable
    public final class ApplicationOrder
    extends Object
    implements IOrder
    Order messages by application GUID and creation time.
    • Constructor Detail

      • ApplicationOrder

        public ApplicationOrder()
        Construct a ApplicationOrder. for ascending order.
    • Method Detail

      • setAscending

        public void setAscending​(boolean p_bAscending)
        Description copied from interface: IOrder
        Set ascending (default) or descending sort order.
        Specified by:
        setAscending in interface IOrder
        Parameters:
        p_bAscending - true if sorting order is ascending, or false otherwise.
      • setCreationTimeAscending

        public void setCreationTimeAscending​(boolean p_bAscending)
        Set ascending or descending (default) sort order for the creation time.
      • compare

        public 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:
        compare in interface Comparator<de.uplanet.lucy.server.newsagent.IMessage>
        See Also:
        Comparator.compare(Object, Object)
      • sqlOrderExpression

        public String sqlOrderExpression()
        The creation order SQL-expression.
        Specified by:
        sqlOrderExpression in interface IOrder
        Returns:
        The creation order SQL-expression.