@Contract public interface EntityGraphProvider
entity graph
and object graph
instances.Modifier and Type | Method and Description |
---|---|
boolean |
containsEntityGraph(Class<?> entityClass,
boolean forWriter)
Determine whether an entity graph for given entity class has been created by this provider.
|
ObjectGraph |
createObjectGraph(Class<?> entityClass,
Set<String> filteringScopes,
boolean forWriter)
Create an
ObjectGraph for given parameters. |
EntityGraph |
getOrCreateEmptyEntityGraph(Class<?> entityClass,
boolean forWriter)
Get an empty entity graph for given class.
|
EntityGraph |
getOrCreateEntityGraph(Class<?> entityClass,
boolean forWriter)
Get an entity graph for given class.
|
EntityGraph getOrCreateEntityGraph(Class<?> entityClass, boolean forWriter)
entityClass
- entity class the graph should be created for.forWriter
- flag determining whether the graph should be created for writer/reader.EntityGraph getOrCreateEmptyEntityGraph(Class<?> entityClass, boolean forWriter)
getOrCreateEntityGraph(Class, boolean)
method.entityClass
- entity class the graph should be created for.forWriter
- flag determining whether the graph should be created for writer/reader.boolean containsEntityGraph(Class<?> entityClass, boolean forWriter)
entityClass
- entity class for which the graph should be checked.forWriter
- flag determining whether the check should be in writer/reader graphs.true
if the entity graph already exists, false
otherwise.ObjectGraph createObjectGraph(Class<?> entityClass, Set<String> filteringScopes, boolean forWriter)
ObjectGraph
for given parameters. Every time this method is called a new instance of object graph is
created.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.Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.