Class MetamodelDrivenLoadPlanBuilder
- java.lang.Object
-
- org.hibernate.loader.plan.build.spi.MetamodelDrivenLoadPlanBuilder
-
public final class MetamodelDrivenLoadPlanBuilder extends java.lang.Object
A metadata-driven builder of LoadPlans. Coordinates between theMetamodelGraphWalker
and aLoadPlanBuildingAssociationVisitationStrategy
.- See Also:
MetamodelGraphWalker
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LoadPlan
buildRootCollectionLoadPlan(LoadPlanBuildingAssociationVisitationStrategy strategy, CollectionPersister persister)
Coordinates building a LoadPlan that defines just a single root collection return (may have fetches).static LoadPlan
buildRootEntityLoadPlan(LoadPlanBuildingAssociationVisitationStrategy strategy, EntityPersister persister)
Coordinates building a LoadPlan that defines just a single root entity return (may have fetches).
-
-
-
Method Detail
-
buildRootEntityLoadPlan
public static LoadPlan buildRootEntityLoadPlan(LoadPlanBuildingAssociationVisitationStrategy strategy, EntityPersister persister)
Coordinates building a LoadPlan that defines just a single root entity return (may have fetches). Typically this includes building load plans for entity loading or cascade loading.- Parameters:
strategy
- The strategy defining the load plan shapingpersister
- The persister for the entity forming the root of the load plan.- Returns:
- The built load plan.
-
buildRootCollectionLoadPlan
public static LoadPlan buildRootCollectionLoadPlan(LoadPlanBuildingAssociationVisitationStrategy strategy, CollectionPersister persister)
Coordinates building a LoadPlan that defines just a single root collection return (may have fetches).- Parameters:
strategy
- The strategy defining the load plan shapingpersister
- The persister for the collection forming the root of the load plan.- Returns:
- The built load plan.
-
-