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

public Class RootGraphImpl<J>

extends AbstractGraph<J>
implements RootGraphImplementor<J>
Class Inheritance
All Implemented Interfaces
org.hibernate.graph.spi.RootGraphImplementor, org.hibernate.graph.spi.GraphImplementor, org.hibernate.graph.spi.GraphNodeImplementor, org.hibernate.graph.GraphNode, org.hibernate.graph.Graph, org.hibernate.graph.RootGraph, jakarta.persistence.EntityGraph
Imports
org.hibernate.graph.SubGraph, org.hibernate.graph.spi.GraphHelper, .GraphImplementor, .RootGraphImplementor, .SubGraphImplementor, org.hibernate.metamodel.model.domain.EntityDomainType

Implementation of the JPA-defined jakarta.persistence.EntityGraph interface.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
RootGraphImpl(String name, EntityDomainType<J> entityType, boolean mutable)

public
RootGraphImpl(String name, EntityDomainType<J> entityType)

public
RootGraphImpl(String name, GraphImplementor<J> original, boolean mutable)

Method Summary

Modifier and TypeMethod and Description
public <T1> SubGraph<? extends T1>
addSubclassSubgraph(Class<? extends T1>
entity subclass
type
)

Implements org.hibernate.graph.RootGraph.addSubclassSubgraph.

Add additional attributes to this entity graph that correspond to attributes of subclasses of this EntityGraph's entity type.
public boolean
public String
getName()

Implements jakarta.persistence.EntityGraph.getName.

Return the name of a named EntityGraph (an entity graph defined by means of the NamedEntityGraph annotation, XML descriptor element, or added by means of the addNamedEntityGraph method.
public RootGraphImplementor<J>
public RootGraphImplementor<J>
makeRootGraph(String name, boolean
controls whether the resulting Graph is mutable
mutable
)

Overrides org.hibernate.graph.internal.AbstractGraph.makeRootGraph.

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

Create a named root Graph if the given name is not null.
public SubGraphImplementor<J>
Inherited from org.hibernate.graph.internal.AbstractGraph:
addAttributeNodeaddAttributeNodeaddAttributeNodefindAttributeNodefindAttributeNodefindOrCreateAttributeNodegetAttributeNodeImplementorsgetGraphAttributeNodesgetGraphedTypemerge

Field Detail

nameback to summary
private final String name

Constructor Detail

RootGraphImplback to summary
public RootGraphImpl(String name, EntityDomainType<J> entityType, boolean mutable)
RootGraphImplback to summary
public RootGraphImpl(String name, EntityDomainType<J> entityType)
RootGraphImplback to summary
public RootGraphImpl(String name, GraphImplementor<J> original, boolean mutable)

Method Detail

addSubclassSubgraphback to summary
public <T1> SubGraph<? extends T1> addSubclassSubgraph(Class<? extends T1> type)

Implements org.hibernate.graph.RootGraph.addSubclassSubgraph.

Doc from jakarta.persistence.EntityGraph.addSubclassSubgraph.

Add additional attributes to this entity graph that correspond to attributes of subclasses of this EntityGraph's entity type. Subclass subgraphs will automatically include the specified attributes of superclass subgraphs.

Parameters
type:Class<? extends T1>

entity subclass

Returns:SubGraph<? extends T1>

subgraph for the subclass

Annotations
@Override
appliesToback to summary
public boolean appliesTo(EntityDomainType<?> entityType)

Implements org.hibernate.graph.spi.RootGraphImplementor.appliesTo.

Annotations
@Override
getNameback to summary
public String getName()

Implements jakarta.persistence.EntityGraph.getName.

Doc from jakarta.persistence.EntityGraph.getName.

Return the name of a named EntityGraph (an entity graph defined by means of the NamedEntityGraph annotation, XML descriptor element, or added by means of the addNamedEntityGraph method. Returns null if the EntityGraph is not a named EntityGraph.

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

Implements org.hibernate.graph.Graph.makeCopy, org.hibernate.graph.spi.GraphImplementor.makeCopy, org.hibernate.graph.spi.GraphNodeImplementor.makeCopy.

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

Overrides org.hibernate.graph.internal.AbstractGraph.makeRootGraph.

Implements org.hibernate.graph.spi.RootGraphImplementor.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
makeSubGraphback to summary
public SubGraphImplementor<J> makeSubGraph(boolean mutable)

Implements org.hibernate.graph.spi.RootGraphImplementor.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