Interface GraphImplementor<J>
- All Superinterfaces:
Graph<J>
,Graph<J>
,GraphNode<J>
,GraphNodeImplementor<J>
- All Known Subinterfaces:
RootGraphImplementor<J>
,SubGraphImplementor<J>
- All Known Implementing Classes:
GraphImpl
,RootGraphImpl
,SubGraphImpl
Graph
contract.-
Method Summary
Modifier and TypeMethodDescription<Y> AttributeNodeImplementor<Y,
?, ?> addAttributeNode
(Attribute<? super J, Y> attribute) Add anAttributeNode
representing the givenAttribute
to this node of the graph without creating any associatedSubGraph
.<AJ> AttributeNodeImplementor<AJ,
?, ?> addAttributeNode
(PersistentAttribute<? super J, AJ> attribute) <X> SubGraphImplementor<X>
addKeySubgraph
(String attributeName) <X> SubGraphImplementor<X>
addKeySubgraph
(String attributeName, Class<X> type) <AJ> SubGraphImplementor<AJ>
addKeySubGraph
(String attributeName) <AJ> SubGraphImplementor<AJ>
addKeySubGraph
(String attributeName, Class<AJ> subtype) <AJ> SubGraphImplementor<AJ>
addKeySubGraph
(MapPersistentAttribute<? super J, ? super AJ, ?> attribute, Class<AJ> subtype) <X> SubGraphImplementor<X>
addSubgraph
(Attribute<? super J, X> attribute) <X> SubGraphImplementor<X>
addSubgraph
(String attributeName) <X> SubGraphImplementor<X>
addSubgraph
(String attributeName, Class<X> type) <AJ> SubGraphImplementor<AJ>
addSubGraph
(String attributeName) <AJ> SubGraphImplementor<AJ>
addSubGraph
(String attributeName, Class<AJ> subType) <AJ> SubGraphImplementor<AJ>
addSubGraph
(PersistentAttribute<? super J, ? super AJ> attribute, Class<AJ> subtype) Create and return a new (mutable)SubGraph
associated with the givenPersistentAttribute
, and with the given type, which may be a subtype of the attribute type, or return an existing suchSubGraph
if there is one.<AJ> SubGraphImplementor<AJ>
addSubGraph
(PersistentAttribute<? super J, AJ> attribute) <AJ> SubGraph<AJ>
addTreatedElementSubgraph
(PluralAttribute<? super J, ?, ? super AJ> attribute, ManagedType<AJ> type) <E> SubGraphImplementor<E>
addTreatedElementSubgraph
(PluralAttribute<? super J, ?, ? super E> attribute, Class<E> type) <AJ> SubGraphImplementor<AJ>
addTreatedMapKeySubgraph
(MapAttribute<? super J, ? super AJ, ?> attribute, ManagedType<AJ> type) <K> SubGraphImplementor<K>
addTreatedMapKeySubgraph
(MapAttribute<? super J, ? super K, ?> attribute, Class<K> type) <AJ> SubGraphImplementor<AJ>
addTreatedSubgraph
(Attribute<? super J, ? super AJ> attribute, ManagedType<AJ> type) <Y> SubGraphImplementor<Y>
addTreatedSubgraph
(Attribute<? super J, ? super Y> attribute, Class<Y> type) <Y extends J>
SubGraphImplementor<Y>addTreatedSubgraph
(ManagedType<Y> type) <Y extends J>
SubGraphImplementor<Y>addTreatedSubgraph
(Class<Y> type) <AJ> AttributeNodeImplementor<AJ,
?, ?> findAttributeNode
(String attributeName) Find an existingAttributeNode
by name within this container.<AJ> AttributeNodeImplementor<AJ,
?, ?> findAttributeNode
(PersistentAttribute<? super J, AJ> attribute) Find an existingAttributeNode
by corresponding attribute reference, within this container.<AJ> AttributeNodeImplementor<AJ,
?, ?> <AJ> AttributeNodeImplementor<AJ,
?, ?> findOrCreateAttributeNode
(PersistentAttribute<? super J, AJ> attribute) <Y> AttributeNodeImplementor<Y,
?, ?> getAttributeNode
(Attribute<? super J, Y> attribute) Find an existingAttributeNode
by corresponding attribute reference, within this container.<Y> AttributeNodeImplementor<Y,
?, ?> getAttributeNode
(String attributeName) Find an existingAttributeNode
by name within this container.List<? extends AttributeNodeImplementor<?,
?, ?>> All nodes belonging to this container.Map<PersistentAttribute<? super J,
?>, AttributeNodeImplementor<?, ?, ?>> getNodes()
Map<Class<? extends J>,
SubGraphImplementor<? extends J>> default boolean
hasAttributeNode
(Attribute<? super J, ?> attribute) default boolean
hasAttributeNode
(String attributeName) makeCopy
(boolean mutable) Make a copy of this graph node, with the given mutability.makeRootGraph
(String name, boolean mutable) Deprecated, for removal: This API element is subject to removal in a future version.makeSubGraph
(boolean mutable) Deprecated, for removal: This API element is subject to removal in a future version.void
merge
(GraphImplementor<J> other) void
mergeInternal
(GraphImplementor<J> graph) Methods inherited from interface jakarta.persistence.Graph
addAttributeNode, addAttributeNodes, addAttributeNodes, getAttributeNodes, removeAttributeNode, removeAttributeNode, removeAttributeNodes
Methods inherited from interface org.hibernate.graph.Graph
addElementSubgraph, addElementSubgraph, addElementSubgraph, addKeySubgraph, addKeySubgraph, addMapKeySubgraph, addPluralSubgraph, addSubgraph, getGraphedType
-
Method Details
-
merge
-
mergeInternal
-
makeRootGraph
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Graph
Create a named root graph representing this node.- Specified by:
makeRootGraph
in interfaceGraph<J>
mutable
- controls whether the resulting graph is mutable
-
makeSubGraph
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Graph
Create a new subgraph representing this node.- Specified by:
makeSubGraph
in interfaceGraph<J>
-
makeCopy
Description copied from interface:Graph
Make a copy of this graph node, with the given mutability.If this graph is immutable, and the argument is
false
, simply return this instance. -
getAttributeNodeList
List<? extends AttributeNodeImplementor<?,?, getAttributeNodeList()?>> Description copied from interface:Graph
All nodes belonging to this container.- Specified by:
getAttributeNodeList
in interfaceGraph<J>
- See Also:
-
getNodes
Map<PersistentAttribute<? super J,?>, getNodes()AttributeNodeImplementor<?, ?, ?>> -
getTreatedSubgraphs
Map<Class<? extends J>,SubGraphImplementor<? extends J>> getTreatedSubgraphs() -
getAttributeNode
Description copied from interface:Graph
Find an existingAttributeNode
by name within this container.- Specified by:
getAttributeNode
in interfaceGraph<J>
- Specified by:
getAttributeNode
in interfaceGraph<J>
-
getAttributeNode
Description copied from interface:Graph
Find an existingAttributeNode
by corresponding attribute reference, within this container.- Specified by:
getAttributeNode
in interfaceGraph<J>
- Specified by:
getAttributeNode
in interfaceGraph<J>
-
findAttributeNode
Description copied from interface:Graph
Find an existingAttributeNode
by name within this container.- Specified by:
findAttributeNode
in interfaceGraph<J>
-
findAttributeNode
<AJ> AttributeNodeImplementor<AJ,?, findAttributeNode?> (PersistentAttribute<? super J, AJ> attribute) Description copied from interface:Graph
Find an existingAttributeNode
by corresponding attribute reference, within this container.- Specified by:
findAttributeNode
in interfaceGraph<J>
-
findOrCreateAttributeNode
-
findOrCreateAttributeNode
<AJ> AttributeNodeImplementor<AJ,?, findOrCreateAttributeNode?> (PersistentAttribute<? super J, AJ> attribute) -
addAttributeNode
-
addAttributeNode
Description copied from interface:Graph
Add anAttributeNode
representing the givenAttribute
to this node of the graph without creating any associatedSubGraph
.- Specified by:
addAttributeNode
in interfaceGraph<J>
- Specified by:
addAttributeNode
in interfaceGraph<J>
-
addTreatedSubgraph
Description copied from interface:Graph
Create and return a new (mutable)SubGraph
representing the given subtype of the type of this node, or return an existing suchSubGraph
if there is one.- Specified by:
addTreatedSubgraph
in interfaceGraph<J>
- See Also:
-
addTreatedSubgraph
Description copied from interface:Graph
Create and return a new (mutable)SubGraph
representing the given subtype of the type of this node, or return an existing suchSubGraph
if there is one.- Specified by:
addTreatedSubgraph
in interfaceGraph<J>
-
addSubgraph
Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the namedAttribute
, or return an existing suchSubGraph
if there is one.- Specified by:
addSubgraph
in interfaceGraph<J>
- Specified by:
addSubgraph
in interfaceGraph<J>
- Parameters:
attributeName
- The name of an attribute of the represented type
-
addSubGraph
Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the namedAttribute
, or return an existing suchSubGraph
if there is one.- Specified by:
addSubGraph
in interfaceGraph<J>
- Parameters:
attributeName
- The name of an attribute of the represented type
-
addSubGraph
Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the namedAttribute
, and with the given type, which may be a subtype of the attribute type, or return an existing suchSubGraph
if there is one.If the given type is a proper subtype of the attribute type, the result is a treated subgraph.
- Specified by:
addSubGraph
in interfaceGraph<J>
- Parameters:
attributeName
- The name of an attribute of the represented typesubType
- A subtype of the attribute type
-
addSubGraph
Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the givenAttribute
of the represented type, or return an existing suchSubGraph
if there is one.- Specified by:
addSubGraph
in interfaceGraph<J>
- Parameters:
attribute
- An attribute of the represented type- See Also:
-
addSubGraph
<AJ> SubGraphImplementor<AJ> addSubGraph(PersistentAttribute<? super J, ? super AJ> attribute, Class<AJ> subtype) Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the givenPersistentAttribute
, and with the given type, which may be a subtype of the attribute type, or return an existing suchSubGraph
if there is one.If the given type is a proper subtype of the attribute type, the result is a treated subgraph.
- Specified by:
addSubGraph
in interfaceGraph<J>
- Parameters:
attribute
- An attribute of the represented typesubtype
- A subtype of the attribute type- See Also:
-
addKeySubGraph
Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the key of the named map or return an existing suchSubGraph
if there is one.- Specified by:
addKeySubGraph
in interfaceGraph<J>
- Parameters:
attributeName
- The name of an attribute of the represented type
-
addKeySubGraph
Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the key of the named map, and with the given type, which may be a subtype of the attribute 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:
addKeySubGraph
in interfaceGraph<J>
- Parameters:
attributeName
- The name of a map-valued attribute of the represented typesubtype
- A subtype of the key type
-
addKeySubGraph
<AJ> SubGraphImplementor<AJ> addKeySubGraph(MapPersistentAttribute<? super J, ? super AJ, ?> attribute, Class<AJ> subtype) Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the key of the named map, and with the given type, which may be a subtype of the attribute 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:
addKeySubGraph
in interfaceGraph<J>
- Parameters:
attribute
- A map-valued attribute of the represented typesubtype
- A subtype of the key type
-
addSubgraph
Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the namedAttribute
, and with the given type, which may be a subtype of the attribute type, or return an existing suchSubGraph
if there is one.If the given type is a proper subtype of the attribute type, the result is a treated subgraph.
- Specified by:
addSubgraph
in interfaceGraph<J>
- Specified by:
addSubgraph
in interfaceGraph<J>
- Parameters:
attributeName
- The name of an attribute of the represented typetype
- A subtype of the attribute type
-
addSubgraph
Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the givenAttribute
of the represented type, or return an existing suchSubGraph
if there is one.- Specified by:
addSubgraph
in interfaceGraph<J>
- Specified by:
addSubgraph
in interfaceGraph<J>
- Parameters:
attribute
- An attribute of the represented type- See Also:
-
addTreatedSubgraph
<Y> SubGraphImplementor<Y> addTreatedSubgraph(Attribute<? super J, ? super Y> attribute, Class<Y> type) Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the givenAttribute
, and with the given type, which may be a subtype of the attribute type, or return an existing suchSubGraph
if there is one.If the given type is a proper subtype of the attribute type, the result is a treated subgraph.
- Specified by:
addTreatedSubgraph
in interfaceGraph<J>
- Specified by:
addTreatedSubgraph
in interfaceGraph<J>
- Parameters:
attribute
- An attribute of the represented typetype
- A subtype of the attribute type- See Also:
-
addTreatedSubgraph
<AJ> SubGraphImplementor<AJ> addTreatedSubgraph(Attribute<? super J, ? super AJ> attribute, ManagedType<AJ> type) Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the givenAttribute
, and with the given type, which may be a subtype of the attribute type, or return an existing suchSubGraph
if there is one.If the given type is a proper subtype of the attribute type, the result is a treated subgraph.
- Specified by:
addTreatedSubgraph
in interfaceGraph<J>
- Parameters:
attribute
- An attribute of the represented typetype
- A subtype of the attribute type
-
addTreatedElementSubgraph
<E> SubGraphImplementor<E> addTreatedElementSubgraph(PluralAttribute<? super J, ?, ? super E> attribute, Class<E> type) Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the element of the given collection, and with the given type, which may be a subtype of the element type, or return an existing suchSubGraph
if there is one.If the given type is a proper subtype of the element type, the result is a treated subgraph.
- Specified by:
addTreatedElementSubgraph
in interfaceGraph<J>
- Specified by:
addTreatedElementSubgraph
in interfaceGraph<J>
- Parameters:
attribute
- A collection-valued attribute of the represented typetype
- A subtype of the element type
-
addTreatedElementSubgraph
<AJ> SubGraph<AJ> addTreatedElementSubgraph(PluralAttribute<? super J, ?, ? super AJ> attribute, ManagedType<AJ> type) Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the element of the given collection, and with the given type, which may be a subtype of the attribute type, or return an existing suchSubGraph
if there is one.If the given type is a proper subtype of the element type, the result is a treated subgraph.
- Specified by:
addTreatedElementSubgraph
in interfaceGraph<J>
- Parameters:
attribute
- A collection-valued attribute of the represented typetype
- A subtype of the element type
-
addKeySubgraph
Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the key of the named map or return an existing suchSubGraph
if there is one.- Specified by:
addKeySubgraph
in interfaceGraph<J>
- Specified by:
addKeySubgraph
in interfaceGraph<J>
- Parameters:
attributeName
- The name of an attribute of the represented type
-
addKeySubgraph
Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the key of the named map, and with the given type, which may be a subtype of the attribute type, or return an existing suchSubGraph
if there is one.- Specified by:
addKeySubgraph
in interfaceGraph<J>
- Specified by:
addKeySubgraph
in interfaceGraph<J>
- Parameters:
attributeName
- The name of a map-valued attribute of the represented typetype
- A subtype of the key type
-
addTreatedMapKeySubgraph
<K> SubGraphImplementor<K> addTreatedMapKeySubgraph(MapAttribute<? super J, ? super K, ?> attribute, Class<K> type) Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the key of the named map, and with the given type, which may be a subtype of the attribute 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:
addTreatedMapKeySubgraph
in interfaceGraph<J>
- Specified by:
addTreatedMapKeySubgraph
in interfaceGraph<J>
- Parameters:
attribute
- A map-valued attribute of the represented typetype
- A subtype of the key type
-
addTreatedMapKeySubgraph
<AJ> SubGraphImplementor<AJ> addTreatedMapKeySubgraph(MapAttribute<? super J, ? super AJ, ?> attribute, ManagedType<AJ> type) Description copied from interface:Graph
Create and return a new (mutable)SubGraph
associated with the key of the named map, and with the given type, which may be a subtype of the attribute 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:
addTreatedMapKeySubgraph
in interfaceGraph<J>
- Parameters:
attribute
- A map-valued attribute of the represented typetype
- A subtype of the key type
-
hasAttributeNode
- Specified by:
hasAttributeNode
in interfaceGraph<J>
-
hasAttributeNode
- Specified by:
hasAttributeNode
in interfaceGraph<J>
-