Class PojoMultiLoaderLoadingPlan<T>
java.lang.Object
org.hibernate.search.mapper.pojo.loading.impl.PojoMultiLoaderLoadingPlan<T>
- All Implemented Interfaces:
PojoLoadingPlan<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidloadBlocking(Deadline deadline) Loads the entities whose identifiers were passed toPojoLoadingPlan.planLoading(PojoLoadingTypeContext, Object), blocking the current thread while doing so.<T2 extends T>
intplanLoading(PojoLoadingTypeContext<T2> expectedType, Object identifier) Plans the loading of an entity instance.<T2 extends T>
T2retrieve(PojoLoadingTypeContext<T2> expectedType, int ordinal) Retrieves a loaded entity instance.
-
Constructor Details
-
PojoMultiLoaderLoadingPlan
-
-
Method Details
-
planLoading
Description copied from interface:PojoLoadingPlanPlans the loading of an entity instance.- Specified by:
planLoadingin interfacePojoLoadingPlan<T>- Type Parameters:
T2- The exact expected type for the entity instance.- Parameters:
expectedType- The exact expected type for the entity instance.identifier- The entity identifier.- Returns:
- An ordinal to pass later to
PojoLoadingPlan.retrieve(PojoLoadingTypeContext, int). - See Also:
-
loadBlocking
Description copied from interface:PojoLoadingPlanLoads the entities whose identifiers were passed toPojoLoadingPlan.planLoading(PojoLoadingTypeContext, Object), blocking the current thread while doing so.- Specified by:
loadBlockingin interfacePojoLoadingPlan<T>- Parameters:
deadline- The deadline for loading the entities, or null if there is no deadline.
-
retrieve
Description copied from interface:PojoLoadingPlanRetrieves a loaded entity instance.- Specified by:
retrievein interfacePojoLoadingPlan<T>- Type Parameters:
T2- The exact expected type for the entity instance.- Parameters:
expectedType- The expected type for the entity instance. Must be the same type passed toPojoLoadingPlan.planLoading(PojoLoadingTypeContext, Object).ordinal- The ordinal returned byPojoLoadingPlan.planLoading(PojoLoadingTypeContext, Object).- Returns:
- The loaded entity instance, or
nullif it was not found. The instance is guaranteed to be an instance of the given type exactly (not a subtype).
-
clear
public void clear()- Specified by:
clearin interfacePojoLoadingPlan<T>
-