Module org.eclipse.persistence.jpa
Class OverrideMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.columns.OverrideMetadata
- Direct Known Subclasses:
AssociationOverrideMetadata
,AttributeOverrideMetadata
INTERNAL:
Object to hold onto common attribute/association override metadata.
Key notes:
- any metadata mapped from XML to this class must be compared in the
equals 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 1.0
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ModifierConstructorDescriptionprotected
OverrideMetadata
(String xmlElement) INTERNAL: Used for XML loading.protected
OverrideMetadata
(MetadataAnnotation annotation, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL:INTERNAL: To satisfy the MetadataMergeable interface for subclasses and provide a means of uniquely identifying objects.abstract String
INTERNAL:getName()
INTERNAL: Used for OX mapping.int
hashCode()
void
INTERNAL: Used for OX mapping.boolean
shouldOverride
(OverrideMetadata existing, MetadataLogger logger, String descriptorClass) INTERNAL: Method to determine if this ORMetadata should override another.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
-
Constructor Details
-
OverrideMetadata
INTERNAL: Used for annotation loading. -
OverrideMetadata
INTERNAL: Used for XML loading.
-
-
Method Details
-
equals
INTERNAL:- Specified by:
equals
in classORMetadata
-
hashCode
public int hashCode() -
getIdentifier
INTERNAL: To satisfy the MetadataMergeable interface for subclasses and provide a means of uniquely identifying objects.- Overrides:
getIdentifier
in classORMetadata
- See Also:
-
getIgnoreMappedSuperclassContext
INTERNAL: -
getName
INTERNAL: Used for OX mapping. -
setName
INTERNAL: Used for OX mapping. -
shouldOverride
public boolean shouldOverride(OverrideMetadata existing, MetadataLogger logger, String descriptorClass) INTERNAL: Method to determine if this ORMetadata should override another. Assumes all ORMetadata have correctly implemented their equals method and will return their correct logging context for any ignore messages. This is called on class level override metadata (and not those from an embedded mapping).
-