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, jakarta.persistence.AttributeNode
Imports
java.util.HashMap, .Locale, .Map, java.util.stream.Collectors, org.hibernate.graph.CannotContainSubGraphException, .SubGraph, org.hibernate.graph.spi.AttributeNodeImplementor, .GraphImplementor, .SubGraphImplementor, org.hibernate.metamodel.model.domain.DomainType, .ManagedDomainType, .PersistentAttribute, .SimpleDomainType, org.hibernate.metamodel.model.domain.internal.DomainModelHelper, org.jboss.logging.Logger

Implementation of jakarta.persistence.AttributeNode.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final PersistentAttribute<?, 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(PersistentAttribute<X, J> attribute, boolean mutable)

private
AttributeNodeImpl(PersistentAttribute<?, J> attribute, Map<Class<? extends J>, SubGraphImplementor<? extends J>> subGraphMap, Map<Class<? extends J>, SubGraphImplementor<? extends J>> keySubGraphMap, boolean mutable)

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 void
public PersistentAttribute<?, J>
public String
getAttributeName()

Implements jakarta.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 void
internalAddKeySubGraph(SubGraph<? extends J> subGraph)

protected 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> ManagedDomainType<T>
public AttributeNodeImplementor<J>
public SubGraphImplementor<J>
public <S extends J> SubGraphImplementor<S>
public <S extends J> SubGraphImplementor<S>
private Map<Class<? extends J>, SubGraphImplementor<? extends J>>
makeMapCopy(boolean mutable, Map<Class<? extends J>, SubGraphImplementor<? extends J>> nodeMap)

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

Field Detail

attributeback to summary
private final PersistentAttribute<?, 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(PersistentAttribute<X, J> attribute, boolean mutable)
AttributeNodeImplback to summary
private AttributeNodeImpl(PersistentAttribute<?, J> attribute, Map<Class<? extends J>, SubGraphImplementor<? extends J>> subGraphMap, Map<Class<? extends J>, SubGraphImplementor<? extends J>> keySubGraphMap, boolean mutable)

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
addSubGraphback to summary
public <S extends J> void addSubGraph(Class<S> subType, SubGraph<S> subGraph)

Implements org.hibernate.graph.AttributeNode.addSubGraph.

Annotations
@Override
addSubGraphback to summary
public void addSubGraph(SubGraphImplementor<? extends J> subGraph)

Implements org.hibernate.graph.spi.AttributeNodeImplementor.addSubGraph.

Annotations
@Override
getAttributeDescriptorback to summary
public PersistentAttribute<?, J> getAttributeDescriptor()

Implements org.hibernate.graph.AttributeNode.getAttributeDescriptor.

Annotations
@Override
getAttributeNameback to summary
public String getAttributeName()

Implements jakarta.persistence.AttributeNode.getAttributeName.

Doc from jakarta.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
getSubGraphMapback to summary
public Map<Class<? extends J>, SubGraphImplementor<? extends J>> getSubGraphMap()

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

Annotations
@Override
internalAddKeySubGraphback to summary
protected void internalAddKeySubGraph(SubGraph<? extends J> subGraph)
internalAddSubGraphback to summary
protected void internalAddSubGraph(SubGraphImplementor<? extends J> subGraph)
internalMakeKeySubgraphback to summary
private <S extends J> SubGraphImplementor<S> internalMakeKeySubgraph(ManagedDomainType<S> type)
internalMakeKeySubgraphback to summary
private <S extends J> SubGraphImplementor<S> internalMakeKeySubgraph(Class<S> type)
internalMakeSubgraphback to summary
private <S extends J> SubGraphImplementor<S> internalMakeSubgraph(ManagedDomainType<S> type)
internalMakeSubgraphback to summary
private <S extends J> SubGraphImplementor<S> internalMakeSubgraph(Class<S> subType)
keyGraphTypeAsManagedback to summary
private <T extends J> ManagedDomainType<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
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(ManagedDomainType<S> subtype)

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

Annotations
@Override
makeMapCopyback to summary
private Map<Class<? extends J>, SubGraphImplementor<? extends J>> makeMapCopy(boolean mutable, Map<Class<? extends J>, SubGraphImplementor<? extends J>> 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(ManagedDomainType<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
valueGraphTypeAsManagedback to summary
private <T extends J> ManagedDomainType<T> valueGraphTypeAsManaged()
Annotations
@SuppressWarnings:unchecked