Package org.hibernate.graph.internal
Class AttributeNodeImpl<J,E,K>
java.lang.Object
org.hibernate.graph.internal.AbstractGraphNode<J>
org.hibernate.graph.internal.AttributeNodeImpl<J,E,K>
- All Implemented Interfaces:
AttributeNode<J>
,AttributeNode<J>
,GraphNode<J>
,AttributeNodeImplementor<J,
,E, K> GraphNodeImplementor<J>
public abstract sealed class AttributeNodeImpl<J,E,K>
extends AbstractGraphNode<J>
implements AttributeNodeImplementor<J,E,K>
Implementation of
AttributeNode
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PersistentAttribute<?,
J> protected final SimpleDomainType<K>
protected SubGraphImplementor<K>
protected final DomainType<E>
protected SubGraphImplementor<E>
-
Method Summary
Modifier and TypeMethodDescriptionCreate a value subgraph representing a plural element rooted at this attribute node.Create a key subgraph rooted at this attribute node.Create a value subgraph representing a singular value rooted at this attribute node.Create a value subgraph, without knowing whether it represents a singular value or plural element, rooted at this attribute node.protected <T> ManagedDomainType<T>
asManagedType
(DomainType<T> domainType) protected void
protected void
ThePersistentAttribute
represented by this node.Map<Class<?>,
SubGraphImplementor<?>> All key subgraphs rooted at this node.Map<Class<?>,
SubGraphImplementor<?>> All value subgraphs rooted at this node.Deprecated.<S> SubGraphImplementor<S>
makeKeySubGraph
(Class<S> subtype) Deprecated.Deprecated.<S> SubGraphImplementor<S>
makeSubGraph
(Class<S> subtype) Deprecated.void
merge
(AttributeNodeImplementor<J, E, K> that) toString()
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, wait, wait, wait
Methods inherited from interface org.hibernate.graph.AttributeNode
getKeySubgraphs, getSubgraphs
Methods inherited from interface org.hibernate.graph.spi.AttributeNodeImplementor
makeCopy
-
Field Details
-
attribute
-
valueGraphType
-
keyGraphType
-
valueSubgraph
-
keySubgraph
-
-
Method Details
-
getAttributeName
- Specified by:
getAttributeName
in interfaceAttributeNode<J>
-
getAttributeDescriptor
Description copied from interface:AttributeNode
ThePersistentAttribute
represented by this node.- Specified by:
getAttributeDescriptor
in interfaceAttributeNode<J>
-
addValueSubgraph
Description copied from interface:AttributeNodeImplementor
Create a value subgraph, without knowing whether it represents a singular value or plural element, rooted at this attribute node.- Specified by:
addValueSubgraph
in interfaceAttributeNodeImplementor<J,
E, K>
-
addSingularSubgraph
Description copied from interface:AttributeNodeImplementor
Create a value subgraph representing a singular value rooted at this attribute node.- Specified by:
addSingularSubgraph
in interfaceAttributeNodeImplementor<J,
E, K>
-
addElementSubgraph
Description copied from interface:AttributeNodeImplementor
Create a value subgraph representing a plural element rooted at this attribute node.- Specified by:
addElementSubgraph
in interfaceAttributeNodeImplementor<J,
E, K>
-
addKeySubgraph
Description copied from interface:AttributeNodeImplementor
Create a key subgraph rooted at this attribute node.- Specified by:
addKeySubgraph
in interfaceAttributeNodeImplementor<J,
E, K>
-
checkToOne
protected void checkToOne() -
checkToMany
protected void checkToMany() -
makeSubGraph
Deprecated.Description copied from interface:AttributeNode
Create and return a new valueSubGraph
rooted at this node, or return an existing suchSubGraph
if there is one.- Specified by:
makeSubGraph
in interfaceAttributeNode<J>
- Specified by:
makeSubGraph
in interfaceAttributeNodeImplementor<J,
E, K> - See Also:
-
makeSubGraph
Deprecated.Description copied from interface:AttributeNode
Create and return a new valueSubGraph
rooted at this node, with the given type, which may be a subtype of the value type, or return an existing suchSubGraph
if there is one.If the given type is a proper subtype of the value type, the result is a treated subgraph.
- Specified by:
makeSubGraph
in interfaceAttributeNode<J>
- Specified by:
makeSubGraph
in interfaceAttributeNodeImplementor<J,
E, K> - Parameters:
subtype
- The type or treated type of the value type- See Also:
-
makeKeySubGraph
Deprecated.Description copied from interface:AttributeNode
Create and return a new keySubGraph
rooted at this node, or return an existing suchSubGraph
if there is one.- Specified by:
makeKeySubGraph
in interfaceAttributeNode<J>
- Specified by:
makeKeySubGraph
in interfaceAttributeNodeImplementor<J,
E, K> - See Also:
-
makeKeySubGraph
Deprecated.Description copied from interface:AttributeNode
Create and return a new valueSubGraph
rooted at this node, with the given type, which may be a subtype of the key type, or return an existing suchSubGraph
if there is one.If the given type is a proper subtype of the key type, the result is a treated subgraph.
- Specified by:
makeKeySubGraph
in interfaceAttributeNode<J>
- Specified by:
makeKeySubGraph
in interfaceAttributeNodeImplementor<J,
E, K> - Parameters:
subtype
- The type or treated type of the key type- See Also:
-
asManagedType
-
toString
-
merge
- Specified by:
merge
in interfaceAttributeNodeImplementor<J,
E, K>
-
getSubGraphs
Description copied from interface:AttributeNode
All value subgraphs rooted at this node.Includes treated subgraphs.
- Specified by:
getSubGraphs
in interfaceAttributeNode<J>
- Specified by:
getSubGraphs
in interfaceAttributeNodeImplementor<J,
E, K> - See Also:
-
getKeySubGraphs
Description copied from interface:AttributeNode
All key subgraphs rooted at this node.Includes treated subgraphs.
- Specified by:
getKeySubGraphs
in interfaceAttributeNode<J>
- Specified by:
getKeySubGraphs
in interfaceAttributeNodeImplementor<J,
E, K> - See Also:
-
getValueSubgraph
- Specified by:
getValueSubgraph
in interfaceAttributeNodeImplementor<J,
E, K>
-
getKeySubgraph
- Specified by:
getKeySubgraph
in interfaceAttributeNodeImplementor<J,
E, K>
-