@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.ClassedModel
public java.lang.String getModelClassName()
getModelClassName
in interface com.liferay.portal.kernel.model.ClassedModel
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 toEscapedModel()
toEscapedModel
in interface com.liferay.portal.kernel.model.BaseModel<Lock>
toEscapedModel
in interface LockModel
public Lock toUnescapedModel()
toUnescapedModel
in interface com.liferay.portal.kernel.model.BaseModel<Lock>
toUnescapedModel
in interface LockModel
public boolean getInheritable()
getInheritable
in interface LockModel
public boolean isCachedModel()
isCachedModel
in interface com.liferay.portal.kernel.model.BaseModel<Lock>
isCachedModel
in interface LockModel
public boolean isEscapedModel()
isEscapedModel
in interface com.liferay.portal.kernel.model.BaseModel<Lock>
isEscapedModel
in interface LockModel
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 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.ClassedModel
getExpandoBridge
in interface LockModel
public com.liferay.portal.kernel.model.CacheModel<Lock> toCacheModel()
toCacheModel
in interface com.liferay.portal.kernel.model.BaseModel<Lock>
toCacheModel
in interface LockModel
public 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.ClassedModel
getPrimaryKeyObj
in interface LockModel
public java.lang.Object clone()
public java.lang.String getClassName()
getClassName
in interface LockModel
public java.lang.String getKey()
public java.lang.String getOwner()
public java.lang.String getUserName()
getUserName
in interface LockModel
public java.lang.String getUserUuid()
getUserUuid
in interface LockModel
public 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 LockModel
public java.util.Date getCreateDate()
getCreateDate
in interface LockModel
public java.util.Date getExpirationDate()
getExpirationDate
in interface LockModel
public long getCompanyId()
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
getCompanyId
in interface LockModel
public long getExpirationTime()
getExpirationTime
in interface Lock
public long getLockId()
public long getMvccVersion()
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
getMvccVersion
in interface LockModel
public long getPrimaryKey()
getPrimaryKey
in interface LockModel
public long getUserId()
public void persist()
persist
in interface com.liferay.portal.kernel.model.PersistedModel
public void setCachedModel(boolean cachedModel)
setCachedModel
in interface com.liferay.portal.kernel.model.BaseModel<Lock>
setCachedModel
in interface LockModel
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 setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface com.liferay.portal.kernel.model.BaseModel<Lock>
setExpandoBridgeAttributes
in interface LockModel
public void setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface com.liferay.portal.kernel.model.BaseModel<Lock>
setExpandoBridgeAttributes
in interface LockModel
public void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
setExpandoBridgeAttributes
in interface com.liferay.portal.kernel.model.BaseModel<Lock>
setExpandoBridgeAttributes
in interface LockModel
public 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 setNew(boolean n)
public void setOwner(java.lang.String owner)
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface LockModel
primaryKey
- 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.ClassedModel
setPrimaryKeyObj
in interface LockModel
public 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)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public 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>