Package io.jmix.core
Interface FetchPlanRepository
- All Known Implementing Classes:
FetchPlanRepositoryImpl
public interface FetchPlanRepository
Represents a repository of shared
Repository contains all fetch plans defined in XML and deployed at runtime.
FetchPlan
objects, accessible by names.
Repository contains all fetch plans defined in XML and deployed at runtime.
-
Method Summary
Modifier and TypeMethodDescriptionfindFetchPlan
(MetaClass metaClass, String name) Searches for a FetchPlan for an entity.getFetchPlan
(MetaClass metaClass, String name) Get FetchPlan for an entity.getFetchPlan
(Class<?> entityClass, String name) Get fetch plan for an entity.getFetchPlanNames
(MetaClass metaClass) Returns names of fetch plans defined for the metaClassgetFetchPlanNames
(Class<?> entityClass) Returns names of fetch plans defined for the entityClass
-
Method Details
-
getFetchPlan
Get fetch plan for an entity.- Parameters:
entityClass
- entity classname
- fetch plan name- Returns:
- fetch plan instance. Throws
FetchPlanNotFoundException
if not found.
-
getFetchPlan
Get FetchPlan for an entity.- Parameters:
metaClass
- entity classname
- fetch plan name- Returns:
- fetch plan instance. Throws
FetchPlanNotFoundException
if not found.
-
findFetchPlan
Searches for a FetchPlan for an entity.- Parameters:
metaClass
- entity classname
- fetch plan name- Returns:
- fetch plan instance or null if no fetch plan found
-
getFetchPlanNames
Returns names of fetch plans defined for the metaClass- Parameters:
metaClass
- entity class- Returns:
- names of fetch plans
-
getFetchPlanNames
Returns names of fetch plans defined for the entityClass- Parameters:
entityClass
- entity class- Returns:
- names of fetch plans
-