Interface PojoSelectionLoadingContext
-
public interface PojoSelectionLoadingContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
checkOpen()
Check 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>>
loadingStrategyOptional(PojoLoadingTypeContext<T> type)
PojoRuntimeIntrospector
runtimeIntrospector()
-
-
-
Method Detail
-
checkOpen
void checkOpen()
Check whether this context is still open, throwing an exception if it is not.
-
runtimeIntrospector
PojoRuntimeIntrospector runtimeIntrospector()
-
loadingStrategy
<T> PojoSelectionLoadingStrategy<? super T> loadingStrategy(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. Note that different types with the same strategy will be grouped together and loaded with a single loader.
- Throws:
SearchException
- if the given type cannot be loaded and thus has no loading strategy.- See Also:
PojoSelectionLoadingStrategy.createLoader(Set)
-
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:
PojoSelectionLoadingStrategy.createLoader(Set)
-
-