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.
Lock,
Serialized FormLOCK_ID_ACCESSOR| Constructor and Description |
|---|
LockWrapper(Lock lock) |
| Modifier and Type | Method and Description |
|---|---|
Lock |
cloneWithOriginalValues() |
java.lang.String |
getClassName()
Returns the class name of this lock.
|
long |
getCompanyId()
Returns the company ID of this lock.
|
java.util.Date |
getCreateDate()
Returns the create date of this lock.
|
java.util.Date |
getExpirationDate()
Returns the expiration date of this lock.
|
long |
getExpirationTime() |
boolean |
getInheritable()
Returns the inheritable of this lock.
|
java.lang.String |
getKey()
Returns the key of this lock.
|
long |
getLockId()
Returns the lock ID of this lock.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
long |
getMvccVersion()
Returns the mvcc version of this lock.
|
java.lang.String |
getOwner()
Returns the owner of this lock.
|
long |
getPrimaryKey()
Returns the primary key of this lock.
|
long |
getUserId()
Returns the user ID of this lock.
|
java.lang.String |
getUserName()
Returns the user name of this lock.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this lock.
|
java.lang.String |
getUuid()
Returns the uuid of this lock.
|
boolean |
isExpired() |
boolean |
isInheritable()
Returns
true if this lock is inheritable. |
boolean |
isNeverExpires() |
void |
persist() |
void |
setClassName(java.lang.String className)
Sets the class name of this lock.
|
void |
setCompanyId(long companyId)
Sets the company ID of this lock.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this lock.
|
void |
setExpirationDate(java.util.Date expirationDate)
Sets the expiration date of this lock.
|
void |
setInheritable(boolean inheritable)
Sets whether this lock is inheritable.
|
void |
setKey(java.lang.String key)
Sets the key of this lock.
|
void |
setLockId(long lockId)
Sets the lock ID of this lock.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this lock.
|
void |
setOwner(java.lang.String owner)
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(java.lang.String userName)
Sets the user name of this lock.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this lock.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this lock.
|
protected LockWrapper |
wrap(Lock lock) |
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, toXmlStringfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringpublic LockWrapper(Lock lock)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<Lock>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<Lock>public Lock cloneWithOriginalValues()
cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<Lock>cloneWithOriginalValues in interface LockModelpublic java.lang.String getClassName()
getClassName in interface LockModelpublic long getCompanyId()
getCompanyId in interface com.liferay.portal.kernel.model.ShardedModelgetCompanyId in interface LockModelpublic java.util.Date getCreateDate()
getCreateDate in interface LockModelpublic java.util.Date getExpirationDate()
getExpirationDate in interface LockModelpublic long getExpirationTime()
getExpirationTime in interface Lockpublic boolean getInheritable()
getInheritable in interface LockModelpublic java.lang.String getKey()
public long getLockId()
public long getMvccVersion()
getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelgetMvccVersion in interface LockModelpublic java.lang.String getOwner()
public long getPrimaryKey()
getPrimaryKey in interface LockModelpublic long getUserId()
public java.lang.String getUserName()
getUserName in interface LockModelpublic java.lang.String getUserUuid()
getUserUuid in interface LockModelpublic java.lang.String getUuid()
public boolean isInheritable()
true if this lock is inheritable.isInheritable in interface LockModeltrue if this lock is inheritable; false otherwisepublic boolean isNeverExpires()
isNeverExpires in interface Lockpublic void persist()
persist in interface com.liferay.portal.kernel.model.PersistedModelpublic void setClassName(java.lang.String className)
setClassName in interface LockModelclassName - the class name of this lockpublic void setCompanyId(long companyId)
setCompanyId in interface com.liferay.portal.kernel.model.ShardedModelsetCompanyId in interface LockModelcompanyId - the company ID of this lockpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface LockModelcreateDate - the create date of this lockpublic void setExpirationDate(java.util.Date expirationDate)
setExpirationDate in interface LockModelexpirationDate - the expiration date of this lockpublic void setInheritable(boolean inheritable)
setInheritable in interface LockModelinheritable - the inheritable of this lockpublic void setKey(java.lang.String key)
public void setLockId(long lockId)
public void setMvccVersion(long mvccVersion)
setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelsetMvccVersion in interface LockModelmvccVersion - the mvcc version of this lockpublic void setOwner(java.lang.String owner)
public void setPrimaryKey(long primaryKey)
setPrimaryKey in interface LockModelprimaryKey - the primary key of this lockpublic void setUserId(long userId)
public void setUserName(java.lang.String userName)
setUserName in interface LockModeluserName - the user name of this lockpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface LockModeluserUuid - the user uuid of this lockpublic void setUuid(java.lang.String uuid)
protected LockWrapper wrap(Lock lock)
wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Lock>