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
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected Stringprotected List<NamedAttributeNodeMetadata> protected List<NamedSubgraphMetadata> protected List<NamedSubgraphMetadata> Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project -
Constructor Summary
ConstructorsConstructorDescriptionINTERNAL: Used for XML loading.NamedEntityGraphMetadata(MetadataAnnotation namedEntityGraph, EntityAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionbooleanINTERNAL: 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.inthashCode()protected booleanhasName()INTERNAL: Return true is a name was provided through metadata.booleanINTERNAL:voidinitXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:voidprocess(EntityAccessor entityAccessor) INTERNAL: Process the entity graph metadata.voidsetIncludeAllAttributes(Boolean includeAllAttributes) INTERNAL: Used for OX mapping.voidINTERNAL: Used for OX mapping.voidsetNamedAttributeNodes(List<NamedAttributeNodeMetadata> attributeNodes) INTERNAL: Used for OX mapping.voidsetSubclassSubgraphs(List<NamedSubgraphMetadata> subclassSubgraphs) INTERNAL: Used for OX mapping.voidsetSubgraphs(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:
equalsin 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:
initXMLObjectin 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.
-