Class DDLRecordIdComparator

java.lang.Object
com.liferay.portal.kernel.util.OrderByComparator<DDLRecord>
com.liferay.dynamic.data.lists.util.comparator.DDLRecordIdComparator
All Implemented Interfaces:
com.liferay.petra.sql.dsl.query.sort.OrderByInfo, Serializable, Comparator<DDLRecord>

public class DDLRecordIdComparator extends com.liferay.portal.kernel.util.OrderByComparator<DDLRecord>
Used to order records according their IDs during listing operations. The order can be ascending or descending and is defined by the value specified in the class constructor.
See Also:
  • Field Details

  • Method Details

    • getInstance

      public static DDLRecordIdComparator getInstance(boolean ascending)
    • compare

      public int compare(DDLRecord record1, DDLRecord record2)
    • getOrderBy

      public String getOrderBy()
      Overrides:
      getOrderBy in class com.liferay.portal.kernel.util.OrderByComparator<DDLRecord>
    • getOrderByFields

      public String[] getOrderByFields()
      Specified by:
      getOrderByFields in interface com.liferay.petra.sql.dsl.query.sort.OrderByInfo
      Overrides:
      getOrderByFields in class com.liferay.portal.kernel.util.OrderByComparator<DDLRecord>
    • isAscending

      public boolean isAscending()
      Overrides:
      isAscending in class com.liferay.portal.kernel.util.OrderByComparator<DDLRecord>