Interface EntityLoadingBindingContext
A context allowing the binding of an entity type to loading strategies.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<E> void
massLoadingStrategy
(Class<E> expectedEntitySuperType, MassLoadingStrategy<? super E, ?> strategy) <T> T
<T> Optional
<T> paramOptional
(String name, Class<T> paramType) <E> void
selectionLoadingStrategy
(Class<E> expectedEntitySuperType, SelectionLoadingStrategy<? super E> strategy)
-
Method Details
-
entityType
PojoModelElement entityType()- Returns:
- The entity type being bound to loading strategies.
-
identifierType
PojoModelElement identifierType()- Returns:
- The type of identifiers for the entity type being bound to loading strategies.
-
selectionLoadingStrategy
<E> void selectionLoadingStrategy(Class<E> expectedEntitySuperType, SelectionLoadingStrategy<? super E> strategy) - Type Parameters:
E
- An expected entity supertype that the strategy can handle.- Parameters:
expectedEntitySuperType
- An expected entity supertype that the strategy can handle.strategy
- The strategy for selection loading, used in particular during search.
-
massLoadingStrategy
<E> void massLoadingStrategy(Class<E> expectedEntitySuperType, MassLoadingStrategy<? super E, ?> strategy) - Type Parameters:
E
- An expected entity supertype that the strategy can handle.- Parameters:
expectedEntitySuperType
- An expected entity supertype that the strategy can handle.strategy
- The strategy for mass loading, used in particular during mass indexing.
-
beanResolver
BeanResolver beanResolver()- Returns:
- A bean provider, allowing the retrieval of beans, including CDI/Spring DI beans when in the appropriate environment.
-
param
- Type Parameters:
T
- The type of the parameter.- Parameters:
name
- The name of the paramparamType
- The type of the parameter.- Returns:
- Get a param defined for the binder by the given name
- Throws:
SearchException
- if it does not exist a param having such name
-
paramOptional
- Type Parameters:
T
- The type of the parameter.- Parameters:
name
- The name of the paramparamType
- The type of the parameter.- Returns:
- Get an optional param defined for the binder by the given name, a param having such name may either exist or not.
-