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

public Class AttributeNodeImpl<J>

extends AbstractGraphNode<J>
implements AttributeNodeImplementor<J>
Class Inheritance
All Implemented Interfaces
org.hibernate.graph.spi.AttributeNodeImplementor, org.hibernate.graph.spi.GraphNodeImplementor, org.hibernate.graph.GraphNode, org.hibernate.graph.AttributeNode, javax.persistence.AttributeNode
Imports
java.util.Collections, .HashMap, .Locale, .Map, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.graph.CannotContainSubGraphException, .SubGraph, org.hibernate.graph.spi.AttributeNodeImplementor, .SubGraphImplementor, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.metamodel.model.domain.spi.PersistentAttributeDescriptor, .ManagedTypeDescriptor, .SimpleTypeDescriptor, org.jboss.logging.Logger

Hibernate implementation of the JPA AttributeNode contract
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final PersistentAttributeDescriptor<?, J>
private Map<Class<? extends J>, SubGraphImplementor<? extends J>>
private static final Logger
private Map<Class<? extends J>, SubGraphImplementor<? extends J>>

Constructor Summary

AccessConstructor and Description
public <X>
AttributeNodeImpl(boolean mutable, PersistentAttributeDescriptor<X, J> attribute, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private
AttributeNodeImpl(boolean mutable, PersistentAttributeDescriptor<?, J> attribute, Map<Class<? extends J>, SubGraphImplementor<? extends J>> subGraphMap, Map<Class<? extends J>, SubGraphImplementor<? extends J>> keySubGraphMap, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Intended only for use from making a copy

Method Summary

Modifier and TypeMethod and Description
public <S extends J> void
public <S extends J> void
public PersistentAttributeDescriptor<?, J>
public String
getAttributeName()

Implements javax.persistence.AttributeNode.getAttributeName.

Return the name of the attribute corresponding to the attribute node.
public Map<Class<? extends J>, SubGraphImplementor<? extends J>>
public Map<Class<? extends J>, SubGraphImplementor<? extends J>>
protected <S extends J> void
internalAddKeySubGraph(Class<S> subType, SubGraph<S> subGraph)

protected <S extends J> void
private <S extends J> SubGraphImplementor<S>
private <S extends J> SubGraphImplementor<S>
private <S extends J> SubGraphImplementor<S>
private <S extends J> SubGraphImplementor<S>
private <T extends J> ManagedTypeDescriptor<T>
public AttributeNodeImplementor<J>
public SubGraphImplementor<J>
public <S extends J> SubGraphImplementor<S>
public <S extends J> SubGraphImplementor<S>
private <S extends J> Map<Class<S>, SubGraphImplementor<S>>
makeMapCopy(boolean mutable, Map<Class<S>, SubGraphImplementor<S>> nodeMap)

public SubGraphImplementor<J>
public <S extends J> SubGraphImplementor<S>
public <S extends J> SubGraphImplementor<S>
public void
private <T extends J> ManagedTypeDescriptor<T>
Inherited from org.hibernate.graph.internal.AbstractGraphNode:
isMutablesessionFactoryverifyMutability

Field Detail

attributeback to summary
private final PersistentAttributeDescriptor<?, J> attribute
keySubGraphMapback to summary
private Map<Class<? extends J>, SubGraphImplementor<? extends J>> keySubGraphMap
logback to summary
private static final Logger log
subGraphMapback to summary
private Map<Class<? extends J>, SubGraphImplementor<? extends J>> subGraphMap

Constructor Detail

AttributeNodeImplback to summary
public <X> AttributeNodeImpl(boolean mutable, PersistentAttributeDescriptor<X, J> attribute, SessionFactoryImplementor sessionFactory)

Deprecated

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

Annotations
@SuppressWarnings:WeakerAccess
AttributeNodeImplback to summary
private AttributeNodeImpl(boolean mutable, PersistentAttributeDescriptor<?, J> attribute, Map<Class<? extends J>, SubGraphImplementor<? extends J>> subGraphMap, Map<Class<? extends J>, SubGraphImplementor<? extends J>> keySubGraphMap, SessionFactoryImplementor sessionFactory)

Deprecated

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

Intended only for use from making a copy

Method Detail

addKeySubGraphback to summary
public <S extends J> void addKeySubGraph(Class<S> subType, SubGraph<S> subGraph)

Implements org.hibernate.graph.AttributeNode.addKeySubGraph.

Annotations
@Override
@SuppressWarnings:unchecked
addSubGraphback to summary
public <S extends J> void addSubGraph(Class<S> subType, SubGraph<S> subGraph)

Implements org.hibernate.graph.AttributeNode.addSubGraph.

Annotations
@Override
@SuppressWarnings:unchecked
getAttributeDescriptorback to summary
public PersistentAttributeDescriptor<?, J> getAttributeDescriptor()

Implements org.hibernate.graph.spi.AttributeNodeImplementor.getAttributeDescriptor.

Annotations
@Override
getAttributeNameback to summary
public String getAttributeName()

Implements javax.persistence.AttributeNode.getAttributeName.

Doc from javax.persistence.AttributeNode.getAttributeName.

Return the name of the attribute corresponding to the attribute node.

Returns:String

name of the attribute

Annotations
@Override
getKeySubGraphMapback to summary
public Map<Class<? extends J>, SubGraphImplementor<? extends J>> getKeySubGraphMap()

Implements org.hibernate.graph.spi.AttributeNodeImplementor.getKeySubGraphMap.

Annotations
@Override
@SuppressWarnings:unchecked
getSubGraphMapback to summary
public Map<Class<? extends J>, SubGraphImplementor<? extends J>> getSubGraphMap()

Implements org.hibernate.graph.spi.AttributeNodeImplementor.getSubGraphMap.

Annotations
@Override
@SuppressWarnings:unchecked
internalAddKeySubGraphback to summary
protected <S extends J> void internalAddKeySubGraph(Class<S> subType, SubGraph<S> subGraph)
Annotations
@SuppressWarnings:WeakerAccess, unchecked
internalAddSubGraphback to summary
protected <S extends J> void internalAddSubGraph(Class<S> subType, SubGraphImplementor<S> subGraph)
Annotations
@SuppressWarnings:WeakerAccess, unchecked
internalMakeKeySubgraphback to summary
private <S extends J> SubGraphImplementor<S> internalMakeKeySubgraph(ManagedTypeDescriptor<S> type)
internalMakeKeySubgraphback to summary
private <S extends J> SubGraphImplementor<S> internalMakeKeySubgraph(Class<S> type)
Annotations
@SuppressWarnings:unchecked
internalMakeSubgraphback to summary
private <S extends J> SubGraphImplementor<S> internalMakeSubgraph(ManagedTypeDescriptor<S> type)
internalMakeSubgraphback to summary
private <S extends J> SubGraphImplementor<S> internalMakeSubgraph(Class<S> subType)
Annotations
@SuppressWarnings:unchecked
keyGraphTypeAsManagedback to summary
private <T extends J> ManagedTypeDescriptor<T> keyGraphTypeAsManaged()
Annotations
@SuppressWarnings:unchecked
makeCopyback to summary
public AttributeNodeImplementor<J> makeCopy(boolean mutable)

Implements org.hibernate.graph.spi.AttributeNodeImplementor.makeCopy, org.hibernate.graph.spi.GraphNodeImplementor.makeCopy.

Annotations
@Override
@SuppressWarnings:unchecked
makeKeySubGraphback to summary
public SubGraphImplementor<J> makeKeySubGraph()

Implements org.hibernate.graph.spi.AttributeNodeImplementor.makeKeySubGraph.

Annotations
@Override
makeKeySubGraphback to summary
public <S extends J> SubGraphImplementor<S> makeKeySubGraph(Class<S> subtype)

Implements org.hibernate.graph.spi.AttributeNodeImplementor.makeKeySubGraph.

Annotations
@Override
makeKeySubGraphback to summary
public <S extends J> SubGraphImplementor<S> makeKeySubGraph(ManagedTypeDescriptor<S> subtype)

Implements org.hibernate.graph.spi.AttributeNodeImplementor.makeKeySubGraph.

Annotations
@Override
makeMapCopyback to summary
private <S extends J> Map<Class<S>, SubGraphImplementor<S>> makeMapCopy(boolean mutable, Map<Class<S>, SubGraphImplementor<S>> nodeMap)
makeSubGraphback to summary
public SubGraphImplementor<J> makeSubGraph()

Implements org.hibernate.graph.spi.AttributeNodeImplementor.makeSubGraph.

Annotations
@Override
makeSubGraphback to summary
public <S extends J> SubGraphImplementor<S> makeSubGraph(Class<S> subtype)

Implements org.hibernate.graph.spi.AttributeNodeImplementor.makeSubGraph.

Annotations
@Override
makeSubGraphback to summary
public <S extends J> SubGraphImplementor<S> makeSubGraph(ManagedTypeDescriptor<S> subtype)

Implements org.hibernate.graph.spi.AttributeNodeImplementor.makeSubGraph.

Annotations
@Override
mergeback to summary
public void merge(AttributeNodeImplementor<?> attributeNode)

Implements org.hibernate.graph.spi.AttributeNodeImplementor.merge.

Annotations
@Override
@SuppressWarnings:unchecked
valueGraphTypeAsManagedback to summary
private <T extends J> ManagedTypeDescriptor<T> valueGraphTypeAsManaged()
Annotations
@SuppressWarnings:unchecked