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 |
---|---|
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, toXmlString
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
public 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 java.lang.String getClassName()
getClassName
in interface LockModel
public long getCompanyId()
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
getCompanyId
in interface LockModel
public java.util.Date getCreateDate()
getCreateDate
in interface LockModel
public java.util.Date getExpirationDate()
getExpirationDate
in interface LockModel
public long getExpirationTime()
getExpirationTime
in interface Lock
public boolean getInheritable()
getInheritable
in interface LockModel
public java.lang.String getKey()
public long getLockId()
public long getMvccVersion()
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
getMvccVersion
in interface LockModel
public java.lang.String getOwner()
public long getPrimaryKey()
getPrimaryKey
in interface LockModel
public long getUserId()
public java.lang.String getUserName()
getUserName
in interface LockModel
public java.lang.String getUserUuid()
getUserUuid
in interface LockModel
public java.lang.String getUuid()
public boolean isInheritable()
true
if this lock is inheritable.isInheritable
in interface LockModel
true
if this lock is inheritable; false
otherwisepublic boolean isNeverExpires()
isNeverExpires
in interface Lock
public void persist()
persist
in interface com.liferay.portal.kernel.model.PersistedModel
public void setClassName(java.lang.String className)
setClassName
in interface LockModel
className
- the class name of this lockpublic void setCompanyId(long companyId)
setCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
setCompanyId
in interface LockModel
companyId
- the company ID of this lockpublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface LockModel
createDate
- the create date of this lockpublic void setExpirationDate(java.util.Date expirationDate)
setExpirationDate
in interface LockModel
expirationDate
- the expiration date of this lockpublic void setInheritable(boolean inheritable)
setInheritable
in interface LockModel
inheritable
- 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.MVCCModel
setMvccVersion
in interface LockModel
mvccVersion
- the mvcc version of this lockpublic void setOwner(java.lang.String owner)
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface LockModel
primaryKey
- the primary key of this lockpublic void setUserId(long userId)
public void setUserName(java.lang.String userName)
setUserName
in interface LockModel
userName
- the user name of this lockpublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface LockModel
userUuid
- 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>