Top Description Methods
org.hibernate.graph.spi

public Interface SubGraphImplementor<J>

extends SubGraph<J>, GraphImplementor<J>
Known Direct Implementers
org.hibernate.graph.internal.SubGraphImpl
Imports
org.hibernate.graph.CannotBecomeEntityGraphException, .CannotContainSubGraphException, .SubGraph, org.hibernate.metamodel.model.domain.PersistentAttribute

Integration version of the SubGraph contract.
Author
Steve Ebersole
See Also
RootGraphImplementor

Method Summary

Modifier and TypeMethod and Description
public <AJ> AttributeNodeImplementor<AJ>
addAttributeNode(PersistentAttribute<? extends J, AJ> attribute)

Redeclares org.hibernate.graph.Graph.addAttributeNode, org.hibernate.graph.spi.GraphImplementor.addAttributeNode.

Add an AttributeNode (with no associated SubGraph) to this container by attribute reference.
public <AJ> SubGraphImplementor<AJ>
public default <AJ> SubGraphImplementor<? extends AJ>
public SubGraphImplementor<J>
public RootGraphImplementor<J>
makeRootGraph(String name, boolean
controls whether the resulting Graph is mutable
mutable
)

Redeclares org.hibernate.graph.Graph.makeRootGraph, org.hibernate.graph.spi.GraphImplementor.makeRootGraph.

Create a named root Graph if the given name is not null.
public default SubGraphImplementor<J>
makeSubGraph(boolean mutable)

Implements org.hibernate.graph.Graph.makeSubGraph, org.hibernate.graph.spi.GraphImplementor.makeSubGraph.

Create a new (mutable or immutable) SubGraph rooted at this Graph.
Inherited from org.hibernate.graph.spi.GraphImplementor:
addAttributeNodeaddAttributeNodeaddKeySubGraphaddKeySubGraphaddSubGraphaddSubGraphaddSubGraphaddSubGraphfindAttributeNodefindAttributeNodefindOrCreateAttributeNodefindOrCreateAttributeNodegetAttributeNodeImplementorsgetAttributeNodeListmergevisitAttributeNodes
Inherited from org.hibernate.graph.SubGraph:
addAttributeNodesaddAttributeNodesaddKeySubgraphaddKeySubgraphaddKeySubgraphaddKeySubgraphaddSubgraphaddSubgraphaddSubgraphaddSubgraphgetAttributeNodesgetClassType

Method Detail

addAttributeNodeback to summary
public <AJ> AttributeNodeImplementor<AJ> addAttributeNode(PersistentAttribute<? extends J, AJ> attribute)

Redeclares org.hibernate.graph.Graph.addAttributeNode, org.hibernate.graph.spi.GraphImplementor.addAttributeNode.

Doc from org.hibernate.graph.Graph.addAttributeNode.

Add an AttributeNode (with no associated SubGraph) to this container by attribute reference.

Annotations
@Override
addKeySubGraphback to summary
public <AJ> SubGraphImplementor<AJ> addKeySubGraph(String attributeName)

Redeclares org.hibernate.graph.Graph.addKeySubGraph.

Redeclares as abstract: org.hibernate.graph.spi.GraphImplementor.addKeySubGraph.

Annotations
@Override
addKeySubGraphback to summary
public default <AJ> SubGraphImplementor<? extends AJ> addKeySubGraph(PersistentAttribute<? extends J, AJ> attribute, Class<? extends AJ> subType) throws CannotContainSubGraphException

Overrides default org.hibernate.graph.spi.GraphImplementor.addKeySubGraph.

Implements org.hibernate.graph.Graph.addKeySubGraph.

Annotations
@Override
makeCopyback to summary
public SubGraphImplementor<J> makeCopy(boolean mutable)

Redeclares org.hibernate.graph.Graph.makeCopy, org.hibernate.graph.spi.GraphImplementor.makeCopy.

Annotations
@Override
makeRootGraphback to summary
public RootGraphImplementor<J> makeRootGraph(String name, boolean mutable) throws CannotBecomeEntityGraphException

Redeclares org.hibernate.graph.Graph.makeRootGraph, org.hibernate.graph.spi.GraphImplementor.makeRootGraph.

Doc from org.hibernate.graph.Graph.makeRootGraph.

Create a named root Graph if the given name is not null.

Parameters
mutable:boolean

controls whether the resulting Graph is mutable

Annotations
@Override
Exceptions
CannotBecomeEntityGraphException:
If the named attribute is not entity-valued
makeSubGraphback to summary
public default SubGraphImplementor<J> makeSubGraph(boolean mutable)

Implements org.hibernate.graph.Graph.makeSubGraph, org.hibernate.graph.spi.GraphImplementor.makeSubGraph.

Doc from org.hibernate.graph.Graph.makeSubGraph.

Create a new (mutable or immutable) SubGraph rooted at this Graph.

Annotations
@Override