Module org.eclipse.persistence.jpa
Class NamedAttributeNodeMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.graphs.NamedAttributeNodeMetadata
Object to hold onto named attribute node 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
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ConstructorDescriptionINTERNAL: Used for XML loading.NamedAttributeNodeMetadata
(MetadataAnnotation namedAttributeNode, ClassAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL: Used for XML merging and overriding.INTERNAL: The unique identifier of named attribute mode metadata.INTERNAL: Used for OX mapping.getName()
INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.int
hashCode()
void
process
(Map<String, Map<String, AttributeGroup>> attributeGraphs, AttributeGroup graph, AttributeGroup rootGraph) INTERNAL: Process the named attribute node metadata.void
setKeySubgraph
(String keySubgraph) INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.void
setSubgraph
(String subgraph) INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, 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_subgraph
-
m_keySubgraph
-
-
Constructor Details
-
NamedAttributeNodeMetadata
public NamedAttributeNodeMetadata()INTERNAL: Used for XML loading. -
NamedAttributeNodeMetadata
INTERNAL: Used for annotation loading.
-
-
Method Details
-
equals
INTERNAL: Used for XML merging and overriding.- Specified by:
equals
in classORMetadata
-
hashCode
public int hashCode() -
getIdentifier
INTERNAL: The unique identifier of named attribute mode metadata.- Overrides:
getIdentifier
in classORMetadata
- See Also:
-
getKeySubgraph
INTERNAL: Used for OX mapping. -
getName
INTERNAL: Used for OX mapping. -
getSubgraph
INTERNAL: Used for OX mapping. -
process
public void process(Map<String, Map<String, AttributeGroup>> attributeGraphs, AttributeGroup graph, AttributeGroup rootGraph) INTERNAL: Process the named attribute node metadata. -
setKeySubgraph
INTERNAL: Used for OX mapping. -
setName
INTERNAL: Used for OX mapping. -
setSubgraph
INTERNAL: Used for OX mapping.
-