Interface SelectionLoadingStrategy<E>
- Type Parameters:
E- The type of loaded entities.
A strategy for selection loading, used in particular during search.
-
Method Summary
Modifier and TypeMethodDescriptioncreateEntityLoader(LoadingTypeGroup<E> includedTypes, SelectionLoadingOptions options) booleanstatic <E,I> SelectionLoadingStrategy <E> Creates a simple map-based loading strategy.inthashCode()
-
Method Details
-
fromMap
Creates a simple map-based loading strategy.Generally only useful for tests.
- Type Parameters:
E- The type of loaded entities.I- The type of entity identifiers.- Parameters:
map- A map from containing all entity identifiers as keys, and the corresponding entity as value.- Returns:
- A loading strategy that loads entities from the given map.
-
equals
-
hashCode
-
createEntityLoader
SelectionEntityLoader<E> createEntityLoader(LoadingTypeGroup<E> includedTypes, SelectionLoadingOptions options) - Parameters:
includedTypes- A representation of all entity types that will have to be loaded.options- Loading options configured by the requester (who created the session, requested the search, ...).- Returns:
- An entity loader.
-