Class LockInfo

java.lang.Object
io.jmix.pessimisticlock.entity.LockInfo
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LockNotSupported

public class LockInfo extends Object implements Serializable
Describes a pessimistic lock of an object.
See Also:
  • Field Details

    • id

      protected UUID id
  • Constructor Details

  • Method Details

    • getId

      public UUID getId()
    • setId

      public void setId(UUID id)
    • getObjectId

      public String getObjectId()
      Returns:
      locked object id
    • getObjectType

      public String getObjectType()
      Returns:
      locked object type
    • getSince

      public Date getSince()
      Returns:
      when the lock occurred
    • getUsername

      public String getUsername()
      Returns:
      username of the user which holds the lock
    • toString

      public String toString()
      Overrides:
      toString in class Object