Liferay 7.0-ce-b4

com.liferay.portlet.documentlibrary.util.comparator
Class RepositoryModelReadCountComparator<T>

java.lang.Object
  extended by com.liferay.portal.kernel.util.OrderByComparator<T>
      extended by com.liferay.portlet.documentlibrary.util.comparator.RepositoryModelReadCountComparator<T>
All Implemented Interfaces:
Serializable, Comparator<T>

public class RepositoryModelReadCountComparator<T>
extends OrderByComparator<T>

See Also:
Serialized Form

Field Summary
static String ORDER_BY_ASC
           
static String ORDER_BY_DESC
           
static String[] ORDER_BY_FIELDS
           
static String ORDER_BY_MODEL_ASC
           
static String ORDER_BY_MODEL_DESC
           
 
Constructor Summary
RepositoryModelReadCountComparator()
           
RepositoryModelReadCountComparator(boolean ascending)
           
RepositoryModelReadCountComparator(boolean ascending, boolean orderByModel)
           
 
Method Summary
 int compare(T t1, T t2)
           
protected  long getFileShortcutReadCount(Object obj)
           
 String getOrderBy()
           
 String[] getOrderByFields()
           
protected  long getReadCount(Object obj)
           
 boolean isAscending()
           
 
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
 

Field Detail

ORDER_BY_ASC

public static final String ORDER_BY_ASC
See Also:
Constant Field Values

ORDER_BY_DESC

public static final String ORDER_BY_DESC
See Also:
Constant Field Values

ORDER_BY_FIELDS

public static final String[] ORDER_BY_FIELDS

ORDER_BY_MODEL_ASC

public static final String ORDER_BY_MODEL_ASC
See Also:
Constant Field Values

ORDER_BY_MODEL_DESC

public static final String ORDER_BY_MODEL_DESC
See Also:
Constant Field Values
Constructor Detail

RepositoryModelReadCountComparator

public RepositoryModelReadCountComparator()

RepositoryModelReadCountComparator

public RepositoryModelReadCountComparator(boolean ascending)

RepositoryModelReadCountComparator

public RepositoryModelReadCountComparator(boolean ascending,
                                          boolean orderByModel)
Method Detail

compare

public int compare(T t1,
                   T t2)

getOrderBy

public String getOrderBy()
Overrides:
getOrderBy in class OrderByComparator<T>

getOrderByFields

public String[] getOrderByFields()
Overrides:
getOrderByFields in class OrderByComparator<T>

isAscending

public boolean isAscending()
Overrides:
isAscending in class OrderByComparator<T>

getFileShortcutReadCount

protected long getFileShortcutReadCount(Object obj)

getReadCount

protected long getReadCount(Object obj)

Liferay 7.0-ce-b4