Liferay 6.1.2-ce-ga3

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>, PersistedModel, Serializable, Cloneable, Comparable<Lock>

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

This class is a wrapper for Lock.

See Also:
Lock, Serialized Form

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()
           
 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. Renamed to getWrappedModel()
 Lock getWrappedModel()
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isExpired()
           
 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(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 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>

getPrimaryKey

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

Specified by:
getPrimaryKey in interface LockModel
Returns:
the primary key 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

getUuid

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

Specified by:
getUuid in interface LockModel
Returns:
the 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

getLockId

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

Specified by:
getLockId in interface LockModel
Returns:
the lock ID 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

getCompanyId

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

Specified by:
getCompanyId in interface LockModel
Returns:
the company ID 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

getUserId

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

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

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

getUserUuid

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

Specified by:
getUserUuid in interface LockModel
Returns:
the user uuid of this lock
Throws:
SystemException - if a system exception occurred

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

getUserName

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

Specified by:
getUserName in interface LockModel
Returns:
the user name 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

getCreateDate

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

Specified by:
getCreateDate in interface LockModel
Returns:
the create date 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

getClassName

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

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

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

getKey

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

Specified by:
getKey in interface LockModel
Returns:
the key 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

getOwner

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

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

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

getInheritable

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

Specified by:
getInheritable in interface LockModel
Returns:
the inheritable of this 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

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

getExpirationDate

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

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

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

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

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

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)

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

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

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

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

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

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
See Also:
ServiceContext.getExpandoBridgeAttributes( )

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>

hashCode

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

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

toUnescapedModel

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

toString

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

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

persist

public void persist()
             throws SystemException
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
Throws:
SystemException - if a system exception occurred

getExpirationTime

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

isExpired

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

isNeverExpires

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

equals

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

getWrappedLock

public Lock getWrappedLock()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<Lock>

Liferay 6.1.2-ce-ga3