T
- the Class type of the AttributeNode.public interface Subgraph extends AttributeNode
Modifier and Type | Method and Description |
---|---|
void |
addAttributeNodes(java.lang.String... attributeName)
Add an AttributeNode attribute to the entity graph.
|
Subgraph |
addSubgraph(java.lang.String attribute)
Used to add a node of the graph that corresponds to a managed type.
|
Subgraph |
addSubgraph(java.lang.String attribute,
java.lang.Class type)
Used to add a node of the graph that corresponds to a managed type with
inheritance.
|
java.util.List<AttributeNode> |
getAttributeNodes()
returns the attributes of this managed type that are included in the
sub-graph
|
java.lang.Class |
getClassType()
returns the attribute that references this sub-graph
|
getAttributeName
void addAttributeNodes(java.lang.String... attributeName)
java.lang.IllegalArgumentException
- if the attribute is not an attribute of
this managed type.java.lang.IllegalStateException
- if this EntityGraph has been statically definedSubgraph addSubgraph(java.lang.String attribute)
java.lang.IllegalArgumentException
- if the attribute is not an attribute of
this managed type.java.lang.IllegalArgumentException
- if the attribute's target type is not a managed typejava.lang.IllegalStateException
- if this EntityGraph has been statically definedSubgraph addSubgraph(java.lang.String attribute, java.lang.Class type)
java.lang.IllegalArgumentException
- if the attribute is not an attribute of
this managed type.java.lang.IllegalArgumentException
- if the attribute's target type is not a managed typejava.lang.IllegalStateException
- if this EntityGraph has been statically definedjava.util.List<AttributeNode> getAttributeNodes()
java.lang.Class getClassType()