T - The type of the root entity.public interface EntityGraph<T>
| Modifier and Type | Method and Description | 
|---|---|
void | 
addAttributeNodes(Attribute<? super 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. 
 | 
<X> Subgraph<X> | 
addKeySubgraph(Attribute<? super T,X> attribute)
Add a node to the graph that corresponds to a map key that is a managed type. 
 | 
<X> Subgraph<? extends X> | 
addKeySubgraph(Attribute<? super 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. 
 | 
<X> Subgraph<X> | 
addKeySubgraph(String attributeName)
Add a node to the graph that corresponds to a map key that is a managed type. 
 | 
<X> Subgraph<X> | 
addKeySubgraph(String attributeName,
              Class<X> type)
Add a node to the graph that corresponds to a map key that is a managed type with inheritance. 
 | 
<X> Subgraph<? extends X> | 
addSubclassSubgraph(Class<? extends X> type)
Add additional attributes to this entity graph that correspond to attributes of subclasses of this
 EntityGraph's entity type. 
 | 
<X> Subgraph<X> | 
addSubgraph(Attribute<? super T,X> attribute)
Add a node to the graph that corresponds to a managed type. 
 | 
<X> Subgraph<? extends X> | 
addSubgraph(Attribute<? super T,X> attribute,
           Class<? extends X> type)
Add a node to the graph that corresponds to a managed type with inheritance. 
 | 
<X> Subgraph<X> | 
addSubgraph(String attributeName)
Add a node to the graph that corresponds to a managed type. 
 | 
<X> Subgraph<X> | 
addSubgraph(String attributeName,
           Class<X> type)
Add a node to the graph that corresponds to a managed type with inheritance. 
 | 
List<AttributeNode<?>> | 
getAttributeNodes()
Return the attribute nodes of this entity that are included in the entity graph. 
 | 
String | 
getName()
Return the name of a named EntityGraph - an entity graph defined by means of the NamedEntityGraph
 annotation, XML descriptor element, or added by means of the addNamedEntityGraph method. 
 | 
String getName()
void addAttributeNodes(String... attributeName)
attributeName - name of the attributeIllegalArgumentException - if the attribute is not an attribute of this entity.IllegalStateException - if the EntityGraph has been statically definedvoid addAttributeNodes(Attribute<? super T,?>... attribute)
attribute - attributeIllegalStateException - if the EntityGraph has been statically defined<X> Subgraph<X> addSubgraph(Attribute<? super T,X> attribute)
X - typeattribute - attributeIllegalArgumentException - if the attribute's target type is not a managed typeIllegalStateException - if the EntityGraph has been statically defined<X> Subgraph<? extends X> addSubgraph(Attribute<? super T,X> attribute, Class<? extends X> type)
X - typeattribute - attributetype - entity subclassIllegalArgumentException - if the attribute's target type is not a managed typeIllegalStateException - if the EntityGraph has been statically defined<X> Subgraph<X> addSubgraph(String attributeName)
X - typeattributeName - 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 the EntityGraph has been statically defined<X> Subgraph<X> addSubgraph(String attributeName, Class<X> type)
X - typeattributeName - 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 defined<X> Subgraph<X> addKeySubgraph(Attribute<? super T,X> attribute)
X - typeattribute - attributeIllegalArgumentException - if the attribute's target type is not an entityIllegalStateException - if this EntityGraph has been statically defined<X> Subgraph<? extends X> addKeySubgraph(Attribute<? super T,X> attribute, Class<? extends X> type)
X - typeattribute - attributetype - entity subclassIllegalArgumentException - if the attribute's target type is not an entityIllegalStateException - if this EntityGraph has been statically defined<X> Subgraph<X> addKeySubgraph(String attributeName)
X - typeattributeName - name of the attributeIllegalArgumentException - if the attribute is not an attribute of this entity.IllegalArgumentException - if the attribute's target type is not an entityIllegalStateException - if this EntityGraph has been statically defined<X> Subgraph<X> addKeySubgraph(String attributeName, Class<X> type)
X - typeattributeName - 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 defined<X> Subgraph<? extends X> addSubclassSubgraph(Class<? extends X> type)
X - typetype - entity subclassIllegalArgumentException - if the type is not an entity typeIllegalStateException - if the EntityGraph has been statically definedList<AttributeNode<?>> getAttributeNodes()
Copyright © 2016. All rights reserved.