Class EntityGraphImpl<X>
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.AttributeNodeImpl<X>
-
- org.eclipse.persistence.internal.jpa.EntityGraphImpl<X>
-
- All Implemented Interfaces:
javax.persistence.AttributeNode<X>,javax.persistence.EntityGraph<X>,javax.persistence.Subgraph<X>
public class EntityGraphImpl<X> extends AttributeNodeImpl<X> implements javax.persistence.EntityGraph<X>, javax.persistence.Subgraph<X>
Concrete JPA EntityGraph class. For this implementation the EntityGraphImpl wraps the EclipseLink AttributeGroup type.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.persistence.queries.AttributeGroupattributeGroupprotected java.util.Map<java.lang.String,AttributeNodeImpl>attributeNodesprotected java.lang.Class<X>classTypeprotected org.eclipse.persistence.descriptors.ClassDescriptordescriptorprotected booleanisMutable-
Fields inherited from class org.eclipse.persistence.internal.jpa.AttributeNodeImpl
currentAttribute, keySubgraphs, subgraphs
-
-
Constructor Summary
Constructors Modifier Constructor Description EntityGraphImpl(org.eclipse.persistence.queries.AttributeGroup group)protectedEntityGraphImpl(org.eclipse.persistence.queries.AttributeGroup group, org.eclipse.persistence.descriptors.ClassDescriptor descriptor)protectedEntityGraphImpl(org.eclipse.persistence.queries.AttributeGroup group, org.eclipse.persistence.descriptors.ClassDescriptor descriptor, java.lang.String attribute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAttributeNodeImpl(AttributeNodeImpl attributeNode)voidaddAttributeNodes(java.lang.String... attributeNames)voidaddAttributeNodes(javax.persistence.metamodel.Attribute<X,?>... attribute)<X> javax.persistence.Subgraph<X>addKeySubgraph(java.lang.String attributeName)<X> javax.persistence.Subgraph<X>addKeySubgraph(java.lang.String attributeName, java.lang.Class<X> type)<T> javax.persistence.Subgraph<T>addKeySubgraph(javax.persistence.metamodel.Attribute<X,T> attribute)<T> javax.persistence.Subgraph<? extends T>addKeySubgraph(javax.persistence.metamodel.Attribute<X,T> attribute, java.lang.Class<? extends T> type)<T> javax.persistence.Subgraph<? extends T>addSubclassSubgraph(java.lang.Class<? extends T> type)<X> javax.persistence.Subgraph<X>addSubgraph(java.lang.String attributeName)<X> javax.persistence.Subgraph<X>addSubgraph(java.lang.String attributeName, java.lang.Class<X> type)<T> javax.persistence.Subgraph<T>addSubgraph(javax.persistence.metamodel.Attribute<X,T> attribute)<T> javax.persistence.Subgraph<? extends T>addSubgraph(javax.persistence.metamodel.Attribute<X,T> attribute, java.lang.Class<? extends T> type)protected voidbuildAttributeNodes()org.eclipse.persistence.queries.AttributeGroupgetAttributeGroup()java.lang.StringgetAttributeName()java.util.List<javax.persistence.AttributeNode<?>>getAttributeNodes()java.lang.Class<X>getClassType()java.lang.StringgetName()-
Methods inherited from class org.eclipse.persistence.internal.jpa.AttributeNodeImpl
addKeySubgraph, addSubgraph, getKeySubgraphs, getSubgraphs
-
-
-
-
Field Detail
-
attributeGroup
protected org.eclipse.persistence.queries.AttributeGroup attributeGroup
-
isMutable
protected transient boolean isMutable
-
descriptor
protected transient org.eclipse.persistence.descriptors.ClassDescriptor descriptor
-
classType
protected java.lang.Class<X> classType
-
attributeNodes
protected java.util.Map<java.lang.String,AttributeNodeImpl> attributeNodes
-
-
Constructor Detail
-
EntityGraphImpl
protected EntityGraphImpl(org.eclipse.persistence.queries.AttributeGroup group, org.eclipse.persistence.descriptors.ClassDescriptor descriptor)
-
EntityGraphImpl
public EntityGraphImpl(org.eclipse.persistence.queries.AttributeGroup group)
-
EntityGraphImpl
protected EntityGraphImpl(org.eclipse.persistence.queries.AttributeGroup group, org.eclipse.persistence.descriptors.ClassDescriptor descriptor, java.lang.String attribute)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacejavax.persistence.EntityGraph<X>
-
addAttributeNodes
public void addAttributeNodes(java.lang.String... attributeNames)
-
addAttributeNodeImpl
protected void addAttributeNodeImpl(AttributeNodeImpl attributeNode)
-
addAttributeNodes
public void addAttributeNodes(javax.persistence.metamodel.Attribute<X,?>... attribute)
-
addSubgraph
public <T> javax.persistence.Subgraph<T> addSubgraph(javax.persistence.metamodel.Attribute<X,T> attribute)
-
addSubgraph
public <T> javax.persistence.Subgraph<? extends T> addSubgraph(javax.persistence.metamodel.Attribute<X,T> attribute, java.lang.Class<? extends T> type)
-
addSubgraph
public <X> javax.persistence.Subgraph<X> addSubgraph(java.lang.String attributeName)
-
addSubgraph
public <X> javax.persistence.Subgraph<X> addSubgraph(java.lang.String attributeName, java.lang.Class<X> type)
-
addKeySubgraph
public <T> javax.persistence.Subgraph<T> addKeySubgraph(javax.persistence.metamodel.Attribute<X,T> attribute)
-
addKeySubgraph
public <T> javax.persistence.Subgraph<? extends T> addKeySubgraph(javax.persistence.metamodel.Attribute<X,T> attribute, java.lang.Class<? extends T> type)
-
addKeySubgraph
public <X> javax.persistence.Subgraph<X> addKeySubgraph(java.lang.String attributeName)
-
addKeySubgraph
public <X> javax.persistence.Subgraph<X> addKeySubgraph(java.lang.String attributeName, java.lang.Class<X> type)
-
addSubclassSubgraph
public <T> javax.persistence.Subgraph<? extends T> addSubclassSubgraph(java.lang.Class<? extends T> type)
- Specified by:
addSubclassSubgraphin interfacejavax.persistence.EntityGraph<X>
-
getAttributeNodes
public java.util.List<javax.persistence.AttributeNode<?>> getAttributeNodes()
-
getClassType
public java.lang.Class<X> getClassType()
- Specified by:
getClassTypein interfacejavax.persistence.Subgraph<X>
-
getAttributeGroup
public org.eclipse.persistence.queries.AttributeGroup getAttributeGroup()
- Returns:
- the attributeGroup
-
getAttributeName
public java.lang.String getAttributeName()
- Specified by:
getAttributeNamein interfacejavax.persistence.AttributeNode<X>- Overrides:
getAttributeNamein classAttributeNodeImpl<X>
-
buildAttributeNodes
protected void buildAttributeNodes()
-
-