com.liferay.portal.kernel.util
Class OrderByComparator
java.lang.Object
com.liferay.portal.kernel.util.OrderByComparator
- All Implemented Interfaces:
- Serializable, Comparator
- Direct Known Subclasses:
- ArticleCreateDateComparator, ArticleDisplayDateComparator, ArticleIDComparator, ArticleModifiedDateComparator, ArticleReviewDateComparator, ArticleTitleComparator, ArticleVersionComparator, AssetTagCountComparator, BaseWorkflowDefinitionNameComparator, BaseWorkflowInstanceEndDateComparator, BaseWorkflowInstanceStartDateComparator, BaseWorkflowInstanceStateComparator, BaseWorkflowLogCreateDateComparator, BaseWorkflowLogUserIdComparator, BaseWorkflowTaskCompletionDateComparator, BaseWorkflowTaskCreateDateComparator, BaseWorkflowTaskDueDateComparator, BaseWorkflowTaskNameComparator, BaseWorkflowTaskUserIdComparator, DLContentVersionComparator, EntryCreateDateComparator, EntryDisplayDateComparator, EntryModifiedDateComparator, EntryNameComparator, EntryPriorityComparator, EntryURLComparator, EntryVisitsComparator, FileRankCreateDateComparator, GroupFriendlyURLComparator, GroupNameComparator, GroupTypeComparator, ItemMinQuantityComparator, ItemNameComparator, ItemPriceComparator, ItemSKUComparator, LayoutComparator, LayoutPriorityComparator, LayoutRevisionCreateDateComparator, LayoutRevisionIdComparator, LayoutSetBranchCreateDateComparator, MessageCreateDateComparator, OrderDateComparator, OrganizationNameComparator, OrganizationTypeComparator, PageCreateDateComparator, PageTitleComparator, PageVersionComparator, PasswordPolicyDescriptionComparator, PasswordPolicyNameComparator, PermissionComparator, ProductEntryCreateDateComparator, ProductEntryModifiedDateComparator, ProductEntryNameComparator, ProductEntryTypeComparator, RepositoryModelCreateDateComparator, RepositoryModelModifiedDateComparator, RepositoryModelNameComparator, RepositoryModelReadCountComparator, RepositoryModelSizeComparator, ResourceComparator, RoleDescriptionComparator, RoleNameComparator, RoleRoleIdComparator, RoleTypeComparator, RuleGroupInstancePriorityComparator, StatsUserLastPostDateComparator, StructurePKComparator, StructureStructureKeyComparator, SubscriptionClassNameIdComparator, ThreadLastPostDateComparator, UserEmailAddressComparator, UserFirstNameComparator, UserGroupDescriptionComparator, UserGroupNameComparator, UserJobTitleComparator, UserLastNameComparator, UserLoginDateComparator, UserScreenNameComparator
public abstract class OrderByComparator
- extends Object
- implements Comparator, Serializable
- See Also:
- Serialized Form
OrderByComparator
public OrderByComparator()
compare
public abstract int compare(Object obj1,
Object obj2)
- Specified by:
compare
in interface Comparator
getOrderBy
public String getOrderBy()
getOrderByConditionFields
public String[] getOrderByConditionFields()
getOrderByConditionValues
public Object[] getOrderByConditionValues(Object obj)
getOrderByFields
public String[] getOrderByFields()
isAscending
public boolean isAscending()
isAscending
public boolean isAscending(String field)
toString
public String toString()
- Overrides:
toString
in class Object