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.- Author:
- Steve Ebersole
- 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 rootGraphif the given name is not null.default SubGraphImplementor<J>makeSubGraph(boolean mutable) Methods inherited from interface org.hibernate.graph.Graph
addPluralSubgraph, getGraphAttributeNodes, getGraphedTypeMethods inherited from interface org.hibernate.graph.spi.GraphImplementor
addAttributeNode, addAttributeNode, addKeySubGraph, addKeySubGraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, findAttributeNode, findAttributeNode, findOrCreateAttributeNode, findOrCreateAttributeNode, getAttributeNodeImplementors, getAttributeNodeList, merge, visitAttributeNodesMethods 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:
makeSubGraphin interfaceGraph<J>- Specified by:
makeSubGraphin interfaceGraphImplementor<J>
-
makeRootGraph
RootGraphImplementor<J> makeRootGraph(String name, boolean mutable) throws CannotBecomeEntityGraphException Description copied from interface:GraphCreate a named rootGraphif the given name is not null.- Specified by:
makeRootGraphin interfaceGraph<J>- Specified by:
makeRootGraphin interfaceGraphImplementor<J>mutable- controls whether the resultingGraphis mutable- Throws:
CannotBecomeEntityGraphException- If the named attribute is not entity-valued
-
addKeySubGraph
- Specified by:
addKeySubGraphin interfaceGraph<J>- Specified by:
addKeySubGraphin interfaceGraphImplementor<J>
-
addAttributeNode
Description copied from interface:GraphAdd anAttributeNode(with no associatedSubGraph) to this container by attribute reference.- Specified by:
addAttributeNodein interfaceGraph<J>- Specified by:
addAttributeNodein interfaceGraphImplementor<J>
-
addKeySubGraph
default <AJ> SubGraphImplementor<? extends AJ> addKeySubGraph(PersistentAttribute<? extends J, AJ> attribute, Class<? extends AJ> subType) throws CannotContainSubGraphException- Specified by:
addKeySubGraphin interfaceGraph<J>- Specified by:
addKeySubGraphin interfaceGraphImplementor<J>- Throws:
CannotContainSubGraphException
-