Interface OptimisticLocking

All Known Subinterfaces:
DMSDocForm, DMSFolder, DMSFolderForm, DMSForm, DMSLink, DMSNote, DMSObject, DMSWebLink
All Known Implementing Classes:
CheckedPersistent

public interface OptimisticLocking
Optimistically locked objects have a long transactionid field in the database table and java class. On update we compare them. The methods are used internally by @enterprise. The abstract CheckedPersistent class provides implementations for those methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the transactionid of the object.
    void
    Increase the transactionid of the object.
    void
    setTransactionId(long tid)
    Set the transactionid of the object.
  • Method Details

    • getTransactionId

      long getTransactionId()
      Get the transactionid of the object.
      Returns:
      the objects transactionid.
    • setTransactionId

      void setTransactionId(long tid)
      Set the transactionid of the object.
      Parameters:
      tid - the new transactionid.
    • increaseTransactionId

      void increaseTransactionId()
      Increase the transactionid of the object.