Class LockWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Lock>
com.liferay.portal.lock.model.LockWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.model.BaseModel<Lock>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.ModelWrapper<Lock>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, Lock, LockModel, Serializable, Cloneable, Comparable<Lock>

public class LockWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Lock> implements Lock, com.liferay.portal.kernel.model.ModelWrapper<Lock>

This class is a wrapper for Lock.

See Also:
Generated:
  • Field Summary

    Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper

    model

    Fields inherited from interface com.liferay.portal.lock.model.Lock

    LOCK_ID_ACCESSOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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.
    long
     
    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
     
    boolean
    Returns true if this lock is inheritable.
    boolean
     
    void
     
    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
     
    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.
     
    protected LockWrapper
    wrap(Lock lock)
     

    Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper

    clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

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

    clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, 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

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

    getWrappedModel
  • Constructor Details

    • LockWrapper

      public LockWrapper(Lock lock)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<Lock>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<Lock>
    • cloneWithOriginalValues

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

      public String getClassName()
      Returns the class name of this lock.
      Specified by:
      getClassName in interface LockModel
      Returns:
      the class name of this lock
    • getCompanyId

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

      public Date getCreateDate()
      Returns the create date of this lock.
      Specified by:
      getCreateDate in interface LockModel
      Returns:
      the create date of this lock
    • getExpirationDate

      public Date getExpirationDate()
      Returns the expiration date of this lock.
      Specified by:
      getExpirationDate in interface LockModel
      Returns:
      the expiration date of this lock
    • getExpirationTime

      public long getExpirationTime()
      Specified by:
      getExpirationTime in interface Lock
    • getInheritable

      public boolean getInheritable()
      Returns the inheritable of this lock.
      Specified by:
      getInheritable in interface LockModel
      Returns:
      the inheritable of this lock
    • getKey

      public String getKey()
      Returns the key of this lock.
      Specified by:
      getKey in interface LockModel
      Returns:
      the key of this lock
    • getLockId

      public long getLockId()
      Returns the lock ID of this lock.
      Specified by:
      getLockId in interface LockModel
      Returns:
      the lock ID of this lock
    • getMvccVersion

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

      public String getOwner()
      Returns the owner of this lock.
      Specified by:
      getOwner in interface LockModel
      Returns:
      the owner of this lock
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this lock.
      Specified by:
      getPrimaryKey in interface LockModel
      Returns:
      the primary key of this lock
    • getUserId

      public long getUserId()
      Returns the user ID of this lock.
      Specified by:
      getUserId in interface LockModel
      Returns:
      the user ID of this lock
    • getUserName

      public String getUserName()
      Returns the user name of this lock.
      Specified by:
      getUserName in interface LockModel
      Returns:
      the user name of this lock
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this lock.
      Specified by:
      getUserUuid in interface LockModel
      Returns:
      the user uuid of this lock
    • getUuid

      public String getUuid()
      Returns the uuid of this lock.
      Specified by:
      getUuid in interface LockModel
      Returns:
      the uuid of this lock
    • isExpired

      public boolean isExpired()
      Specified by:
      isExpired in interface Lock
    • isInheritable

      public boolean isInheritable()
      Returns true if this lock is inheritable.
      Specified by:
      isInheritable in interface LockModel
      Returns:
      true if this lock is inheritable; false otherwise
    • isNeverExpires

      public boolean isNeverExpires()
      Specified by:
      isNeverExpires in interface Lock
    • persist

      public void persist()
      Specified by:
      persist in interface com.liferay.portal.kernel.model.PersistedModel
    • setClassName

      public void setClassName(String className)
      Sets the class name of this lock.
      Specified by:
      setClassName in interface LockModel
      Parameters:
      className - the class name of this lock
    • setCompanyId

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

      public void setCreateDate(Date createDate)
      Sets the create date of this lock.
      Specified by:
      setCreateDate in interface LockModel
      Parameters:
      createDate - the create date of this lock
    • setExpirationDate

      public void setExpirationDate(Date expirationDate)
      Sets the expiration date of this lock.
      Specified by:
      setExpirationDate in interface LockModel
      Parameters:
      expirationDate - the expiration date of this lock
    • setInheritable

      public void setInheritable(boolean inheritable)
      Sets whether this lock is inheritable.
      Specified by:
      setInheritable in interface LockModel
      Parameters:
      inheritable - the inheritable of this lock
    • setKey

      public void setKey(String key)
      Sets the key of this lock.
      Specified by:
      setKey in interface LockModel
      Parameters:
      key - the key of this lock
    • setLockId

      public void setLockId(long lockId)
      Sets the lock ID of this lock.
      Specified by:
      setLockId in interface LockModel
      Parameters:
      lockId - the lock ID of this lock
    • setMvccVersion

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

      public void setOwner(String owner)
      Sets the owner of this lock.
      Specified by:
      setOwner in interface LockModel
      Parameters:
      owner - the owner of this lock
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this lock.
      Specified by:
      setPrimaryKey in interface LockModel
      Parameters:
      primaryKey - the primary key of this lock
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this lock.
      Specified by:
      setUserId in interface LockModel
      Parameters:
      userId - the user ID of this lock
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this lock.
      Specified by:
      setUserName in interface LockModel
      Parameters:
      userName - the user name of this lock
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this lock.
      Specified by:
      setUserUuid in interface LockModel
      Parameters:
      userUuid - the user uuid of this lock
    • setUuid

      public void setUuid(String uuid)
      Sets the uuid of this lock.
      Specified by:
      setUuid in interface LockModel
      Parameters:
      uuid - the uuid of this lock
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface LockModel
    • wrap

      protected LockWrapper wrap(Lock lock)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Lock>