Interface EntityGraphProvider
- All Known Implementing Classes:
EntityGraphProviderImpl
Provides
entity graph and object graph instances.-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsEntityGraph(Class<?> entityClass, boolean forWriter) Determine whether an entity graph for given entity class has been created by this provider.createObjectGraph(Class<?> entityClass, Set<String> filteringScopes, boolean forWriter) Create anObjectGraphfor given parameters.getOrCreateEmptyEntityGraph(Class<?> entityClass, boolean forWriter) Get an empty entity graph for given class.getOrCreateEntityGraph(Class<?> entityClass, boolean forWriter) Get an entity graph for given class.
-
Method Details
-
getOrCreateEntityGraph
Get an entity graph for given class. New graph is created if no graph exists for given class.- Parameters:
entityClass- entity class the graph should be created for.forWriter- flag determining whether the graph should be created for writer/reader.- Returns:
- an entity graph.
-
getOrCreateEmptyEntityGraph
Get an empty entity graph for given class. New graph is created if the stored one is not an empty entity graph or no graph exists for given class. This method overrides the graph created bygetOrCreateEntityGraph(Class, boolean)method.- Parameters:
entityClass- entity class the graph should be created for.forWriter- flag determining whether the graph should be created for writer/reader.- Returns:
- an empty entity graph.
-
containsEntityGraph
Determine whether an entity graph for given entity class has been created by this provider.- Parameters:
entityClass- entity class for which the graph should be checked.forWriter- flag determining whether the check should be in writer/reader graphs.- Returns:
trueif the entity graph already exists,falseotherwise.
-
createObjectGraph
Create anObjectGraphfor given parameters. Every time this method is called a new instance of object graph is created.- Parameters:
entityClass- entity class which the object graph should be created for.filteringScopes- entity-filtering scopes the graph should be created for.forWriter- flag determining whether the graph should be created for writer/reader.- Returns:
- an entity-filtering object graph instance.
-