public class EntityGraphImpl<T> extends AbstractGraphNode<T> implements javax.persistence.EntityGraph<T>, EntityGraphImplementor<T>
Constructor and Description |
---|
EntityGraphImpl(java.lang.String name,
javax.persistence.metamodel.EntityType<T> entityType,
SessionFactoryImplementor sessionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeNodes(javax.persistence.metamodel.Attribute<T,?>... attributes) |
void |
addAttributeNodes(java.lang.String... attributeNames) |
<X> SubgraphImpl<X> |
addKeySubgraph(javax.persistence.metamodel.Attribute<T,X> attribute) |
<X> SubgraphImpl<? extends X> |
addKeySubgraph(javax.persistence.metamodel.Attribute<T,X> attribute,
java.lang.Class<? extends X> type) |
<X> SubgraphImpl<X> |
addKeySubgraph(java.lang.String attributeName) |
<X> SubgraphImpl<X> |
addKeySubgraph(java.lang.String attributeName,
java.lang.Class<X> type) |
<X> javax.persistence.Subgraph<? extends X> |
addSubclassSubgraph(java.lang.Class<? extends X> type) |
<X> SubgraphImpl<X> |
addSubgraph(javax.persistence.metamodel.Attribute<T,X> attribute) |
<X> SubgraphImpl<? extends X> |
addSubgraph(javax.persistence.metamodel.Attribute<T,X> attribute,
java.lang.Class<? extends X> type) |
<X> SubgraphImpl<X> |
addSubgraph(java.lang.String attributeName) |
<X> SubgraphImpl<X> |
addSubgraph(java.lang.String attributeName,
java.lang.Class<X> type) |
boolean |
appliesTo(javax.persistence.metamodel.EntityType<? super T> entityType) |
boolean |
appliesTo(java.lang.String entityName) |
java.util.List<javax.persistence.AttributeNode<?>> |
getAttributeNodes() |
javax.persistence.metamodel.EntityType<T> |
getEntityType() |
java.lang.String |
getName() |
EntityGraphImpl<T> |
makeImmutableCopy(java.lang.String name)
Make an immutable copy of this entity graph, using the given name.
|
EntityGraphImpl<T> |
makeMutableCopy()
Make a mutable copy of this entity graph
|
protected javax.persistence.metamodel.Attribute<T,?> |
resolveAttribute(java.lang.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(java.lang.String name, javax.persistence.metamodel.EntityType<T> entityType, SessionFactoryImplementor sessionFactory)
public EntityGraphImpl<T> makeImmutableCopy(java.lang.String name)
EntityGraphImplementor
makeImmutableCopy
in interface EntityGraphImplementor<T>
name
- The name to apply to the immutable copypublic EntityGraphImpl<T> makeMutableCopy()
EntityGraphImplementor
makeMutableCopy
in interface EntityGraphImplementor<T>
public javax.persistence.metamodel.EntityType<T> getEntityType()
public java.lang.String getName()
getName
in interface javax.persistence.EntityGraph<T>
public void addAttributeNodes(java.lang.String... attributeNames)
addAttributeNodes
in interface javax.persistence.EntityGraph<T>
addAttributeNodes
in class AbstractGraphNode<T>
@SafeVarargs public final void addAttributeNodes(javax.persistence.metamodel.Attribute<T,?>... attributes)
addAttributeNodes
in interface javax.persistence.EntityGraph<T>
addAttributeNodes
in class AbstractGraphNode<T>
public <X> SubgraphImpl<X> addSubgraph(javax.persistence.metamodel.Attribute<T,X> attribute)
addSubgraph
in interface javax.persistence.EntityGraph<T>
addSubgraph
in class AbstractGraphNode<T>
public <X> SubgraphImpl<? extends X> addSubgraph(javax.persistence.metamodel.Attribute<T,X> attribute, java.lang.Class<? extends X> type)
addSubgraph
in interface javax.persistence.EntityGraph<T>
addSubgraph
in class AbstractGraphNode<T>
public <X> SubgraphImpl<X> addSubgraph(java.lang.String attributeName)
addSubgraph
in interface javax.persistence.EntityGraph<T>
addSubgraph
in class AbstractGraphNode<T>
public <X> SubgraphImpl<X> addSubgraph(java.lang.String attributeName, java.lang.Class<X> type)
addSubgraph
in interface javax.persistence.EntityGraph<T>
addSubgraph
in class AbstractGraphNode<T>
public <X> SubgraphImpl<X> addKeySubgraph(javax.persistence.metamodel.Attribute<T,X> attribute)
addKeySubgraph
in interface javax.persistence.EntityGraph<T>
addKeySubgraph
in class AbstractGraphNode<T>
public <X> SubgraphImpl<? extends X> addKeySubgraph(javax.persistence.metamodel.Attribute<T,X> attribute, java.lang.Class<? extends X> type)
addKeySubgraph
in interface javax.persistence.EntityGraph<T>
addKeySubgraph
in class AbstractGraphNode<T>
public <X> SubgraphImpl<X> addKeySubgraph(java.lang.String attributeName)
addKeySubgraph
in interface javax.persistence.EntityGraph<T>
addKeySubgraph
in class AbstractGraphNode<T>
public <X> SubgraphImpl<X> addKeySubgraph(java.lang.String attributeName, java.lang.Class<X> type)
addKeySubgraph
in interface javax.persistence.EntityGraph<T>
addKeySubgraph
in class AbstractGraphNode<T>
public <X> javax.persistence.Subgraph<? extends X> addSubclassSubgraph(java.lang.Class<? extends X> type)
addSubclassSubgraph
in interface javax.persistence.EntityGraph<T>
public java.util.List<javax.persistence.AttributeNode<?>> getAttributeNodes()
getAttributeNodes
in interface javax.persistence.EntityGraph<T>
protected javax.persistence.metamodel.Attribute<T,?> resolveAttribute(java.lang.String attributeName)
resolveAttribute
in class AbstractGraphNode<T>
public boolean appliesTo(java.lang.String entityName)
appliesTo
in interface EntityGraphImplementor<T>
public boolean appliesTo(javax.persistence.metamodel.EntityType<? super T> entityType)
appliesTo
in interface EntityGraphImplementor<T>
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.