Class PrimaryKeyMetadata


  • public class PrimaryKeyMetadata
    extends ORMetadata
    Object to hold onto primary key 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.1
    Author:
    James Sutherland
    See Also:
    PrimaryKey
    • Constructor Detail

      • PrimaryKeyMetadata

        public PrimaryKeyMetadata()
        INTERNAL: Used for XML loading.
    • Method Detail

      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getCacheKeyType

        public String getCacheKeyType()
        INTERNAL: Used for OX mapping.
      • getValidation

        public String getValidation()
        INTERNAL: Used for OX mapping.
      • hasColumns

        public boolean hasColumns()
        INTERNAL:
      • process

        public void process​(MetadataDescriptor descriptor)
        Process the meta-data, configure primary key and idValidation in descriptor.
      • setCacheKeyType

        public void setCacheKeyType​(String cacheKeyType)
        INTERNAL: Used for OX mapping.
      • setColumns

        public void setColumns​(List<ColumnMetadata> columns)
        INTERNAL: Used for OX mapping.
      • setValidation

        public void setValidation​(String validation)
        INTERNAL: Used for OX mapping.