|
Liferay 6.1.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.LockWrapper
public class LockWrapper
This class is a wrapper for Lock.
Lock,
Serialized Form| Constructor Summary | |
|---|---|
LockWrapper(Lock lock)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Lock lock)
|
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. |
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 |
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()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LockWrapper(Lock lock)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic long getPrimaryKey()
getPrimaryKey in interface LockModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface LockModelprimaryKey - the primary key of this lockpublic String getUuid()
getUuid in interface LockModelpublic void setUuid(String uuid)
setUuid in interface LockModeluuid - the uuid of this lockpublic long getLockId()
getLockId in interface LockModelpublic void setLockId(long lockId)
setLockId in interface LockModellockId - the lock ID of this lockpublic long getCompanyId()
getCompanyId in interface LockModelpublic void setCompanyId(long companyId)
setCompanyId in interface LockModelcompanyId - the company ID of this lockpublic long getUserId()
getUserId in interface LockModelpublic void setUserId(long userId)
setUserId in interface LockModeluserId - the user ID of this lock
public String getUserUuid()
throws SystemException
getUserUuid in interface LockModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid in interface LockModeluserUuid - the user uuid of this lockpublic String getUserName()
getUserName in interface LockModelpublic void setUserName(String userName)
setUserName in interface LockModeluserName - the user name of this lockpublic Date getCreateDate()
getCreateDate in interface LockModelpublic void setCreateDate(Date createDate)
setCreateDate in interface LockModelcreateDate - the create date of this lockpublic String getClassName()
getClassName in interface LockModelpublic void setClassName(String className)
setClassName in interface LockModelclassName - the class name of this lockpublic String getKey()
getKey in interface LockModelpublic void setKey(String key)
setKey in interface LockModelkey - the key of this lockpublic String getOwner()
getOwner in interface LockModelpublic void setOwner(String owner)
setOwner in interface LockModelowner - the owner of this lockpublic boolean getInheritable()
getInheritable in interface LockModelpublic boolean isInheritable()
true if this lock is inheritable.
isInheritable in interface LockModeltrue if this lock is inheritable; false otherwisepublic void setInheritable(boolean inheritable)
setInheritable in interface LockModelinheritable - the inheritable of this lockpublic Date getExpirationDate()
getExpirationDate in interface LockModelpublic void setExpirationDate(Date expirationDate)
setExpirationDate in interface LockModelexpirationDate - the expiration date of this lockpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<Lock>isNew in interface LockModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<Lock>setNew in interface LockModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<Lock>isCachedModel in interface LockModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<Lock>setCachedModel in interface LockModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<Lock>isEscapedModel in interface LockModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Lock>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface LockModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<Lock>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface LockModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Lock>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface LockModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Lock>setExpandoBridgeAttributes in interface LockModelserviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<Lock>clone in interface LockModelclone in class Objectpublic int compareTo(Lock lock)
compareTo in interface LockModelcompareTo in interface Comparable<Lock>public int hashCode()
hashCode in interface LockModelhashCode in class Objectpublic CacheModel<Lock> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<Lock>toCacheModel in interface LockModelpublic Lock toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<Lock>toEscapedModel in interface LockModelAutoEscapeBeanHandlerpublic String toString()
toString in interface LockModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Lock>toXmlString in interface LockModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurredpublic long getExpirationTime()
getExpirationTime in interface Lockpublic boolean isExpired()
isExpired in interface Lockpublic boolean isNeverExpires()
isNeverExpires in interface Lockpublic Lock getWrappedLock()
getWrappedModel()
public Lock getWrappedModel()
getWrappedModel in interface ModelWrapper<Lock>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<Lock>
|
Liferay 6.1.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||