Interface LockModel

All Superinterfaces:
com.liferay.portal.kernel.model.BaseModel<Lock>, com.liferay.portal.kernel.model.ClassedModel, Cloneable, Comparable<Lock>, com.liferay.portal.kernel.model.MVCCModel, Serializable, com.liferay.portal.kernel.model.ShardedModel
All Known Subinterfaces:
Lock
All Known Implementing Classes:
LockWrapper

@ProviderType public interface LockModel extends com.liferay.portal.kernel.model.BaseModel<Lock>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.ShardedModel
The base model interface for the Lock service. Represents a row in the "Lock_" database table, with each column mapped to a property of this class.

This interface and its corresponding implementation com.liferay.portal.lock.model.impl.LockModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.portal.lock.model.impl.LockImpl.

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the class name of this lock.
    long
    Returns the company ID of this lock.
    Returns the create date of this lock.
    Returns the expiration date of this lock.
    boolean
    Returns the inheritable of this lock.
    Returns the key of this lock.
    long
    Returns the lock ID of this lock.
    long
    Returns the mvcc version of this lock.
    Returns the owner of this lock.
    long
    Returns the primary key of this lock.
    long
    Returns the user ID of this lock.
    Returns the user name of this lock.
    Returns the user uuid of this lock.
    Returns the uuid of this lock.
    boolean
    Returns true if this lock is inheritable.
    void
    setClassName(String className)
    Sets the class name of this lock.
    void
    setCompanyId(long companyId)
    Sets the company ID of this lock.
    void
    setCreateDate(Date createDate)
    Sets the create date of this lock.
    void
    setExpirationDate(Date expirationDate)
    Sets the expiration date of this lock.
    void
    setInheritable(boolean inheritable)
    Sets whether this lock is inheritable.
    void
    Sets the key of this lock.
    void
    setLockId(long lockId)
    Sets the lock ID of this lock.
    void
    setMvccVersion(long mvccVersion)
    Sets the mvcc version of this lock.
    void
    Sets the owner of this lock.
    void
    setPrimaryKey(long primaryKey)
    Sets the primary key of this lock.
    void
    setUserId(long userId)
    Sets the user ID of this lock.
    void
    setUserName(String userName)
    Sets the user name of this lock.
    void
    setUserUuid(String userUuid)
    Sets the user uuid of this lock.
    void
    Sets the uuid of this lock.
    default String
     

    Methods inherited from interface com.liferay.portal.kernel.model.BaseModel

    clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel

    Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel

    getModelClass, getModelClassName

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • getPrimaryKey

      long getPrimaryKey()
      Returns the primary key of this lock.
      Returns:
      the primary key of this lock
    • setPrimaryKey

      void setPrimaryKey(long primaryKey)
      Sets the primary key of this lock.
      Parameters:
      primaryKey - the primary key of this lock
    • getMvccVersion

      long getMvccVersion()
      Returns the mvcc version of this lock.
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this lock
    • setMvccVersion

      void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this lock.
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this lock
    • getUuid

      @AutoEscape String getUuid()
      Returns the uuid of this lock.
      Returns:
      the uuid of this lock
    • setUuid

      void setUuid(String uuid)
      Sets the uuid of this lock.
      Parameters:
      uuid - the uuid of this lock
    • getLockId

      long getLockId()
      Returns the lock ID of this lock.
      Returns:
      the lock ID of this lock
    • setLockId

      void setLockId(long lockId)
      Sets the lock ID of this lock.
      Parameters:
      lockId - the lock ID of this lock
    • getCompanyId

      long getCompanyId()
      Returns the company ID of this lock.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Returns:
      the company ID of this lock
    • setCompanyId

      void setCompanyId(long companyId)
      Sets the company ID of this lock.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Parameters:
      companyId - the company ID of this lock
    • getUserId

      long getUserId()
      Returns the user ID of this lock.
      Returns:
      the user ID of this lock
    • setUserId

      void setUserId(long userId)
      Sets the user ID of this lock.
      Parameters:
      userId - the user ID of this lock
    • getUserUuid

      String getUserUuid()
      Returns the user uuid of this lock.
      Returns:
      the user uuid of this lock
    • setUserUuid

      void setUserUuid(String userUuid)
      Sets the user uuid of this lock.
      Parameters:
      userUuid - the user uuid of this lock
    • getUserName

      @AutoEscape String getUserName()
      Returns the user name of this lock.
      Returns:
      the user name of this lock
    • setUserName

      void setUserName(String userName)
      Sets the user name of this lock.
      Parameters:
      userName - the user name of this lock
    • getCreateDate

      Date getCreateDate()
      Returns the create date of this lock.
      Returns:
      the create date of this lock
    • setCreateDate

      void setCreateDate(Date createDate)
      Sets the create date of this lock.
      Parameters:
      createDate - the create date of this lock
    • getClassName

      @AutoEscape String getClassName()
      Returns the class name of this lock.
      Returns:
      the class name of this lock
    • setClassName

      void setClassName(String className)
      Sets the class name of this lock.
      Parameters:
      className - the class name of this lock
    • getKey

      @AutoEscape String getKey()
      Returns the key of this lock.
      Returns:
      the key of this lock
    • setKey

      void setKey(String key)
      Sets the key of this lock.
      Parameters:
      key - the key of this lock
    • getOwner

      @AutoEscape String getOwner()
      Returns the owner of this lock.
      Returns:
      the owner of this lock
    • setOwner

      void setOwner(String owner)
      Sets the owner of this lock.
      Parameters:
      owner - the owner of this lock
    • getInheritable

      boolean getInheritable()
      Returns the inheritable of this lock.
      Returns:
      the inheritable of this lock
    • isInheritable

      boolean isInheritable()
      Returns true if this lock is inheritable.
      Returns:
      true if this lock is inheritable; false otherwise
    • setInheritable

      void setInheritable(boolean inheritable)
      Sets whether this lock is inheritable.
      Parameters:
      inheritable - the inheritable of this lock
    • getExpirationDate

      Date getExpirationDate()
      Returns the expiration date of this lock.
      Returns:
      the expiration date of this lock
    • setExpirationDate

      void setExpirationDate(Date expirationDate)
      Sets the expiration date of this lock.
      Parameters:
      expirationDate - the expiration date of this lock
    • cloneWithOriginalValues

      Lock cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<Lock>
    • toXmlString

      default String toXmlString()