Package org.hibernate.graph.spi
Interface SubGraphImplementor<J>
-
- All Superinterfaces:
Graph<J>
,GraphImplementor<J>
,GraphNode<J>
,GraphNodeImplementor<J>
,Subgraph<J>
,SubGraph<J>
public interface SubGraphImplementor<J> extends SubGraph<J>, GraphImplementor<J>
Integration version of the SubGraph contract
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <AJ> AttributeNodeImplementor<AJ>
addAttributeNode(Attribute<? extends J,AJ> attribute)
Add an AttributeNode (with no associated SubGraphNode) to this container by Attribute reference<AJ> SubGraphImplementor<AJ>
addKeySubGraph(java.lang.String attributeName)
default <AJ> SubGraphImplementor<? extends AJ>
addKeySubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute, java.lang.Class<? extends AJ> subType)
SubGraphImplementor<J>
makeCopy(boolean mutable)
RootGraphImplementor<J>
makeRootGraph(java.lang.String name, boolean mutable)
Create a named (if passed `name` != null) root Graph.default SubGraphImplementor<J>
makeSubGraph(boolean mutable)
Create a (mutable/immutable) SubGraph based on this Graph-
Methods inherited from interface org.hibernate.graph.Graph
getGraphAttributeNodes
-
Methods inherited from interface org.hibernate.graph.spi.GraphImplementor
addAttributeNode, addAttributeNode, addAttributeNode, addKeySubGraph, addKeySubGraph, addKeySubGraph, addKeySubGraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, appliesTo, appliesTo, findAttributeNode, findAttributeNode, findAttributeNode, findOrCreateAttributeNode, findOrCreateAttributeNode, getAttributeNodeImplementors, getAttributeNodeList, getGraphedType, merge, sessionFactory, visitAttributeNodes
-
Methods inherited from interface org.hibernate.graph.SubGraph
addAttributeNodes, addAttributeNodes, addKeySubgraph, addKeySubgraph, addKeySubgraph, addKeySubgraph, addSubgraph, addSubgraph, addSubgraph, addSubgraph, getAttributeNodes, getClassType
-
-
-
-
Method Detail
-
makeCopy
SubGraphImplementor<J> makeCopy(boolean mutable)
-
makeSubGraph
default SubGraphImplementor<J> makeSubGraph(boolean mutable)
Description copied from interface:Graph
Create a (mutable/immutable) SubGraph based on this Graph- Specified by:
makeSubGraph
in interfaceGraph<J>
- Specified by:
makeSubGraph
in interfaceGraphImplementor<J>
-
makeRootGraph
RootGraphImplementor<J> makeRootGraph(java.lang.String name, boolean mutable) throws CannotBecomeEntityGraphException
Description copied from interface:Graph
Create a named (if passed `name` != null) root Graph. The `mutable` parameter controls whether the created Graph is mutable.- Specified by:
makeRootGraph
in interfaceGraph<J>
- Specified by:
makeRootGraph
in interfaceGraphImplementor<J>
- Throws:
CannotBecomeEntityGraphException
- For named attributes that are not entity valued
-
addKeySubGraph
<AJ> SubGraphImplementor<AJ> addKeySubGraph(java.lang.String attributeName)
- Specified by:
addKeySubGraph
in interfaceGraph<J>
- Specified by:
addKeySubGraph
in interfaceGraphImplementor<J>
-
addAttributeNode
<AJ> AttributeNodeImplementor<AJ> addAttributeNode(Attribute<? extends J,AJ> attribute)
Description copied from interface:Graph
Add an AttributeNode (with no associated SubGraphNode) 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(PersistentAttributeDescriptor<? extends J,AJ> attribute, java.lang.Class<? extends AJ> subType) throws CannotContainSubGraphException
- Specified by:
addKeySubGraph
in interfaceGraphImplementor<J>
- Throws:
CannotContainSubGraphException
-
-