Liferay 6.0.5

com.liferay.portal.model
Class LockWrapper

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

public class LockWrapper
extends Object
implements 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 is generated.

Constructor Summary
LockWrapper(Lock lock)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Lock lock)
           
 String getClassName()
          Gets the class name of this lock.
 long getCompanyId()
          Gets the company id of this lock.
 Date getCreateDate()
          Gets the create date of this lock.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 Date getExpirationDate()
          Gets the expiration date of this lock.
 long getExpirationTime()
           
 boolean getInheritable()
          Gets the inheritable of this lock.
 String getKey()
          Gets the key of this lock.
 long getLockId()
          Gets the lock id of this lock.
 String getOwner()
          Gets the owner of this lock.
 long getPrimaryKey()
          Gets the primary key of this lock.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 long getUserId()
          Gets the user id of this lock.
 String getUserName()
          Gets the user name of this lock.
 String getUserUuid()
          Gets the user uuid of this lock.
 String getUuid()
          Gets the uuid of this lock.
 Lock getWrappedLock()
           
 int hashCode()
           
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Determines if this model instance is escaped.
 boolean isExpired()
           
 boolean isInheritable()
          Determines whether this lock is inheritable.
 boolean isNeverExpires()
           
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 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 setEscapedModel(boolean escapedModel)
          Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.
 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 {$entity.humanName} is inheritable.
 void setKey(String key)
          Sets the key of this lock.
 void setLockId(long lockId)
          Sets the lock id 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 pk)
          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 setUuid(String uuid)
          Sets the uuid of this lock.
 Lock toEscapedModel()
          Gets a copy of this lock as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LockWrapper

public LockWrapper(Lock lock)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: LockModel
Gets the primary key of this lock.

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

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: LockModel
Sets the primary key of this lock

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

getUuid

public String getUuid()
Description copied from interface: LockModel
Gets the uuid of this lock.

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

setUuid

public void setUuid(String uuid)
Description copied from interface: LockModel
Sets the uuid of this lock.

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

getLockId

public long getLockId()
Description copied from interface: LockModel
Gets 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)
Description copied from interface: LockModel
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()
Description copied from interface: LockModel
Gets 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)
Description copied from interface: LockModel
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()
Description copied from interface: LockModel
Gets 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)
Description copied from interface: LockModel
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
Description copied from interface: LockModel
Gets 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)
Description copied from interface: LockModel
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()
Description copied from interface: LockModel
Gets 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)
Description copied from interface: LockModel
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()
Description copied from interface: LockModel
Gets 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)
Description copied from interface: LockModel
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()
Description copied from interface: LockModel
Gets 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)
Description copied from interface: LockModel
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()
Description copied from interface: LockModel
Gets the key of this lock.

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

setKey

public void setKey(String key)
Description copied from interface: LockModel
Sets the key of this lock.

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

getOwner

public String getOwner()
Description copied from interface: LockModel
Gets the owner of this lock.

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

setOwner

public void setOwner(String owner)
Description copied from interface: LockModel
Sets the owner of this lock.

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

getInheritable

public boolean getInheritable()
Description copied from interface: LockModel
Gets the inheritable of this lock.

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

isInheritable

public boolean isInheritable()
Description copied from interface: LockModel
Determines whether this lock is inheritable.

Specified by:
isInheritable in interface LockModel
Returns:
whether this lock is inheritable

setInheritable

public void setInheritable(boolean inheritable)
Description copied from interface: LockModel
Sets whether this {$entity.humanName} is inheritable.

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

getExpirationDate

public Date getExpirationDate()
Description copied from interface: LockModel
Gets 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)
Description copied from interface: LockModel
Sets the expiration date of this lock.

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

toEscapedModel

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

Specified by:
toEscapedModel in interface LockModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines 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
Determines 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
Determines 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
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<Lock>
Specified by:
setEscapedModel in interface LockModel
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

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

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

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<Lock>
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 to retrieve the expando bridge attributes from
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

toString

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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets 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

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

getWrappedLock

public Lock getWrappedLock()

Liferay 6.0.5