Class HibernateOrmSelectionLoadingContext
- java.lang.Object
-
- org.hibernate.search.mapper.orm.loading.impl.HibernateOrmSelectionLoadingContext
-
- All Implemented Interfaces:
PojoSelectionLoadingContext
public final class HibernateOrmSelectionLoadingContext extends Object implements PojoSelectionLoadingContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHibernateOrmSelectionLoadingContext.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckOpen()Check whether this context is still open, throwing an exception if it is not.MutableEntityLoadingOptionsloadingOptions()<T> PojoSelectionLoadingStrategy<? super T>loadingStrategy(PojoLoadingTypeContext<T> type)<T> Optional<PojoSelectionLoadingStrategy<? super T>>loadingStrategyOptional(PojoLoadingTypeContext<T> type)PojoRuntimeIntrospectorruntimeIntrospector()org.hibernate.engine.spi.SessionImplementorsessionImplementor()
-
-
-
Method Detail
-
checkOpen
public void checkOpen()
Description copied from interface:PojoSelectionLoadingContextCheck whether this context is still open, throwing an exception if it is not.- Specified by:
checkOpenin interfacePojoSelectionLoadingContext
-
runtimeIntrospector
public PojoRuntimeIntrospector runtimeIntrospector()
- Specified by:
runtimeIntrospectorin interfacePojoSelectionLoadingContext
-
loadingStrategy
public <T> PojoSelectionLoadingStrategy<? super T> loadingStrategy(PojoLoadingTypeContext<T> type)
- Specified by:
loadingStrategyin interfacePojoSelectionLoadingContext- 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.
- See Also:
PojoSelectionLoadingStrategy.createLoader(Set)
-
loadingStrategyOptional
public <T> Optional<PojoSelectionLoadingStrategy<? super T>> loadingStrategyOptional(PojoLoadingTypeContext<T> type)
- Specified by:
loadingStrategyOptionalin interfacePojoSelectionLoadingContext- 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)
-
sessionImplementor
public org.hibernate.engine.spi.SessionImplementor sessionImplementor()
-
loadingOptions
public MutableEntityLoadingOptions loadingOptions()
-
-