Class DDLRecordSetNameComparator
java.lang.Object
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSet>
com.liferay.dynamic.data.lists.util.comparator.DDLRecordSetNameComparator
- All Implemented Interfaces:
com.liferay.petra.sql.dsl.query.sort.OrderByInfo
,Serializable
,Comparator<DDLRecordSet>
public class DDLRecordSetNameComparator
extends com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSet>
Used to order record sets by name during search operations. The order can be
ascending or descending and is defined by the value specified in the class
constructor.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(DDLRecordSet ddlRecordSet1, DDLRecordSet ddlRecordSet2) static DDLRecordSetNameComparator
getInstance
(boolean ascending) String[]
boolean
Methods inherited from class com.liferay.portal.kernel.util.OrderByComparator
getOrderByConditionFields, getOrderByConditionValues, isAscending, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
ORDER_BY_ASC
- See Also:
-
ORDER_BY_DESC
- See Also:
-
ORDER_BY_FIELDS
-
-
Method Details
-
getInstance
-
compare
-
getOrderBy
- Overrides:
getOrderBy
in classcom.liferay.portal.kernel.util.OrderByComparator<DDLRecordSet>
-
getOrderByFields
- Specified by:
getOrderByFields
in interfacecom.liferay.petra.sql.dsl.query.sort.OrderByInfo
- Overrides:
getOrderByFields
in classcom.liferay.portal.kernel.util.OrderByComparator<DDLRecordSet>
-
isAscending
public boolean isAscending()- Overrides:
isAscending
in classcom.liferay.portal.kernel.util.OrderByComparator<DDLRecordSet>
-