T
- The type of the attribute.public interface Subgraph
EntityGraph
,
AttributeNode
,
NamedSubgraph
Modifier and Type | Method and Description |
---|---|
void |
addAttributeNodes(Attribute<T,?>... attribute)
Add one or more attribute nodes to the entity graph.
|
void |
addAttributeNodes(String... attributeName)
Add one or more attribute nodes to the entity graph.
|
|
addKeySubgraph(Attribute<T,X> attribute)
Add a node to the graph that corresponds to a map key
that is a managed type.
|
|
addKeySubgraph(Attribute<T,X> attribute,
Class extends X> type)
Add a node to the graph that corresponds to a map key
that is a managed type with inheritance.
|
|
addKeySubgraph(String attributeName)
Add a node to the graph that corresponds to a map key
that is a managed type.
|
|
addKeySubgraph(String attributeName,
Class
Add a node to the graph that corresponds to a map key
that is a managed type with inheritance.
|
|
addSubgraph(Attribute<T,X> attribute)
Add a node to the graph that corresponds to a managed
type.
|
|
addSubgraph(Attribute<T,X> attribute,
Class extends X> type)
Add a node to the graph that corresponds to a managed
type with inheritance.
|
|
addSubgraph(String attributeName)
Add a node to the graph that corresponds to a managed
type.
|
|
addSubgraph(String attributeName,
Class
Add a node to the graph that corresponds to a managed
type with inheritance.
|
List<AttributeNode>> |
getAttributeNodes()
Return the attribute nodes corresponding to the attributes of
this managed type that are included in the subgraph.
|
Class<T> |
getClassType()
Return the type for which this subgraph was defined.
|
void addAttributeNodes(String... attributeName)
attributeName
- name of the attributeIllegalArgumentException
- if the attribute is not an
attribute of this managed type.IllegalStateException
- if the EntityGraph has been
statically definedvoid addAttributeNodes(Attribute<T,?>... attribute)
attribute
- attributeIllegalStateException
- if this EntityGraph has been
statically definedSubgraph addSubgraph(Attribute<T,X> attribute)
attribute
- attributeIllegalArgumentException
- if the attribute's target
type is not a managed typeIllegalStateException
- if the EntityGraph has been
statically definedSubgraph extends X> addSubgraph(Attribute<T,X> attribute, Class extends X> type)
attribute
- attributetype
- entity subclassIllegalArgumentException
- if the attribute's target
type is not a managed typeIllegalStateException
- if this EntityGraph has been
statically definedSubgraph addSubgraph(String attributeName)
attributeName
- name of the attributeIllegalArgumentException
- if the attribute is not an
attribute of this managed type.IllegalArgumentException
- if the attribute's target
type is not a managed typeIllegalStateException
- if this EntityGraph has been
statically definedSubgraph addSubgraph(String attributeName, Class type)
attributeName
- name of the attributetype
- entity subclassIllegalArgumentException
- if the attribute is not
an attribute of this managed type.IllegalArgumentException
- if the attribute's target
type is not a managed typeIllegalStateException
- if this EntityGraph has been
statically definedSubgraph addKeySubgraph(Attribute<T,X> attribute)
attribute
- attributeIllegalArgumentException
- if the attribute's target
type is not a managed type entityIllegalStateException
- if this EntityGraph has been
statically definedSubgraph extends X> addKeySubgraph(Attribute<T,X> attribute, Class extends X> type)
attribute
- attributetype
- entity subclassIllegalArgumentException
- if the attribute's target
type is not a managed type entityIllegalStateException
- if this EntityGraph has been
statically definedSubgraph addKeySubgraph(String attributeName)
attributeName
- name of the attributeIllegalArgumentException
- if the attribute is not an
attribute of this entity.IllegalArgumentException
- if the attribute's target
type is not a managed typeIllegalStateException
- if this EntityGraph has been
statically definedSubgraph addKeySubgraph(String attributeName, Class type)
attributeName
- name of the attributetype
- entity subclassIllegalArgumentException
- if the attribute is not an
attribute of this entity.IllegalArgumentException
- if the attribute's target
type is not a managed typeIllegalStateException
- if this EntityGraph has been
statically definedList<AttributeNode>> getAttributeNodes()
Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.