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.voidmerge(AttributeNodeImplementor<J, E, K> other) Methods inherited from interface jakarta.persistence.AttributeNode
getAttributeNameMethods 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:AttributeNodeCreate and return a new valueSubGraphrooted at this node, or return an existing suchSubGraphif there is one.- Specified by:
makeSubGraphin interfaceAttributeNode<J>- See Also:
-
makeKeySubGraph
Deprecated.Description copied from interface:AttributeNodeCreate and return a new keySubGraphrooted at this node, or return an existing suchSubGraphif there is one.- Specified by:
makeKeySubGraphin interfaceAttributeNode<J>- See Also:
-
makeSubGraph
Deprecated.Description copied from interface:AttributeNodeCreate and return a new valueSubGraphrooted at this node, with the given type, which may be a subtype of the value type, or return an existing suchSubGraphif there is one.If the given type is a proper subtype of the value type, the result is a treated subgraph.
- Specified by:
makeSubGraphin interfaceAttributeNode<J>- Parameters:
subtype- The type or treated type of the value type- See Also:
-
makeKeySubGraph
Deprecated.Description copied from interface:AttributeNodeCreate and return a new valueSubGraphrooted at this node, with the given type, which may be a subtype of the key type, or return an existing suchSubGraphif there is one.If the given type is a proper subtype of the key type, the result is a treated subgraph.
- Specified by:
makeKeySubGraphin 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:AttributeNodeAll value subgraphs rooted at this node.Includes treated subgraphs.
- Specified by:
getSubGraphsin interfaceAttributeNode<J>- See Also:
-
getKeySubGraphs
Map<Class<?>,SubGraphImplementor<?>> getKeySubGraphs()Description copied from interface:AttributeNodeAll key subgraphs rooted at this node.Includes treated subgraphs.
- Specified by:
getKeySubGraphsin interfaceAttributeNode<J>- See Also:
-
getValueSubgraph
SubGraphImplementor<E> getValueSubgraph() -
getKeySubgraph
SubGraphImplementor<K> getKeySubgraph()
-