Class KeyListSortedEntityList
java.lang.Object
ch.tocco.nice2.persist.core.api.entity.AbstractEntityList
ch.tocco.nice2.persist.core.api.entity.AbstractEntityListWrapper
ch.tocco.nice2.persist.core.api.util.AbstractSortedEntityList
ch.tocco.nice2.persist.core.api.util.KeySortedEntityList
ch.tocco.nice2.persist.core.api.util.KeyListSortedEntityList
- All Implemented Interfaces:
EntityList
,Iterable<Entity>
A wrapper that sorts the EntityList automatically by a given sequence of PKs.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.persist.core.api.entity.AbstractEntityList
AbstractEntityList.SimpleIterator
Nested classes/interfaces inherited from interface ch.tocco.nice2.persist.core.api.entity.EntityList
EntityList.Filter
-
Field Summary
Fields inherited from class ch.tocco.nice2.persist.core.api.util.AbstractSortedEntityList
keys
Fields inherited from class ch.tocco.nice2.persist.core.api.entity.AbstractEntityListWrapper
entityList
-
Constructor Summary
ConstructorDescriptionKeyListSortedEntityList
(EntityList entityList, PrimaryKey[] sortByKeys) KeyListSortedEntityList
(EntityList entityList, List<PrimaryKey> sortByKeys) -
Method Summary
Methods inherited from class ch.tocco.nice2.persist.core.api.util.AbstractSortedEntityList
get, getKey, getKeys, indexOf, size
Methods inherited from class ch.tocco.nice2.persist.core.api.entity.AbstractEntityListWrapper
getManager, getModel, getPageCount, getPageSize, setPageSize, unwrap
Methods inherited from class ch.tocco.nice2.persist.core.api.entity.AbstractEntityList
contains, expect, expectAtLeast, expectAtMost, get, get, get, isEmpty, iterator, toList, toList
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.entity.EntityList
doWithSingleResult, doWithSingleResultOr, expectAtMostOrThrow, expectOr, expectOrThrow, getFirstEntity, getOnlyResult, getOptionalOnlyResult, getOptionalOnlyResult, requireFirstEntity, spliterator, stream
-
Constructor Details
-
KeyListSortedEntityList
public KeyListSortedEntityList(EntityList entityList, PrimaryKey[] sortByKeys) throws PersistException - Throws:
PersistException
-
KeyListSortedEntityList
public KeyListSortedEntityList(EntityList entityList, List<PrimaryKey> sortByKeys) throws PersistException - Throws:
PersistException
- See Also:
-