java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata

public class OptimisticLockingMetadata extends ORMetadata
Object to hold onto optimistic locking 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:
TopLink 11g
  • Constructor Details

    • OptimisticLockingMetadata

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

      public OptimisticLockingMetadata(MetadataAnnotation optimisticLocking, 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
    • getCascade

      public Boolean getCascade()
      INTERNAL: Used for OX mapping.
    • getSelectedColumns

      public List<ColumnMetadata> getSelectedColumns()
      INTERNAL: Used for OX mapping.
    • getType

      public String getType()
      INTERNAL: Used for OX mapping.
    • hasSelectedColumns

      public boolean hasSelectedColumns()
      INTERNAL:
    • process

      public void process(MetadataDescriptor descriptor)
      INTERNAL:
    • setCascade

      public void setCascade(Boolean cascade)
      INTERNAL: Used for OX mapping.
    • setSelectedColumns

      public void setSelectedColumns(List<ColumnMetadata> selectedColumns)
      INTERNAL: Used for OX mapping.
    • setType

      public void setType(String type)
      INTERNAL: Used for OX mapping.