Package org.hibernate.graph.internal
Class AttributeNodeImpl<J>
- java.lang.Object
-
- org.hibernate.graph.internal.AbstractGraphNode<J>
-
- org.hibernate.graph.internal.AttributeNodeImpl<J>
-
- All Implemented Interfaces:
AttributeNode<J>
,AttributeNode<J>
,GraphNode<J>
,AttributeNodeImplementor<J>
,GraphNodeImplementor<J>
public class AttributeNodeImpl<J> extends AbstractGraphNode<J> implements AttributeNodeImplementor<J>
Implementation ofAttributeNode
.
-
-
Constructor Summary
Constructors Constructor Description AttributeNodeImpl(PersistentAttribute<X,J> attribute, boolean mutable)
-
Method Summary
-
Methods inherited from class org.hibernate.graph.internal.AbstractGraphNode
isMutable, verifyMutability
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.graph.spi.AttributeNodeImplementor
getKeySubgraphs, getKeySubGraphs, getSubgraphs, getSubGraphs, visitKeySubGraphs, visitSubGraphs
-
-
-
-
Constructor Detail
-
AttributeNodeImpl
public AttributeNodeImpl(PersistentAttribute<X,J> attribute, boolean mutable)
-
-
Method Detail
-
getAttributeName
public String getAttributeName()
- Specified by:
getAttributeName
in interfaceAttributeNode<J>
-
getAttributeDescriptor
public PersistentAttribute<?,J> getAttributeDescriptor()
- Specified by:
getAttributeDescriptor
in interfaceAttributeNode<J>
-
getSubGraphMap
public Map<Class<? extends J>,SubGraphImplementor<? extends J>> getSubGraphMap()
- Specified by:
getSubGraphMap
in interfaceAttributeNodeImplementor<J>
-
getKeySubGraphMap
public Map<Class<? extends J>,SubGraphImplementor<? extends J>> getKeySubGraphMap()
- Specified by:
getKeySubGraphMap
in interfaceAttributeNodeImplementor<J>
-
makeSubGraph
public SubGraphImplementor<J> makeSubGraph()
- Specified by:
makeSubGraph
in interfaceAttributeNode<J>
- Specified by:
makeSubGraph
in interfaceAttributeNodeImplementor<J>
-
makeSubGraph
public <S extends J> SubGraphImplementor<S> makeSubGraph(Class<S> subtype)
- Specified by:
makeSubGraph
in interfaceAttributeNode<J>
- Specified by:
makeSubGraph
in interfaceAttributeNodeImplementor<J>
-
makeSubGraph
public <S extends J> SubGraphImplementor<S> makeSubGraph(ManagedDomainType<S> subtype)
- Specified by:
makeSubGraph
in interfaceAttributeNodeImplementor<J>
-
internalAddSubGraph
protected void internalAddSubGraph(SubGraphImplementor<? extends J> subGraph)
-
addSubGraph
public <S extends J> void addSubGraph(Class<S> subType, SubGraph<S> subGraph)
- Specified by:
addSubGraph
in interfaceAttributeNode<J>
-
addSubGraph
public void addSubGraph(SubGraphImplementor<? extends J> subGraph)
- Specified by:
addSubGraph
in interfaceAttributeNodeImplementor<J>
-
makeKeySubGraph
public SubGraphImplementor<J> makeKeySubGraph()
- Specified by:
makeKeySubGraph
in interfaceAttributeNode<J>
- Specified by:
makeKeySubGraph
in interfaceAttributeNodeImplementor<J>
-
makeKeySubGraph
public <S extends J> SubGraphImplementor<S> makeKeySubGraph(Class<S> subtype)
- Specified by:
makeKeySubGraph
in interfaceAttributeNode<J>
- Specified by:
makeKeySubGraph
in interfaceAttributeNodeImplementor<J>
-
makeKeySubGraph
public <S extends J> SubGraphImplementor<S> makeKeySubGraph(ManagedDomainType<S> subtype)
- Specified by:
makeKeySubGraph
in interfaceAttributeNodeImplementor<J>
-
addKeySubGraph
public <S extends J> void addKeySubGraph(Class<S> subType, SubGraph<S> subGraph)
- Specified by:
addKeySubGraph
in interfaceAttributeNode<J>
-
makeCopy
public AttributeNodeImplementor<J> makeCopy(boolean mutable)
- Specified by:
makeCopy
in interfaceAttributeNodeImplementor<J>
- Specified by:
makeCopy
in interfaceGraphNode<J>
- Specified by:
makeCopy
in interfaceGraphNodeImplementor<J>
-
merge
public void merge(AttributeNodeImplementor<?> attributeNode)
- Specified by:
merge
in interfaceAttributeNodeImplementor<J>
-
-