public class EntityGraphImpl<T> extends AbstractGraphNode<T> implements EntityGraph<T>, GraphNodeImplementor
Constructor and Description |
---|
EntityGraphImpl(String name,
EntityType<T> entityType,
EntityManagerFactoryImpl entityManagerFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeNodes(Attribute<T,?>... attributes)
Add one or more attribute nodes to the entity graph.
|
void |
addAttributeNodes(String... attributeNames)
Add one or more attribute nodes to the entity graph.
|
<X> SubgraphImpl<X> |
addKeySubgraph(Attribute<T,X> attribute)
Add a node to the graph that corresponds to a map key that is a managed type.
|
<X> SubgraphImpl<? extends X> |
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.
|
<X> SubgraphImpl<X> |
addKeySubgraph(String attributeName)
Add a node to the graph that corresponds to a map key that is a managed type.
|
<X> SubgraphImpl<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.
|
<T1> Subgraph<? extends T1> |
addSubclassSubgraph(Class<? extends T1> type)
Add additional attributes to this entity graph that correspond to attributes of subclasses of this EntityGraph's
entity type.
|
<X> SubgraphImpl<X> |
addSubgraph(Attribute<T,X> attribute)
Add a node to the graph that corresponds to a managed type.
|
<X> SubgraphImpl<? extends X> |
addSubgraph(Attribute<T,X> attribute,
Class<? extends X> type)
Add a node to the graph that corresponds to a managed type with inheritance.
|
<X> SubgraphImpl<X> |
addSubgraph(String attributeName)
Add a node to the graph that corresponds to a managed type.
|
<X> SubgraphImpl<X> |
addSubgraph(String attributeName,
Class<X> type)
Add a node to the graph that corresponds to a managed type with inheritance.
|
boolean |
appliesTo(EntityType<? super T> entityType) |
boolean |
appliesTo(String entityName) |
List<AttributeNode<?>> |
getAttributeNodes()
Return the attribute nodes of this entity that are included
in the entity graph.
|
EntityType<T> |
getEntityType() |
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.
|
EntityGraphImpl<T> |
makeImmutableCopy(String name) |
EntityGraphImpl<T> |
makeMutableCopy() |
protected Attribute<T,?> |
resolveAttribute(String attributeName) |
addAttribute, addAttribute, addAttributeNode, attributeImplementorNodes, attributeNodes, buildAttributeNode, containsAttribute, getFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attributeImplementorNodes, attributeNodes, containsAttribute
public EntityGraphImpl(String name, EntityType<T> entityType, EntityManagerFactoryImpl entityManagerFactory)
public EntityGraphImpl<T> makeImmutableCopy(String name)
public EntityGraphImpl<T> makeMutableCopy()
public EntityType<T> getEntityType()
public String getName()
EntityGraph
getName
in interface EntityGraph<T>
public void addAttributeNodes(String... attributeNames)
EntityGraph
addAttributeNodes
in interface EntityGraph<T>
addAttributeNodes
in class AbstractGraphNode<T>
attributeNames
- name of the attributepublic void addAttributeNodes(Attribute<T,?>... attributes)
EntityGraph
addAttributeNodes
in interface EntityGraph<T>
addAttributeNodes
in class AbstractGraphNode<T>
attributes
- attributepublic <X> SubgraphImpl<X> addSubgraph(Attribute<T,X> attribute)
EntityGraph
addSubgraph
in interface EntityGraph<T>
addSubgraph
in class AbstractGraphNode<T>
attribute
- attributepublic <X> SubgraphImpl<? extends X> addSubgraph(Attribute<T,X> attribute, Class<? extends X> type)
EntityGraph
addSubgraph
in interface EntityGraph<T>
addSubgraph
in class AbstractGraphNode<T>
attribute
- attributetype
- entity subclasspublic <X> SubgraphImpl<X> addSubgraph(String attributeName)
EntityGraph
addSubgraph
in interface EntityGraph<T>
addSubgraph
in class AbstractGraphNode<T>
attributeName
- name of the attributepublic <X> SubgraphImpl<X> addSubgraph(String attributeName, Class<X> type)
EntityGraph
addSubgraph
in interface EntityGraph<T>
addSubgraph
in class AbstractGraphNode<T>
attributeName
- name of the attributetype
- entity subclasspublic <X> SubgraphImpl<X> addKeySubgraph(Attribute<T,X> attribute)
EntityGraph
addKeySubgraph
in interface EntityGraph<T>
addKeySubgraph
in class AbstractGraphNode<T>
attribute
- attributepublic <X> SubgraphImpl<? extends X> addKeySubgraph(Attribute<T,X> attribute, Class<? extends X> type)
EntityGraph
addKeySubgraph
in interface EntityGraph<T>
addKeySubgraph
in class AbstractGraphNode<T>
attribute
- attributetype
- entity subclasspublic <X> SubgraphImpl<X> addKeySubgraph(String attributeName)
EntityGraph
addKeySubgraph
in interface EntityGraph<T>
addKeySubgraph
in class AbstractGraphNode<T>
attributeName
- name of the attributepublic <X> SubgraphImpl<X> addKeySubgraph(String attributeName, Class<X> type)
EntityGraph
addKeySubgraph
in interface EntityGraph<T>
addKeySubgraph
in class AbstractGraphNode<T>
attributeName
- name of the attributetype
- entity subclasspublic <T1> Subgraph<? extends T1> addSubclassSubgraph(Class<? extends T1> type)
EntityGraph
addSubclassSubgraph
in interface EntityGraph<T>
type
- entity subclasspublic List<AttributeNode<?>> getAttributeNodes()
EntityGraph
getAttributeNodes
in interface EntityGraph<T>
protected Attribute<T,?> resolveAttribute(String attributeName)
resolveAttribute
in class AbstractGraphNode<T>
public boolean appliesTo(String entityName)
public boolean appliesTo(EntityType<? super T> entityType)
Copyright © 2016 JBoss by Red Hat. All rights reserved.