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:GraphCreate a (mutable/immutable) SubGraph based on this Graph- Specified by:
makeSubGraphin interfaceGraph<J>- Specified by:
makeSubGraphin interfaceGraphImplementor<J>
-
makeRootGraph
RootGraphImplementor<J> makeRootGraph(java.lang.String name, boolean mutable) throws CannotBecomeEntityGraphException
Description copied from interface:GraphCreate a named (if passed `name` != null) root Graph. The `mutable` parameter controls whether the created Graph is mutable.- Specified by:
makeRootGraphin interfaceGraph<J>- Specified by:
makeRootGraphin interfaceGraphImplementor<J>- Throws:
CannotBecomeEntityGraphException- For named attributes that are not entity valued
-
addKeySubGraph
<AJ> SubGraphImplementor<AJ> addKeySubGraph(java.lang.String attributeName)
- Specified by:
addKeySubGraphin interfaceGraph<J>- Specified by:
addKeySubGraphin interfaceGraphImplementor<J>
-
addAttributeNode
<AJ> AttributeNodeImplementor<AJ> addAttributeNode(Attribute<? extends J,AJ> attribute)
Description copied from interface:GraphAdd an AttributeNode (with no associated SubGraphNode) to this container by Attribute reference- Specified by:
addAttributeNodein interfaceGraph<J>- Specified by:
addAttributeNodein interfaceGraphImplementor<J>
-
addKeySubGraph
default <AJ> SubGraphImplementor<? extends AJ> addKeySubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute, java.lang.Class<? extends AJ> subType) throws CannotContainSubGraphException
- Specified by:
addKeySubGraphin interfaceGraphImplementor<J>- Throws:
CannotContainSubGraphException
-
-