Interface PojoSelectionLoadingContext
public interface PojoSelectionLoadingContext
-
Method Summary
Modifier and TypeMethodDescriptionvoidCheck whether this context is still open, throwing an exception if it is not.<T> PojoSelectionLoadingStrategy<? super T>loadingStrategy(PojoLoadingTypeContext<T> type) <T> Optional<PojoSelectionLoadingStrategy<? super T>>
-
Method Details
-
checkOpen
void checkOpen()Check whether this context is still open, throwing an exception if it is not. -
runtimeIntrospector
PojoRuntimeIntrospector runtimeIntrospector() -
loadingStrategy
- Type Parameters:
T- The type of entities that will have to be loaded.- Parameters:
type- The type of entities that will have to be loaded.- Returns:
- A loading strategy. Note that different types with the same strategy will be grouped together and loaded with a single loader.
- Throws:
org.hibernate.search.util.common.SearchException- if the given type cannot be loaded and thus has no loading strategy.- See Also:
-
loadingStrategyOptional
<T> Optional<PojoSelectionLoadingStrategy<? super T>> loadingStrategyOptional(PojoLoadingTypeContext<T> type) - Type Parameters:
T- The type of entities that will have to be loaded.- Parameters:
type- The type of entities that will have to be loaded.- Returns:
- A loading strategy, or
Optional.empty()if the given type cannot be loaded and thus has no loading strategy. Note that different types with the same strategy will be grouped together and loaded with a single loader. - See Also:
-