EntityGraph and Subgraph.
EntityGraph, Subgraph
| Modifier and Type | Method and Description |
|---|---|
| public <Y> AttributeNode | Returns: the attribute nodename of the attribute attributeName)Get an existing attribute node for the attribute with the given name, or add a new attribute node if there is no existing node. |
| public <Y> AttributeNode | Returns: the attribute nodeattribute attribute)Get an existing attribute node for the given attribute, or add a new attribute node if there is no existing node. |
| public void | addAttributeNodes(String...
name of the attribute attributeName)Add one or more attribute nodes to the entity graph. |
| public void | addAttributeNodes(Attribute<? super T, ?>...
attribute attribute)Add one or more attribute nodes to the entity graph. |
| public <E> Subgraph | Returns: subgraph for the element attributeattribute attribute)Add a node to the graph that corresponds to a collection element that is a managed type. |
| public <X> Subgraph | Returns: subgraph for the element attributename of the attribute attributeName)Add a node to the graph that corresponds to a collection element that is a managed type. |
| public <X> Subgraph | Returns: subgraph for the element attributename of the attribute attributeName, Class<X> entity subclass type)Add a node to the graph that corresponds to a collection element that is a managed type. |
| public <X> Subgraph | Returns: subgraph for the key attributeattribute attribute)
Deprecated
for removal since 3.2. use
addMapKeySubgraph(MapAttribute)
Add a node to the graph that corresponds to a map key that is a managed type. |
| public <X> Subgraph | Returns: subgraph for the attributeattribute attribute, Class<? extends X> entity subclass type)
Deprecated
for removal since 3.2. use
addTreatedMapKeySubgraph(MapAttribute, Class)
Add a node to the graph that corresponds to a map key that is a managed type with inheritance. |
| public <X> Subgraph | Returns: subgraph for the key attributename of the attribute attributeName)Add a node to the graph that corresponds to a map key that is a managed type. |
| public <X> Subgraph | Returns: subgraph for the attributename of the attribute attributeName, Class<X> entity subclass type)Add a node to the graph that corresponds to a map key that is a managed type with inheritance. |
| public <K> Subgraph | Returns: subgraph for the key attributeattribute attribute)Add a node to the graph that corresponds to a map key that is a managed type. |
| public <X> Subgraph | Returns: subgraph for the attributeattribute attribute)Add a node to the graph that corresponds to a managed type. |
| public <X> Subgraph | Returns: subgraph for the attributeattribute attribute, Class<? extends X> entity subclass type)
Deprecated
for removal since 3.2. use
addTreatedSubgraph(Attribute, Class)
Add a node to the graph that corresponds to a managed type with inheritance. |
| public <X> Subgraph | Returns: subgraph for the attributename of the attribute attributeName)Add a node to the graph that corresponds to a managed type. |
| public <X> Subgraph | Returns: subgraph for the attributename of the attribute attributeName, Class<X> entity subclass type)Add a node to the graph that corresponds to a managed type with inheritance. |
| public <E> Subgraph | Returns: subgraph for the element attributeattribute attribute, Class<E> type)Add a node to the graph that corresponds to a collection element that is a managed type. |
| public <K> Subgraph | Returns: subgraph for the attributeattribute attribute, Class<K> entity subclass type)Add a node to the graph that corresponds to a map key that is a managed type with inheritance. |
| public <Y> Subgraph | Returns: subgraph for the attributeattribute attribute, Class<Y> entity subclass type)Add a node to the graph that corresponds to a managed type with inheritance. |
| public <Y> AttributeNode | Returns: the attribute nodename of the attribute attributeName)Get an existing attribute node for the attribute with the given name. |
| public <Y> AttributeNode | Returns: the attribute nodeattribute attribute)Get an existing attribute node for the given attribute. |
| public List | Returns: list of attribute nodes included in the graph or an empty list if none have been definedReturn the attribute nodes corresponding to the attributes of this managed type that are included in the graph. |
| public boolean | Returns: true if there is an existing attribute nodename of the attribute attributeName)Determine if there is an existing attribute node for the attribute with the given name. |
| public boolean | Returns: true if there is an existing attribute nodeattribute attribute)Determine if there is an existing attribute node for the given attribute. |
| public void | removeAttributeNode(String
name of the attribute attributeName)Remove an attribute node from the entity graph. |
| public void | removeAttributeNode(Attribute<? super T, ?>
attribute attribute)Remove an attribute node from the entity graph. |
| public void | removeAttributeNodes(Attribute.
Remove all attribute nodes of the given attribute types. |
| addAttributeNode | back to summary |
|---|---|
| public <Y> AttributeNode Get an existing attribute node for the attribute with the given name, or add a new attribute node if there is no existing node.
| |
| addAttributeNode | back to summary |
|---|---|
| public <Y> AttributeNode Get an existing attribute node for the given attribute, or add a new attribute node if there is no existing node.
| |
| addAttributeNodes | back to summary |
|---|---|
| public void addAttributeNodes(String... attributeName) Add one or more attribute nodes to the entity graph. If there is already an existing node for one of the given attribute names, that particular argument is ignored and has no effect.
| |
| addAttributeNodes | back to summary |
|---|---|
| public void addAttributeNodes(Attribute<? super T, ?>... attribute) Add one or more attribute nodes to the entity graph. If there is already an existing node for one of the given attributes, that particular argument is ignored and has no effect.
| |
| addElementSubgraph | back to summary |
|---|---|
| public <E> Subgraph Add a node to the graph that corresponds to a collection element that is a managed type. This allows for construction of multi-node entity graphs that include related managed types.
| |
| addElementSubgraph | back to summary |
|---|---|
| public <X> Subgraph Add a node to the graph that corresponds to a collection element that is a managed type. This allows for construction of multi-node entity graphs that include related managed types.
| |
| addElementSubgraph | back to summary |
|---|---|
| public <X> Subgraph Add a node to the graph that corresponds to a collection element that is a managed type. This allows for construction of multi-node entity graphs that include related managed types.
| |
| addKeySubgraph | back to summary |
|---|---|
| public <X> Subgraph Add a node to the graph that corresponds to a map key that is a managed type. This allows for construction of multi-node entity graphs that include related managed types.
| |
| addKeySubgraph | back to summary |
|---|---|
| public <X> Subgraph Add a node to the graph that corresponds to a map key that is a managed type with inheritance. This allows for construction of multi-node entity graphs that include related managed types. Subclass subgraphs will automatically include the specified attributes of superclass subgraphs
| |
| addKeySubgraph | back to summary |
|---|---|
| public <X> Subgraph Add a node to the graph that corresponds to a map key that is a managed type. This allows for construction of multi-node entity graphs that include related managed types.
| |
| addKeySubgraph | back to summary |
|---|---|
| public <X> Subgraph Add a node to the graph that corresponds to a map key that is a managed type with inheritance. This allows for construction of multi-node entity graphs that include related managed types. Subclass subgraphs will include the specified attributes of superclass subgraphs
| |
| addMapKeySubgraph | back to summary |
|---|---|
| public <K> Subgraph Add a node to the graph that corresponds to a map key that is a managed type. This allows for construction of multi-node entity graphs that include related managed types.
| |
| addSubgraph | back to summary |
|---|---|
| public <X> Subgraph Add a node to the graph that corresponds to a managed type. This allows for construction of multi-node entity graphs that include related managed types.
| |
| addSubgraph | back to summary |
|---|---|
| public <X> Subgraph Add a node to the graph that corresponds to a managed type with inheritance. This allows for multiple subclass subgraphs to be defined for this node of the entity graph. Subclass subgraphs will automatically include the specified attributes of superclass subgraphs
| |
| addSubgraph | back to summary |
|---|---|
| public <X> Subgraph Add a node to the graph that corresponds to a managed type. This allows for construction of multi-node entity graphs that include related managed types.
| |
| addSubgraph | back to summary |
|---|---|
| public <X> Subgraph Add a node to the graph that corresponds to a managed type with inheritance. This allows for multiple subclass subgraphs to be defined for this node of the entity graph. Subclass subgraphs will automatically include the specified attributes of superclass subgraphs
| |
| addTreatedElementSubgraph | back to summary |
|---|---|
| public <E> Subgraph Add a node to the graph that corresponds to a collection element that is a managed type. This allows for construction of multi-node entity graphs that include related managed types.
| |
| addTreatedMapKeySubgraph | back to summary |
|---|---|
| public <K> Subgraph Add a node to the graph that corresponds to a map key that is a managed type with inheritance. This allows for construction of multi-node entity graphs that include related managed types. Subclass subgraphs will automatically include the specified attributes of superclass subgraphs
| |
| addTreatedSubgraph | back to summary |
|---|---|
| public <Y> Subgraph Add a node to the graph that corresponds to a managed type with inheritance. This allows for multiple subclass subgraphs to be defined for this node of the entity graph. Subclass subgraphs will automatically include the specified attributes of superclass subgraphs.
| |
| getAttributeNode | back to summary |
|---|---|
| public <Y> AttributeNode Get an existing attribute node for the attribute with the given name.
| |
| getAttributeNode | back to summary |
|---|---|
| public <Y> AttributeNode Get an existing attribute node for the given attribute.
| |
| getAttributeNodes | back to summary |
|---|---|
| public List Return the attribute nodes corresponding to the attributes of this managed type that are included in the graph.
| |
| hasAttributeNode | back to summary |
|---|---|
| public boolean hasAttributeNode(String attributeName) Determine if there is an existing attribute node for the attribute with the given name.
| |
| hasAttributeNode | back to summary |
|---|---|
| public boolean hasAttributeNode(Attribute<? super T, ?> attribute) Determine if there is an existing attribute node for the given attribute.
| |
| removeAttributeNode | back to summary |
|---|---|
| public void removeAttributeNode(String attributeName) Remove an attribute node from the entity graph.
When this graph is interpreted as a load graph, this operation
suppresses inclusion of an attribute mapped for eager fetching.
The effect of this call may be overridden by subsequent
invocations of
| |
| removeAttributeNode | back to summary |
|---|---|
| public void removeAttributeNode(Attribute<? super T, ?> attribute) Remove an attribute node from the entity graph.
When this graph is interpreted as a load graph, this operation
suppresses inclusion of an attribute mapped for eager fetching.
The effect of this call may be overridden by subsequent
invocations of
| |
| removeAttributeNodes | back to summary |
|---|---|
| public void removeAttributeNodes(Attribute. Remove all attribute nodes of the given attribute types.
When this graph is interpreted as a load graph, this operation
suppresses inclusion of attributes mapped for eager fetching.
The effect of this call may be overridden by subsequent
invocations of
| |