Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.util
Class OrderByComparator

java.lang.Object
  extended by 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

Constructor Summary
OrderByComparator()
           
 
Method Summary
abstract  int compare(Object obj1, Object obj2)
           
 String getOrderBy()
           
 String[] getOrderByConditionFields()
           
 Object[] getOrderByConditionValues(Object obj)
           
 String[] getOrderByFields()
           
 boolean isAscending()
           
 boolean isAscending(String field)
           
 String 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
 

Constructor Detail

OrderByComparator

public OrderByComparator()
Method Detail

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

Liferay 6.1.2-ce-ga3