Package com.liferay.portal.lock.model
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 -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.getKey()
Returns the key of this lock.long
Returns the lock ID of this lock.long
Returns the mvcc version of this lock.getOwner()
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.getUuid()
Returns the uuid of this lock.boolean
boolean
Returnstrue
if this lock is inheritable.boolean
void
persist()
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
setModelAttributes
(Map<String, Object> attributes) 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
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
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfacecom.liferay.portal.kernel.model.BaseModel<Lock>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfacecom.liferay.portal.kernel.model.BaseModel<Lock>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfacecom.liferay.portal.kernel.model.BaseModel<Lock>
- Specified by:
cloneWithOriginalValues
in interfaceLockModel
-
getClassName
Returns the class name of this lock.- Specified by:
getClassName
in interfaceLockModel
- Returns:
- the class name of this lock
-
getCompanyId
public long getCompanyId()Returns the company ID of this lock.- Specified by:
getCompanyId
in interfaceLockModel
- Specified by:
getCompanyId
in interfacecom.liferay.portal.kernel.model.ShardedModel
- Returns:
- the company ID of this lock
-
getCreateDate
Returns the create date of this lock.- Specified by:
getCreateDate
in interfaceLockModel
- Returns:
- the create date of this lock
-
getExpirationDate
Returns the expiration date of this lock.- Specified by:
getExpirationDate
in interfaceLockModel
- Returns:
- the expiration date of this lock
-
getExpirationTime
public long getExpirationTime()- Specified by:
getExpirationTime
in interfaceLock
-
getInheritable
public boolean getInheritable()Returns the inheritable of this lock.- Specified by:
getInheritable
in interfaceLockModel
- Returns:
- the inheritable of this lock
-
getKey
Returns the key of this lock. -
getLockId
public long getLockId()Returns the lock ID of this lock. -
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this lock.- Specified by:
getMvccVersion
in interfaceLockModel
- Specified by:
getMvccVersion
in interfacecom.liferay.portal.kernel.model.MVCCModel
- Returns:
- the mvcc version of this lock
-
getOwner
Returns the owner of this lock. -
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this lock.- Specified by:
getPrimaryKey
in interfaceLockModel
- Returns:
- the primary key of this lock
-
getUserId
public long getUserId()Returns the user ID of this lock. -
getUserName
Returns the user name of this lock.- Specified by:
getUserName
in interfaceLockModel
- Returns:
- the user name of this lock
-
getUserUuid
Returns the user uuid of this lock.- Specified by:
getUserUuid
in interfaceLockModel
- Returns:
- the user uuid of this lock
-
getUuid
Returns the uuid of this lock. -
isExpired
public boolean isExpired() -
isInheritable
public boolean isInheritable()Returnstrue
if this lock is inheritable.- Specified by:
isInheritable
in interfaceLockModel
- Returns:
true
if this lock is inheritable;false
otherwise
-
isNeverExpires
public boolean isNeverExpires()- Specified by:
isNeverExpires
in interfaceLock
-
persist
public void persist()- Specified by:
persist
in interfacecom.liferay.portal.kernel.model.PersistedModel
-
setClassName
Sets the class name of this lock.- Specified by:
setClassName
in interfaceLockModel
- 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 interfaceLockModel
- Specified by:
setCompanyId
in interfacecom.liferay.portal.kernel.model.ShardedModel
- Parameters:
companyId
- the company ID of this lock
-
setCreateDate
Sets the create date of this lock.- Specified by:
setCreateDate
in interfaceLockModel
- Parameters:
createDate
- the create date of this lock
-
setExpirationDate
Sets the expiration date of this lock.- Specified by:
setExpirationDate
in interfaceLockModel
- Parameters:
expirationDate
- the expiration date of this lock
-
setInheritable
public void setInheritable(boolean inheritable) Sets whether this lock is inheritable.- Specified by:
setInheritable
in interfaceLockModel
- Parameters:
inheritable
- the inheritable of this lock
-
setKey
Sets the key of this lock. -
setLockId
public void setLockId(long lockId) Sets the lock ID of this lock. -
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this lock.- Specified by:
setMvccVersion
in interfaceLockModel
- Specified by:
setMvccVersion
in interfacecom.liferay.portal.kernel.model.MVCCModel
- Parameters:
mvccVersion
- the mvcc version of this lock
-
setOwner
Sets the owner of this lock. -
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this lock.- Specified by:
setPrimaryKey
in interfaceLockModel
- Parameters:
primaryKey
- the primary key of this lock
-
setUserId
public void setUserId(long userId) Sets the user ID of this lock. -
setUserName
Sets the user name of this lock.- Specified by:
setUserName
in interfaceLockModel
- Parameters:
userName
- the user name of this lock
-
setUserUuid
Sets the user uuid of this lock.- Specified by:
setUserUuid
in interfaceLockModel
- Parameters:
userUuid
- the user uuid of this lock
-
setUuid
Sets the uuid of this lock. -
toXmlString
- Specified by:
toXmlString
in interfaceLockModel
-
wrap
- Specified by:
wrap
in classcom.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Lock>
-