Module org.eclipse.persistence.jpa
Class NamedEntityGraphMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.graphs.NamedEntityGraphMetadata
Object to hold onto named entity graph metadata.
Key notes:
- any metadata mapped from XML to this class must be compared in the
equals method.
- any metadata mapped from XML to this class must be initialized in the
initXMLObject method.
- when loading from annotations, the constructor accepts the metadata
accessor this metadata was loaded from. Used it to look up any
'companion' annotation needed for processing.
- methods should be preserved in alphabetical order.
- Since:
- EclipseLink 2.5
-
Field Summary
Modifier and TypeFieldDescriptionprotected Boolean
protected String
protected List
<NamedAttributeNodeMetadata> protected List
<NamedSubgraphMetadata> protected List
<NamedSubgraphMetadata> Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ConstructorDescriptionINTERNAL: Used for XML loading.NamedEntityGraphMetadata
(MetadataAnnotation namedEntityGraph, EntityAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL: Used for XML merging and overriding.INTERNAL: Used for OX mapping.getName()
INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.int
hashCode()
protected boolean
hasName()
INTERNAL: Return true is a name was provided through metadata.boolean
INTERNAL:void
initXMLObject
(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:void
process
(EntityAccessor entityAccessor) INTERNAL: Process the entity graph metadata.void
setIncludeAllAttributes
(Boolean includeAllAttributes) INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.void
setNamedAttributeNodes
(List<NamedAttributeNodeMetadata> attributeNodes) INTERNAL: Used for OX mapping.void
setSubclassSubgraphs
(List<NamedSubgraphMetadata> subclassSubgraphs) INTERNAL: Used for OX mapping.void
setSubgraphs
(List<NamedSubgraphMetadata> subgraphs) INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getIdentifier, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
Field Details
-
m_name
-
m_includeAllAttributes
-
m_namedAttributeNodes
-
m_subgraphs
-
m_subclassSubgraphs
-
-
Constructor Details
-
NamedEntityGraphMetadata
public NamedEntityGraphMetadata()INTERNAL: Used for XML loading. -
NamedEntityGraphMetadata
INTERNAL: Used for annotation loading.
-
-
Method Details
-
equals
INTERNAL: Used for XML merging and overriding.- Specified by:
equals
in classORMetadata
-
hashCode
public int hashCode() -
getIncludeAllAttributes
INTERNAL: Used for OX mapping. -
getName
INTERNAL: Used for OX mapping. -
getNamedAttributeNodes
INTERNAL: Used for OX mapping. -
getSubclassSubgraphs
INTERNAL: Used for OX mapping. -
getSubgraphs
INTERNAL: Used for OX mapping. -
includeAllAttributes
public boolean includeAllAttributes()INTERNAL: -
initXMLObject
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:- Overrides:
initXMLObject
in classORMetadata
-
hasName
protected boolean hasName()INTERNAL: Return true is a name was provided through metadata. -
process
INTERNAL: Process the entity graph metadata. -
setIncludeAllAttributes
INTERNAL: Used for OX mapping. -
setName
INTERNAL: Used for OX mapping. -
setNamedAttributeNodes
INTERNAL: Used for OX mapping. -
setSubclassSubgraphs
INTERNAL: Used for OX mapping. -
setSubgraphs
INTERNAL: Used for OX mapping.
-