Package org.hibernate.graph.spi
Interface SubGraphImplementor<J>
- All Superinterfaces:
Graph<J>
,GraphImplementor<J>
,GraphNode<J>
,GraphNodeImplementor<J>
,Subgraph<J>
,SubGraph<J>
- All Known Implementing Classes:
SubGraphImpl
Integration version of the
SubGraph
contract.- See Also:
-
Method Summary
Modifier and TypeMethodDescription<AJ> AttributeNodeImplementor<AJ>
addAttributeNode
(PersistentAttribute<? extends J, AJ> attribute) Add anAttributeNode
(with no associatedSubGraph
) to this container by attribute reference.<AJ> SubGraphImplementor<AJ>
addKeySubGraph
(String attributeName) default <AJ> SubGraphImplementor<? extends AJ>
addKeySubGraph
(PersistentAttribute<? extends J, AJ> attribute, Class<? extends AJ> subType) makeCopy
(boolean mutable) makeRootGraph
(String name, boolean mutable) Create a named rootGraph
if the given name is not null.default SubGraphImplementor<J>
makeSubGraph
(boolean mutable) Methods inherited from interface org.hibernate.graph.Graph
addPluralSubgraph, getGraphAttributeNodes, getGraphedType
Methods inherited from interface org.hibernate.graph.spi.GraphImplementor
addAttributeNode, addAttributeNode, addKeySubGraph, addKeySubGraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, findAttributeNode, findAttributeNode, findOrCreateAttributeNode, findOrCreateAttributeNode, getAttributeNodeImplementors, getAttributeNodeList, merge, visitAttributeNodes
Methods inherited from interface org.hibernate.graph.SubGraph
addAttributeNodes, addAttributeNodes, addKeySubgraph, addKeySubgraph, addKeySubgraph, addKeySubgraph, addSubgraph, addSubgraph, addSubgraph, addSubgraph, getAttributeNodes, getClassType
-
Method Details
-
makeCopy
-
makeSubGraph
Description copied from interface:Graph
- Specified by:
makeSubGraph
in interfaceGraph<J>
- Specified by:
makeSubGraph
in interfaceGraphImplementor<J>
-
makeRootGraph
RootGraphImplementor<J> makeRootGraph(String name, boolean mutable) throws CannotBecomeEntityGraphException Description copied from interface:Graph
Create a named rootGraph
if the given name is not null.- Specified by:
makeRootGraph
in interfaceGraph<J>
- Specified by:
makeRootGraph
in interfaceGraphImplementor<J>
mutable
- controls whether the resultingGraph
is mutable- Throws:
CannotBecomeEntityGraphException
- If the named attribute is not entity-valued
-
addKeySubGraph
- Specified by:
addKeySubGraph
in interfaceGraph<J>
- Specified by:
addKeySubGraph
in interfaceGraphImplementor<J>
-
addAttributeNode
Description copied from interface:Graph
Add anAttributeNode
(with no associatedSubGraph
) to this container by attribute reference.- Specified by:
addAttributeNode
in interfaceGraph<J>
- Specified by:
addAttributeNode
in interfaceGraphImplementor<J>
-
addKeySubGraph
default <AJ> SubGraphImplementor<? extends AJ> addKeySubGraph(PersistentAttribute<? extends J, AJ> attribute, Class<? extends AJ> subType) throws CannotContainSubGraphException- Specified by:
addKeySubGraph
in interfaceGraph<J>
- Specified by:
addKeySubGraph
in interfaceGraphImplementor<J>
- Throws:
CannotContainSubGraphException
-