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
javax.persistence.metamodel.Attribute, org.hibernate.graph.CannotBecomeEntityGraphException, .CannotContainSubGraphException, .SubGraph, org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor

Integration version of the SubGraph contract
Author
Steve Ebersole

Method Summary

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

Redeclares org.hibernate.graph.Graph.addAttributeNode.

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

Add an AttributeNode (with no associated SubGraphNode) to this container by Attribute reference
public <AJ> SubGraphImplementor<AJ>
public default <AJ> SubGraphImplementor<? extends AJ>
addKeySubGraph(PersistentAttributeDescriptor<? extends J, AJ> attribute, Class<? extends AJ> subType)

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

public SubGraphImplementor<J>
public RootGraphImplementor<J>
makeRootGraph(String name, boolean mutable)

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

Create a named (if passed `name` != null) root Graph.
public default SubGraphImplementor<J>
makeSubGraph(boolean mutable)

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

Create a (mutable/immutable) SubGraph based on this Graph
Inherited from org.hibernate.graph.spi.GraphImplementor:
addAttributeNodeaddAttributeNodeaddAttributeNodeaddKeySubGraphaddKeySubGraphaddKeySubGraphaddKeySubGraphaddSubGraphaddSubGraphaddSubGraphaddSubGraphaddSubGraphaddSubGraphappliesToappliesTofindAttributeNodefindAttributeNodefindAttributeNodefindOrCreateAttributeNodefindOrCreateAttributeNodegetAttributeNodeImplementorsgetAttributeNodeListgetGraphedTypemergesessionFactoryvisitAttributeNodes
Inherited from org.hibernate.graph.SubGraph:
addAttributeNodesaddAttributeNodesaddKeySubgraphaddKeySubgraphaddKeySubgraphaddKeySubgraphaddSubgraphaddSubgraphaddSubgraphaddSubgraphgetAttributeNodesgetClassType

Method Detail

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

Redeclares org.hibernate.graph.Graph.addAttributeNode.

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

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

Add an AttributeNode (with no associated SubGraphNode) 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(PersistentAttributeDescriptor<? extends J, AJ> attribute, Class<? extends AJ> subType) throws CannotContainSubGraphException

Overrides default org.hibernate.graph.spi.GraphImplementor.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 (if passed `name` != null) root Graph. The `mutable` parameter controls whether the created Graph is mutable.

Annotations
@Override
Exceptions
CannotBecomeEntityGraphException:
For named attributes that are 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 (mutable/immutable) SubGraph based on this Graph

Annotations
@Override