Top Description Fields Constructors Methods
org.hibernate.graph.internal

public abstract Class AbstractGraph<J>

extends AbstractGraphNode<J>
implements GraphImplementor<J>
Class Inheritance
All Implemented Interfaces
org.hibernate.graph.spi.GraphImplementor, org.hibernate.graph.spi.GraphNodeImplementor, org.hibernate.graph.GraphNode, org.hibernate.graph.Graph
Known Direct Subclasses
org.hibernate.graph.internal.RootGraphImpl, org.hibernate.graph.internal.SubGraphImpl
Imports
java.util.ArrayList, .Collections, .HashMap, .List, .Map, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.graph.AttributeNode, .CannotBecomeEntityGraphException, .CannotContainSubGraphException, .RootGraph, .SubGraph, org.hibernate.graph.spi.AttributeNodeImplementor, .GraphImplementor, .RootGraphImplementor, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor, .EntityTypeDescriptor, .ManagedTypeDescriptor

Base class for RootGraph and SubGraph implementations.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Map<PersistentAttributeDescriptor<?, ?>, AttributeNodeImplementor<?>>
private final ManagedTypeDescriptor<J>

Constructor Summary

AccessConstructor and Description
public
AbstractGraph(ManagedTypeDescriptor<J> managedType, boolean mutable, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
protected
AbstractGraph(boolean mutable, GraphImplementor<J> original)

Method Summary

Modifier and TypeMethod and Description
public AttributeNodeImplementor<?>
public <AJ> AttributeNodeImplementor<AJ>
addAttributeNode(String attributeName)

Implements org.hibernate.graph.spi.GraphImplementor.addAttributeNode.

Add an AttributeNode (with no associated SubGraphNodes) to this container by attribute name
public <AJ> AttributeNodeImplementor<AJ>
public <AJ> AttributeNodeImplementor<AJ>
findAttributeNode(String attributeName)

Implements org.hibernate.graph.spi.GraphImplementor.findAttributeNode.

Find an already existing AttributeNode by attributeName within this container
public <AJ> AttributeNodeImplementor<AJ>
public <AJ> AttributeNodeImplementor<AJ>
public List<AttributeNodeImplementor<?>>
public List<AttributeNode<?>>
public ManagedTypeDescriptor<J>
getGraphedType()

Implements org.hibernate.graph.spi.GraphImplementor.getGraphedType.

Graphs apply only to ManagedTypes.
public RootGraphImplementor<J>
makeRootGraph(String name, boolean mutable)

Implements org.hibernate.graph.spi.GraphImplementor.makeRootGraph.

Create a named (if passed `name` != null) root Graph.
public void
public SessionFactoryImplementor
Inherited from org.hibernate.graph.internal.AbstractGraphNode:
isMutableverifyMutability

Field Detail

attrNodeMapback to summary
private Map<PersistentAttributeDescriptor<?, ?>, AttributeNodeImplementor<?>> attrNodeMap
managedTypeback to summary
private final ManagedTypeDescriptor<J> managedType

Constructor Detail

AbstractGraphback to summary
public AbstractGraph(ManagedTypeDescriptor<J> managedType, boolean mutable, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

AbstractGraphback to summary
protected AbstractGraph(boolean mutable, GraphImplementor<J> original)
Annotations
@SuppressWarnings:WeakerAccess

Method Detail

addAttributeNodeback to summary
public AttributeNodeImplementor<?> addAttributeNode(AttributeNodeImplementor<?> incomingAttributeNode)

Implements org.hibernate.graph.spi.GraphImplementor.addAttributeNode.

Annotations
@Override
addAttributeNodeback to summary
public <AJ> AttributeNodeImplementor<AJ> addAttributeNode(String attributeName) throws CannotContainSubGraphException

Implements org.hibernate.graph.spi.GraphImplementor.addAttributeNode.

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

Add an AttributeNode (with no associated SubGraphNodes) to this container by attribute name

Annotations
@Override
addAttributeNodeback to summary
public <AJ> AttributeNodeImplementor<AJ> addAttributeNode(PersistentAttributeDescriptor<? extends J, AJ> attribute) throws CannotContainSubGraphException

Implements org.hibernate.graph.spi.GraphImplementor.addAttributeNode.

Annotations
@Override
findAttributeNodeback to summary
public <AJ> AttributeNodeImplementor<AJ> findAttributeNode(String attributeName)

Implements org.hibernate.graph.spi.GraphImplementor.findAttributeNode.

Doc from org.hibernate.graph.Graph.findAttributeNode.

Find an already existing AttributeNode by attributeName within this container

Annotations
@Override
@SuppressWarnings:unchecked
findAttributeNodeback to summary
public <AJ> AttributeNodeImplementor<AJ> findAttributeNode(PersistentAttributeDescriptor<? extends J, AJ> attribute)

Implements org.hibernate.graph.spi.GraphImplementor.findAttributeNode.

Annotations
@Override
@SuppressWarnings:unchecked
findOrCreateAttributeNodeback to summary
public <AJ> AttributeNodeImplementor<AJ> findOrCreateAttributeNode(PersistentAttributeDescriptor<? extends J, AJ> attribute)

Implements org.hibernate.graph.spi.GraphImplementor.findOrCreateAttributeNode.

Annotations
@Override
@SuppressWarnings:unchecked
getAttributeNodeImplementorsback to summary
public List<AttributeNodeImplementor<?>> getAttributeNodeImplementors()

Implements org.hibernate.graph.spi.GraphImplementor.getAttributeNodeImplementors.

Annotations
@Override
getGraphAttributeNodesback to summary
public List<AttributeNode<?>> getGraphAttributeNodes()

Implements org.hibernate.graph.Graph.getGraphAttributeNodes.

Doc from org.hibernate.graph.Graph.getGraphAttributeNodes.

Ultimately only needed for implementing javax.persistence.EntityGraph#getAttributeNodes() and javax.persistence.Subgraph#getAttributeNodes()

Annotations
@Override
@SuppressWarnings:unchecked
getGraphedTypeback to summary
public ManagedTypeDescriptor<J> getGraphedType()

Implements org.hibernate.graph.spi.GraphImplementor.getGraphedType.

Doc from org.hibernate.graph.Graph.getGraphedType.

Graphs apply only to ManagedTypes. Returns the ManagedType being graphed here.

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

Implements 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
@SuppressWarnings:unchecked
mergeback to summary
public void merge(GraphImplementor<J>... others)

Implements org.hibernate.graph.spi.GraphImplementor.merge.

Annotations
@Override
@SuppressWarnings:unchecked
sessionFactoryback to summary
public SessionFactoryImplementor sessionFactory()

Overrides org.hibernate.graph.internal.AbstractGraphNode.sessionFactory.

Implements org.hibernate.graph.spi.GraphImplementor.sessionFactory.

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Annotations
@Override