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

public Class RootGraphImpl<J>

extends AbstractGraph<J>
implements EntityGraph<J>, 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, javax.persistence.EntityGraph
Imports
javax.persistence.EntityGraph, org.hibernate.cfg.NotYetImplementedException, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.graph.SubGraph, org.hibernate.graph.spi.GraphImplementor, .RootGraphImplementor, .SubGraphImplementor, org.hibernate.metamodel.model.domain.spi.EntityTypeDescriptor, .IdentifiableTypeDescriptor, .ManagedTypeDescriptor

The Hibernate implementation of the JPA EntityGraph contract.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

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

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public
RootGraphImpl(String name, EntityTypeDescriptor<J> entityType, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public
RootGraphImpl(String name, boolean mutable, GraphImplementor<J> original)

Method Summary

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

Implements javax.persistence.EntityGraph.addSubclassSubgraph, 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 boolean
public boolean
public String
getName()

Implements javax.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>
public SubGraphImplementor<J>
makeSubGraph(boolean mutable)

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

Create a (mutable/immutable) SubGraph based on this Graph
Inherited from org.hibernate.graph.internal.AbstractGraph:
addAttributeNodeaddAttributeNodeaddAttributeNodefindAttributeNodefindAttributeNodefindOrCreateAttributeNodegetAttributeNodeImplementorsgetGraphAttributeNodesgetGraphedTypemergesessionFactory

Field Detail

nameback to summary
private final String name

Constructor Detail

RootGraphImplback to summary
public RootGraphImpl(String name, EntityTypeDescriptor<J> entityType, boolean mutable, SessionFactoryImplementor sessionFactory)

Deprecated

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

RootGraphImplback to summary
public RootGraphImpl(String name, EntityTypeDescriptor<J> entityType, SessionFactoryImplementor sessionFactory)

Deprecated

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

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

Method Detail

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

Implements javax.persistence.EntityGraph.addSubclassSubgraph, org.hibernate.graph.RootGraph.addSubclassSubgraph.

Doc from javax.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(EntityTypeDescriptor<? super J> entityType)

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

Annotations
@Override
appliesToback to summary
public boolean appliesTo(String entityName)

Implements org.hibernate.graph.RootGraph.appliesTo.

Annotations
@Override
appliesToback to summary
public boolean appliesTo(Class<T> entityType)

Implements org.hibernate.graph.RootGraph.appliesTo, org.hibernate.graph.spi.GraphImplementor.appliesTo.

Annotations
@Override
getNameback to summary
public String getName()

Implements javax.persistence.EntityGraph.getName.

Doc from javax.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 (if passed `name` != null) root Graph. The `mutable` parameter controls whether the created 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 (mutable/immutable) SubGraph based on this Graph

Annotations
@Override