org.squashtest.tm.service.internal.repository.hibernate
Class LevelImplementorSorter
java.lang.Object
org.squashtest.tm.service.internal.repository.hibernate.LevelImplementorSorter
- All Implemented Interfaces:
- org.squashtest.tm.core.foundation.collection.MultiSorting, org.squashtest.tm.core.foundation.collection.Paging, org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting
public final class LevelImplementorSorter
- extends Object
- implements org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting
- Author:
- Frederic,bsiri
Enables sorting of objects according to Enums that implements
Level. Note : the correct type should something like <? extends Level & Enum >
but I cannot make java comply with such type declaration, so the type checking will happen at runtime.
|
Constructor Summary |
LevelImplementorSorter(org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LevelImplementorSorter
public LevelImplementorSorter(org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting)
map
public void map(String attributeName,
Class<? extends Enum<?>> levelClass)
getFirstItemIndex
public int getFirstItemIndex()
- Specified by:
getFirstItemIndex in interface org.squashtest.tm.core.foundation.collection.Paging
getPageSize
public int getPageSize()
- Specified by:
getPageSize in interface org.squashtest.tm.core.foundation.collection.Paging
shouldDisplayAll
public boolean shouldDisplayAll()
- Specified by:
shouldDisplayAll in interface org.squashtest.tm.core.foundation.collection.Paging
getSortings
public List<org.squashtest.tm.core.foundation.collection.Sorting> getSortings()
- Specified by:
getSortings in interface org.squashtest.tm.core.foundation.collection.MultiSorting
Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.