Interface PojoEntityLoadingBindingContext
public interface PojoEntityLoadingBindingContext
-
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.search.engine.environment.bean.BeanResolver<E> voidmassLoadingStrategy(Class<E> expectedEntitySuperType, PojoMassLoadingStrategy<? super E, ?> strategy) <T> T<T> Optional<T> paramOptional(String name, Class<T> paramType) <E> voidselectionLoadingStrategy(Class<E> expectedEntitySuperType, PojoSelectionLoadingStrategy<? 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, PojoSelectionLoadingStrategy<? 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, PojoMassLoadingStrategy<? 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
org.hibernate.search.engine.environment.bean.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:
org.hibernate.search.util.common.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.
-