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 voidprotected voidThePersistentAttributerepresented 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.voidmerge(AttributeNodeImplementor<J, E, K> that) toString()Methods inherited from class org.hibernate.graph.internal.AbstractGraphNode
isMutable, verifyMutabilityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.graph.AttributeNode
getKeySubgraphs, getSubgraphsMethods inherited from interface org.hibernate.graph.spi.AttributeNodeImplementor
makeCopy
-
Field Details
-
attribute
-
valueGraphType
-
keyGraphType
-
valueSubgraph
-
keySubgraph
-
-
Method Details
-
getAttributeName
- Specified by:
getAttributeNamein interfaceAttributeNode<J>
-
getAttributeDescriptor
Description copied from interface:AttributeNodeThePersistentAttributerepresented by this node.- Specified by:
getAttributeDescriptorin interfaceAttributeNode<J>
-
addValueSubgraph
Description copied from interface:AttributeNodeImplementorCreate a value subgraph, without knowing whether it represents a singular value or plural element, rooted at this attribute node.- Specified by:
addValueSubgraphin interfaceAttributeNodeImplementor<J,E, K>
-
addSingularSubgraph
Description copied from interface:AttributeNodeImplementorCreate a value subgraph representing a singular value rooted at this attribute node.- Specified by:
addSingularSubgraphin interfaceAttributeNodeImplementor<J,E, K>
-
addElementSubgraph
Description copied from interface:AttributeNodeImplementorCreate a value subgraph representing a plural element rooted at this attribute node.- Specified by:
addElementSubgraphin interfaceAttributeNodeImplementor<J,E, K>
-
addKeySubgraph
Description copied from interface:AttributeNodeImplementorCreate a key subgraph rooted at this attribute node.- Specified by:
addKeySubgraphin interfaceAttributeNodeImplementor<J,E, K>
-
checkToOne
protected void checkToOne() -
checkToMany
protected void checkToMany() -
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>- Specified by:
makeSubGraphin interfaceAttributeNodeImplementor<J,E, K> - 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>- Specified by:
makeSubGraphin interfaceAttributeNodeImplementor<J,E, K> - Parameters:
subtype- The type or treated type of the value type- 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>- Specified by:
makeKeySubGraphin interfaceAttributeNodeImplementor<J,E, K> - 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>- Specified by:
makeKeySubGraphin interfaceAttributeNodeImplementor<J,E, K> - Parameters:
subtype- The type or treated type of the key type- See Also:
-
asManagedType
-
toString
-
merge
- Specified by:
mergein interfaceAttributeNodeImplementor<J,E, K>
-
getSubGraphs
Description copied from interface:AttributeNodeAll value subgraphs rooted at this node.Includes treated subgraphs.
- Specified by:
getSubGraphsin interfaceAttributeNode<J>- Specified by:
getSubGraphsin interfaceAttributeNodeImplementor<J,E, K> - See Also:
-
getKeySubGraphs
Description copied from interface:AttributeNodeAll key subgraphs rooted at this node.Includes treated subgraphs.
- Specified by:
getKeySubGraphsin interfaceAttributeNode<J>- Specified by:
getKeySubGraphsin interfaceAttributeNodeImplementor<J,E, K> - See Also:
-
getValueSubgraph
- Specified by:
getValueSubgraphin interfaceAttributeNodeImplementor<J,E, K>
-
getKeySubgraph
- Specified by:
getKeySubgraphin interfaceAttributeNodeImplementor<J,E, K>
-