java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.columns.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
See Also:
  • Constructor Details

    • PrimaryKeyMetadata

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

      public PrimaryKeyMetadata(MetadataAnnotation primaryKey, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
  • Method Details

    • 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.
    • getColumns

      public List<ColumnMetadata> getColumns()
      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.