@ProviderType public class LockWrapper extends java.lang.Object 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.Object |
clone() |
int |
compareTo(Lock lock) |
boolean |
equals(java.lang.Object obj) |
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.
|
com.liferay.expando.kernel.model.ExpandoBridge |
getExpandoBridge() |
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() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
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.
|
java.io.Serializable |
getPrimaryKeyObj() |
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.
|
Lock |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel() |
boolean |
isEntityCacheEnabled() |
boolean |
isEscapedModel() |
boolean |
isExpired() |
boolean |
isFinderCacheEnabled() |
boolean |
isInheritable()
Returns
true if this lock is inheritable. |
boolean |
isNeverExpires() |
boolean |
isNew() |
void |
persist() |
void |
resetOriginalValues() |
void |
setCachedModel(boolean cachedModel) |
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 |
setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext) |
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 |
setNew(boolean n) |
void |
setOwner(java.lang.String owner)
Sets the owner of this lock.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this lock.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj) |
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.
|
com.liferay.portal.kernel.model.CacheModel<Lock> |
toCacheModel() |
Lock |
toEscapedModel() |
java.lang.String |
toString() |
Lock |
toUnescapedModel() |
java.lang.String |
toXmlString() |
public LockWrapper(Lock lock)
public java.lang.Class<?> getModelClass()
getModelClass in interface com.liferay.portal.kernel.model.ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface com.liferay.portal.kernel.model.ClassedModelpublic 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 toEscapedModel()
toEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<Lock>toEscapedModel in interface LockModelpublic Lock toUnescapedModel()
toUnescapedModel in interface com.liferay.portal.kernel.model.BaseModel<Lock>toUnescapedModel in interface LockModelpublic boolean getInheritable()
getInheritable in interface LockModelpublic boolean isCachedModel()
isCachedModel in interface com.liferay.portal.kernel.model.BaseModel<Lock>isCachedModel in interface LockModelpublic boolean isEscapedModel()
isEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<Lock>isEscapedModel in interface LockModelpublic 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 boolean isNew()
public com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
getExpandoBridge in interface com.liferay.portal.kernel.model.BaseModel<Lock>getExpandoBridge in interface com.liferay.portal.kernel.model.ClassedModelgetExpandoBridge in interface LockModelpublic com.liferay.portal.kernel.model.CacheModel<Lock> toCacheModel()
toCacheModel in interface com.liferay.portal.kernel.model.BaseModel<Lock>toCacheModel in interface LockModelpublic int compareTo(Lock lock)
public int hashCode()
public java.io.Serializable getPrimaryKeyObj()
getPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<Lock>getPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModelgetPrimaryKeyObj in interface LockModelpublic java.lang.Object clone()
public java.lang.String getClassName()
getClassName in interface LockModelpublic java.lang.String getKey()
public java.lang.String getOwner()
public java.lang.String getUserName()
getUserName in interface LockModelpublic java.lang.String getUserUuid()
getUserUuid in interface LockModelpublic java.lang.String getUuid()
public java.lang.String toString()
public java.lang.String toXmlString()
toXmlString in interface com.liferay.portal.kernel.model.BaseModel<Lock>toXmlString in interface LockModelpublic java.util.Date getCreateDate()
getCreateDate in interface LockModelpublic java.util.Date getExpirationDate()
getExpirationDate in interface LockModelpublic long getCompanyId()
getCompanyId in interface com.liferay.portal.kernel.model.ShardedModelgetCompanyId in interface LockModelpublic long getExpirationTime()
getExpirationTime in interface Lockpublic long getLockId()
public long getMvccVersion()
getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelgetMvccVersion in interface LockModelpublic long getPrimaryKey()
getPrimaryKey in interface LockModelpublic long getUserId()
public void persist()
persist in interface com.liferay.portal.kernel.model.PersistedModelpublic void setCachedModel(boolean cachedModel)
setCachedModel in interface com.liferay.portal.kernel.model.BaseModel<Lock>setCachedModel in interface LockModelpublic 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 setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<Lock>setExpandoBridgeAttributes in interface LockModelpublic void setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<Lock>setExpandoBridgeAttributes in interface LockModelpublic void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<Lock>setExpandoBridgeAttributes in interface LockModelpublic 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 setNew(boolean n)
public void setOwner(java.lang.String owner)
public void setPrimaryKey(long primaryKey)
setPrimaryKey in interface LockModelprimaryKey - the primary key of this lockpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
setPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<Lock>setPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModelsetPrimaryKeyObj in interface LockModelpublic 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)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Lock getWrappedModel()
getWrappedModel in interface com.liferay.portal.kernel.model.ModelWrapper<Lock>public boolean isEntityCacheEnabled()
isEntityCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<Lock>public boolean isFinderCacheEnabled()
isFinderCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<Lock>public void resetOriginalValues()
resetOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<Lock>