java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.tables.UniqueConstraintMetadata

public class UniqueConstraintMetadata extends ORMetadata
INTERNAL: Object to hold onto a unique constraint 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.
  • Constructor Details

    • UniqueConstraintMetadata

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

      public UniqueConstraintMetadata(MetadataAnnotation uniqueConstraint, 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
    • getColumnNames

      public List<String> getColumnNames()
      INTERNAL: Used for OX mapping.
    • getName

      public String getName()
      INTERNAL: Used for OX mapping.
    • hasName

      public boolean hasName()
      INTERNAL: Return true if a name has been specified for this unique constraint.
    • setColumnNames

      public void setColumnNames(List<String> columnNames)
      INTERNAL: Used for OX mapping.
    • setName

      public void setName(String name)
      INTERNAL: Used for OX mapping.