|
Liferay 6.1.2-ce-ga3 | |||||||||
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 FormConstructor 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 |
---|
public LockWrapper(Lock lock)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Lock>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Lock>
public long getPrimaryKey()
getPrimaryKey
in interface LockModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface LockModel
primaryKey
- the primary key of this lockpublic String getUuid()
getUuid
in interface LockModel
public void setUuid(String uuid)
setUuid
in interface LockModel
uuid
- the uuid of this lockpublic long getLockId()
getLockId
in interface LockModel
public void setLockId(long lockId)
setLockId
in interface LockModel
lockId
- the lock ID of this lockpublic long getCompanyId()
getCompanyId
in interface LockModel
public void setCompanyId(long companyId)
setCompanyId
in interface LockModel
companyId
- the company ID of this lockpublic long getUserId()
getUserId
in interface LockModel
public void setUserId(long userId)
setUserId
in interface LockModel
userId
- the user ID of this lockpublic String getUserUuid() throws SystemException
getUserUuid
in interface LockModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface LockModel
userUuid
- the user uuid of this lockpublic String getUserName()
getUserName
in interface LockModel
public void setUserName(String userName)
setUserName
in interface LockModel
userName
- the user name of this lockpublic Date getCreateDate()
getCreateDate
in interface LockModel
public void setCreateDate(Date createDate)
setCreateDate
in interface LockModel
createDate
- the create date of this lockpublic String getClassName()
getClassName
in interface LockModel
public void setClassName(String className)
setClassName
in interface LockModel
className
- the class name of this lockpublic String getKey()
getKey
in interface LockModel
public void setKey(String key)
setKey
in interface LockModel
key
- the key of this lockpublic String getOwner()
getOwner
in interface LockModel
public void setOwner(String owner)
setOwner
in interface LockModel
owner
- the owner of this lockpublic boolean getInheritable()
getInheritable
in interface LockModel
public boolean isInheritable()
true
if this lock is inheritable.
isInheritable
in interface LockModel
true
if this lock is inheritable; false
otherwisepublic void setInheritable(boolean inheritable)
setInheritable
in interface LockModel
inheritable
- the inheritable of this lockpublic Date getExpirationDate()
getExpirationDate
in interface LockModel
public void setExpirationDate(Date expirationDate)
setExpirationDate
in interface LockModel
expirationDate
- the expiration date of this lockpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<Lock>
isNew
in interface LockModel
true
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 LockModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<Lock>
isCachedModel
in interface LockModel
true
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 LockModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<Lock>
isEscapedModel
in interface LockModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Lock>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface LockModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Lock>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface LockModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Lock>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface LockModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Lock>
setExpandoBridgeAttributes
in interface LockModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<Lock>
clone
in interface LockModel
clone
in class Object
public int compareTo(Lock lock)
compareTo
in interface LockModel
compareTo
in interface Comparable<Lock>
public int hashCode()
hashCode
in interface LockModel
hashCode
in class Object
public CacheModel<Lock> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Lock>
toCacheModel
in interface LockModel
public Lock toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Lock>
toEscapedModel
in interface LockModel
AutoEscapeBeanHandler
public Lock toUnescapedModel()
toUnescapedModel
in interface BaseModel<Lock>
toUnescapedModel
in interface LockModel
public String toString()
toString
in interface LockModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Lock>
toXmlString
in interface LockModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic long getExpirationTime()
getExpirationTime
in interface Lock
public boolean isExpired()
isExpired
in interface Lock
public boolean isNeverExpires()
isNeverExpires
in interface Lock
public boolean equals(Object obj)
equals
in class Object
public Lock getWrappedLock()
getWrappedModel()
public Lock getWrappedModel()
getWrappedModel
in interface ModelWrapper<Lock>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Lock>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |