Liferay 7.0-ce-m3

com.liferay.portal.model
Class LockWrapper

java.lang.Object
  extended by com.liferay.portal.model.LockWrapper
All Implemented Interfaces:
BaseModel<Lock>, ClassedModel, Lock, LockModel, ModelWrapper<Lock>, MVCCModel, PersistedModel, Serializable, Cloneable, Comparable<Lock>

@ProviderType
public class LockWrapper
extends Object
implements Lock, ModelWrapper<Lock>

This class is a wrapper for Lock.

See Also:
Lock, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
LockWrapper(Lock lock)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Lock lock)
           
 boolean equals(Object obj)
           
 String getClassName()
          Returns the class name of this lock.
 long getCompanyId()
          Returns the company ID of this lock.
 Date getCreateDate()
          Returns the create date of this lock.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Date getExpirationDate()
          Returns the expiration date of this lock.
 long getExpirationTime()
           
 boolean getInheritable()
          Returns the inheritable of this lock.
 String getKey()
          Returns the key of this lock.
 long getLockId()
          Returns the lock ID of this lock.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 long getMvccVersion()
          Returns the mvcc version of this lock.
 String getOwner()
          Returns the owner of this lock.
 long getPrimaryKey()
          Returns the primary key of this lock.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getUserId()
          Returns the user ID of this lock.
 String getUserName()
          Returns the user name of this lock.
 String getUserUuid()
          Returns the user uuid of this lock.
 String getUuid()
          Returns the uuid of this lock.
 Lock getWrappedLock()
          Deprecated. As of 6.1.0, replaced by getWrappedModel()
 Lock getWrappedModel()
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEntityCacheEnabled()
          Returns true if this model's entity cache is enabled.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isExpired()
           
 boolean isFinderCacheEnabled()
          Returns true if this model's finder cache is enabled.
 boolean isInheritable()
          Returns true if this lock is inheritable.
 boolean isNeverExpires()
           
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 void persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 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 setExpandoBridgeAttributes(BaseModel<?> baseModel)
           
 void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
           
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setExpirationDate(Date expirationDate)
          Sets the expiration date of this lock.
 void setInheritable(boolean inheritable)
          Sets whether this lock is inheritable.
 void setKey(String key)
          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 setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setOwner(String owner)
          Sets the owner of this lock.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this lock.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 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 setUuid(String uuid)
          Sets the uuid of this lock.
 CacheModel<Lock> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 Lock toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 Lock toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LockWrapper

public LockWrapper(Lock lock)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<Lock>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<Lock>

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<Lock>
Specified by:
clone in interface LockModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Lock lock)
Specified by:
compareTo in interface LockModel
Specified by:
compareTo in interface Comparable<Lock>

getClassName

public String getClassName()
Returns the class name of this lock.

Specified by:
getClassName in interface LockModel
Returns:
the class name of this lock

getCompanyId

public long getCompanyId()
Returns the company ID of this lock.

Specified by:
getCompanyId in interface LockModel
Returns:
the company ID of this lock

getCreateDate

public Date getCreateDate()
Returns the create date of this lock.

Specified by:
getCreateDate in interface LockModel
Returns:
the create date of this lock

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<Lock>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface LockModel
Returns:
the expando bridge for this model instance

getExpirationDate

public Date getExpirationDate()
Returns the expiration date of this lock.

Specified by:
getExpirationDate in interface LockModel
Returns:
the expiration date of this lock

getExpirationTime

public long getExpirationTime()
Specified by:
getExpirationTime in interface Lock

getInheritable

public boolean getInheritable()
Returns the inheritable of this lock.

Specified by:
getInheritable in interface LockModel
Returns:
the inheritable of this lock

getKey

public String getKey()
Returns the key of this lock.

Specified by:
getKey in interface LockModel
Returns:
the key of this lock

getLockId

public long getLockId()
Returns the lock ID of this lock.

Specified by:
getLockId in interface LockModel
Returns:
the lock ID of this lock

getMvccVersion

public long getMvccVersion()
Returns the mvcc version of this lock.

Specified by:
getMvccVersion in interface LockModel
Specified by:
getMvccVersion in interface MVCCModel
Returns:
the mvcc version of this lock

getOwner

public String getOwner()
Returns the owner of this lock.

Specified by:
getOwner in interface LockModel
Returns:
the owner of this lock

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this lock.

Specified by:
getPrimaryKey in interface LockModel
Returns:
the primary key of this lock

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<Lock>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface LockModel
Returns:
the primary key of this model instance

getUserId

public long getUserId()
Returns the user ID of this lock.

Specified by:
getUserId in interface LockModel
Returns:
the user ID of this lock

getUserName

public String getUserName()
Returns the user name of this lock.

Specified by:
getUserName in interface LockModel
Returns:
the user name of this lock

getUserUuid

public String getUserUuid()
Returns the user uuid of this lock.

Specified by:
getUserUuid in interface LockModel
Returns:
the user uuid of this lock

getUuid

public String getUuid()
Returns the uuid of this lock.

Specified by:
getUuid in interface LockModel
Returns:
the uuid of this lock

hashCode

public int hashCode()
Specified by:
hashCode in interface LockModel
Overrides:
hashCode in class Object

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<Lock>
Specified by:
isCachedModel in interface LockModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<Lock>
Specified by:
isEscapedModel in interface LockModel
Returns:
true if this model instance is escaped; false otherwise

isExpired

public boolean isExpired()
Specified by:
isExpired in interface Lock

isInheritable

public boolean isInheritable()
Returns true if this lock is inheritable.

Specified by:
isInheritable in interface LockModel
Returns:
true if this lock is inheritable; false otherwise

isNeverExpires

public boolean isNeverExpires()
Specified by:
isNeverExpires in interface Lock

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<Lock>
Specified by:
isNew in interface LockModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

persist

public void persist()
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<Lock>
Specified by:
setCachedModel in interface LockModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

setClassName

public void setClassName(String className)
Sets the class name of this lock.

Specified by:
setClassName in interface LockModel
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 interface LockModel
Parameters:
companyId - the company ID of this lock

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this lock.

Specified by:
setCreateDate in interface LockModel
Parameters:
createDate - the create date of this lock

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Lock>
Specified by:
setExpandoBridgeAttributes in interface LockModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Lock>
Specified by:
setExpandoBridgeAttributes in interface LockModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<Lock>
Specified by:
setExpandoBridgeAttributes in interface LockModel
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

setExpirationDate

public void setExpirationDate(Date expirationDate)
Sets the expiration date of this lock.

Specified by:
setExpirationDate in interface LockModel
Parameters:
expirationDate - the expiration date of this lock

setInheritable

public void setInheritable(boolean inheritable)
Sets whether this lock is inheritable.

Specified by:
setInheritable in interface LockModel
Parameters:
inheritable - the inheritable of this lock

setKey

public void setKey(String key)
Sets the key of this lock.

Specified by:
setKey in interface LockModel
Parameters:
key - the key of this lock

setLockId

public void setLockId(long lockId)
Sets the lock ID of this lock.

Specified by:
setLockId in interface LockModel
Parameters:
lockId - the lock ID of this lock

setMvccVersion

public void setMvccVersion(long mvccVersion)
Sets the mvcc version of this lock.

Specified by:
setMvccVersion in interface LockModel
Specified by:
setMvccVersion in interface MVCCModel
Parameters:
mvccVersion - the mvcc version of this lock

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<Lock>
Specified by:
setNew in interface LockModel
Parameters:
n - whether this model instance does not yet exist in the database

setOwner

public void setOwner(String owner)
Sets the owner of this lock.

Specified by:
setOwner in interface LockModel
Parameters:
owner - the owner of this lock

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this lock.

Specified by:
setPrimaryKey in interface LockModel
Parameters:
primaryKey - the primary key of this lock

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<Lock>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface LockModel
Parameters:
primaryKeyObj - the primary key of this model instance

setUserId

public void setUserId(long userId)
Sets the user ID of this lock.

Specified by:
setUserId in interface LockModel
Parameters:
userId - the user ID of this lock

setUserName

public void setUserName(String userName)
Sets the user name of this lock.

Specified by:
setUserName in interface LockModel
Parameters:
userName - the user name of this lock

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this lock.

Specified by:
setUserUuid in interface LockModel
Parameters:
userUuid - the user uuid of this lock

setUuid

public void setUuid(String uuid)
Sets the uuid of this lock.

Specified by:
setUuid in interface LockModel
Parameters:
uuid - the uuid of this lock

toCacheModel

public CacheModel<Lock> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<Lock>
Specified by:
toCacheModel in interface LockModel
Returns:
the cache model object

toEscapedModel

public Lock toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<Lock>
Specified by:
toEscapedModel in interface LockModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toString

public String toString()
Specified by:
toString in interface LockModel
Overrides:
toString in class Object

toUnescapedModel

public Lock toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<Lock>
Specified by:
toUnescapedModel in interface LockModel

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<Lock>
Specified by:
toXmlString in interface LockModel
Returns:
the XML representation of this model instance

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getWrappedLock

@Deprecated
public Lock getWrappedLock()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

public Lock getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<Lock>

isEntityCacheEnabled

public boolean isEntityCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's entity cache is enabled.

Specified by:
isEntityCacheEnabled in interface BaseModel<Lock>
Returns:
true if this model's entity cache is enabled; false otherwise

isFinderCacheEnabled

public boolean isFinderCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's finder cache is enabled.

Specified by:
isFinderCacheEnabled in interface BaseModel<Lock>
Returns:
true if this model's finder cache is enabled; false otherwise

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<Lock>

Liferay 7.0-ce-m3