Interface AttributeNode<T>
- Type Parameters:
T- The type of the attribute.
public interface AttributeNode<T>
Represents an attribute node of an entity graph.
- Since:
- 2.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddOption(FetchOption option) Specify an option controlling how this node is fetched.Add a subgraph rooted at this attribute node, which must be an embedded attribute or an association to an entity class.addTreatedSubgraph(Class<S> type) Add a subgraph rooted at this attribute node, which must be an association to an entity class, for an entity subclass of the entity class.The attribute from which this branch of the graph or subgraph is forked.Return the name of the attribute corresponding to the attribute node.Return a map of subgraphs associated with this attribute node's map key.Return the options controlling how this node is fetched.Return a map of subgraphs associated with this attribute node.
-
Method Details
-
getAttributeName
String getAttributeName()Return the name of the attribute corresponding to the attribute node.- Returns:
- name of the attribute
-
getAttribute
-
addSubgraph
-
addTreatedSubgraph
Add a subgraph rooted at this attribute node, which must be an association to an entity class, for an entity subclass of the entity class.- Type Parameters:
S- The type of the subclass- Parameters:
type- The subclass of the entity class- Returns:
- the added subgraph
- Since:
- 4.0
- See Also:
-
getSubgraphs
-
getKeySubgraphs
-
addOption
Specify an option controlling how this node is fetched.- Parameters:
option- The option- Returns:
- the receiving instance
- Since:
- 4.0
-
getOptions
Set<FetchOption> getOptions()Return the options controlling how this node is fetched.- If this is an added
node, the returned options contain
FetchType.EAGER. - If this is a removed
node, the returned options contain
FetchType.LAZY.
- Returns:
- The options for this node
- Since:
- 4.0
- If this is an added
node, the returned options contain
-