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