Class DtObjectComparator<D extends DtObject>
- java.lang.Object
-
- io.vertigo.datastore.impl.entitystore.DtObjectComparator<D>
-
- Type Parameters:
D
- Type de l'objet
- All Implemented Interfaces:
Comparator<D>
public final class DtObjectComparator<D extends DtObject> extends Object implements Comparator<D>
Comparateur des DtObject. S'appuie sur SortState. Si la colonne est un type primitif alors on effectue le tri sur ce type. Si la colonne est une UID on délégue à l'UID.- Author:
- pchretien
-
-
Constructor Summary
Constructors Constructor Description DtObjectComparator(EntityStoreManager entityStoreManager, DtField sortField, boolean sortDesc)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(D dto1, D dto2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
DtObjectComparator
public DtObjectComparator(EntityStoreManager entityStoreManager, DtField sortField, boolean sortDesc)
Constructor.- Parameters:
entityStoreManager
- Manager de persistencesortField
- the sort fieldsortDesc
- sort order
-
-