Class AcmSortingCriterion<TEntity extends de.xima.cmn.dao.interfaces.IEntity<Long>>
- java.lang.Object
-
- de.xima.fc.gui.model.data.sorting.AcmSortingCriterion<TEntity>
-
- All Implemented Interfaces:
IEntitySortingCriterion
,IJavaEntitySortingCriterion
,Serializable
public class AcmSortingCriterion<TEntity extends de.xima.cmn.dao.interfaces.IEntity<Long>> extends Object implements IJavaEntitySortingCriterion
Sorting criterion base onAttributeSelectCriteriaManager
.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AcmSortingCriterion(String key, Class<TEntity> entityClass, de.xima.cmn.criteria.SelectCriterion selectAttribute, Comparator<javax.persistence.Tuple> tupleComparator, Comparator<TEntity> entityComparator)
AcmSortingCriterion(String key, List<de.xima.cmn.criteria.SelectCriterion> selectAttributes, Class<TEntity> entityClass, Comparator<javax.persistence.Tuple> tupleComparator, Comparator<TEntity> entityComparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
@NotNull Comparator<TEntity>
getComparator()
de.xima.cmn.criteria.FilterCriterion
getFilterCriterion(IEntityContext ec, List<de.xima.cmn.criteria.FilterCriterion> filters, int first, int pageSize)
String
getKey()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.gui.interfaces.data.sort.IEntitySortingCriterion
getKey
-
-
-
-
Constructor Detail
-
AcmSortingCriterion
public AcmSortingCriterion(String key, Class<TEntity> entityClass, de.xima.cmn.criteria.SelectCriterion selectAttribute, Comparator<javax.persistence.Tuple> tupleComparator, Comparator<TEntity> entityComparator)
-
AcmSortingCriterion
public AcmSortingCriterion(String key, List<de.xima.cmn.criteria.SelectCriterion> selectAttributes, Class<TEntity> entityClass, Comparator<javax.persistence.Tuple> tupleComparator, Comparator<TEntity> entityComparator)
-
-
Method Detail
-
getFilterCriterion
public de.xima.cmn.criteria.FilterCriterion getFilterCriterion(IEntityContext ec, List<de.xima.cmn.criteria.FilterCriterion> filters, int first, int pageSize)
- Specified by:
getFilterCriterion
in interfaceIJavaEntitySortingCriterion
-
getComparator
@NotNull public @NotNull Comparator<TEntity> getComparator()
- Specified by:
getComparator
in interfaceIJavaEntitySortingCriterion
-
getKey
public String getKey()
- Specified by:
getKey
in interfaceIEntitySortingCriterion
- Returns:
- unique key of the sorting criterion supplier. Usually the sorting keyword. Used for
Object.equals(Object)
.
-
-