Class OverrideMetadata

  • Direct Known Subclasses:
    AssociationOverrideMetadata, AttributeOverrideMetadata

    public abstract class OverrideMetadata
    extends ORMetadata
    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
    Author:
    Guy Pelletier
    • Constructor Detail

      • OverrideMetadata

        protected OverrideMetadata​(java.lang.String xmlElement)
        INTERNAL: Used for XML loading.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        INTERNAL:
        Specified by:
        equals in class ORMetadata
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getIgnoreMappedSuperclassContext

        public abstract java.lang.String getIgnoreMappedSuperclassContext()
        INTERNAL:
      • getName

        public java.lang.String getName()
        INTERNAL: Used for OX mapping.
      • setName

        public void setName​(java.lang.String name)
        INTERNAL: Used for OX mapping.
      • shouldOverride

        public boolean shouldOverride​(OverrideMetadata existing,
                                      MetadataLogger logger,
                                      java.lang.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).