Package org.hibernate.graph.spi
Interface AttributeNodeImplementor<J,E,K>
- Type Parameters:
J
- The type of the attributeE
- The element type, if this node represents a plural attribute, or the type of the singular attribute, if it doesn'tK
- The map key type, if this node represents a map attribute
- All Superinterfaces:
AttributeNode<J>
,AttributeNode<J>
,GraphNode<J>
,GraphNodeImplementor<J>
- All Known Implementing Classes:
AttributeNodeImpl
Integration version of the
AttributeNode
contract.-
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.Map<Class<?>,
SubGraphImplementor<?>> All key subgraphs rooted at this node.Map<Class<?>,
SubGraphImplementor<?>> All value subgraphs rooted at this node.makeCopy
(boolean mutable) Deprecated.<S> SubGraphImplementor<S>
makeKeySubGraph
(Class<S> subtype) Deprecated.Deprecated.<S> SubGraphImplementor<S>
makeSubGraph
(Class<S> subtype) Deprecated.void
merge
(AttributeNodeImplementor<J, E, K> other) Methods inherited from interface jakarta.persistence.AttributeNode
getAttributeName
Methods inherited from interface org.hibernate.graph.AttributeNode
getAttributeDescriptor, getKeySubgraphs, getSubgraphs
-
Method Details
-
makeCopy
-
addValueSubgraph
SubGraphImplementor<E> addValueSubgraph()Create a value subgraph, without knowing whether it represents a singular value or plural element, rooted at this attribute node.- API Note:
- This version is more lenient and is therefore disfavored. Prefer the use
of
addSingularSubgraph()
andaddElementSubgraph()
.
-
addSingularSubgraph
SubGraphImplementor<J> addSingularSubgraph()Create a value subgraph representing a singular value rooted at this attribute node. -
addElementSubgraph
SubGraphImplementor<E> addElementSubgraph()Create a value subgraph representing a plural element rooted at this attribute node. -
addKeySubgraph
SubGraphImplementor<K> addKeySubgraph()Create a key subgraph rooted at this attribute node. -
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>
- 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>
- 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>
- 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 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>
- Parameters:
subtype
- The type or treated type of the key type- See Also:
-
merge
-
getSubGraphs
Map<Class<?>,SubGraphImplementor<?>> getSubGraphs()Description copied from interface:AttributeNode
All value subgraphs rooted at this node.Includes treated subgraphs.
- Specified by:
getSubGraphs
in interfaceAttributeNode<J>
- See Also:
-
getKeySubGraphs
Map<Class<?>,SubGraphImplementor<?>> getKeySubGraphs()Description copied from interface:AttributeNode
All key subgraphs rooted at this node.Includes treated subgraphs.
- Specified by:
getKeySubGraphs
in interfaceAttributeNode<J>
- See Also:
-
getValueSubgraph
SubGraphImplementor<E> getValueSubgraph() -
getKeySubgraph
SubGraphImplementor<K> getKeySubgraph()
-