@ProviderType public class LockWrapper extends java.lang.Object implements Lock, ModelWrapper<Lock>
This class is a wrapper for Lock.
Lock,
Serialized Form| Constructor and Description |
|---|
LockWrapper(Lock lock) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Lock lock) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClassName()
Returns the class name of this lock.
|
long |
getCompanyId()
Returns the company ID of this lock.
|
java.util.Date |
getCreateDate()
Returns the create date of this lock.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
java.util.Date |
getExpirationDate()
Returns the expiration date of this lock.
|
long |
getExpirationTime() |
boolean |
getInheritable()
Returns the inheritable of this lock.
|
java.lang.String |
getKey()
Returns the key of this lock.
|
long |
getLockId()
Returns the lock ID of this lock.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.lang.String |
getOwner()
Returns the owner of this lock.
|
long |
getPrimaryKey()
Returns the primary key of this lock.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getUserId()
Returns the user ID of this lock.
|
java.lang.String |
getUserName()
Returns the user name of this lock.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this lock.
|
java.lang.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 |
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(java.lang.String className)
Sets the class name of this lock.
|
void |
setCompanyId(long companyId)
Sets the company ID of this lock.
|
void |
setCreateDate(java.util.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(java.util.Date expirationDate)
Sets the expiration date of this lock.
|
void |
setInheritable(boolean inheritable)
Sets whether this lock is inheritable.
|
void |
setKey(java.lang.String key)
Sets the key of this lock.
|
void |
setLockId(long lockId)
Sets the lock ID of this lock.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setOwner(java.lang.String owner)
Sets the owner of this lock.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this lock.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setUserId(long userId)
Sets the user ID of this lock.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this lock.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this lock.
|
void |
setUuid(java.lang.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. |
java.lang.String |
toString() |
Lock |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public LockWrapper(Lock lock)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<Lock>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<Lock>public long getPrimaryKey()
getPrimaryKey in interface LockModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface LockModelprimaryKey - the primary key of this lockpublic java.lang.String getUuid()
public void setUuid(java.lang.String uuid)
public long getLockId()
public void setLockId(long lockId)
public long getCompanyId()
getCompanyId in interface LockModelpublic void setCompanyId(long companyId)
setCompanyId in interface LockModelcompanyId - the company ID of this lockpublic long getUserId()
public void setUserId(long userId)
public java.lang.String getUserUuid()
throws SystemException
getUserUuid in interface LockModelSystemException - if a system exception occurredpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface LockModeluserUuid - the user uuid of this lockpublic java.lang.String getUserName()
getUserName in interface LockModelpublic void setUserName(java.lang.String userName)
setUserName in interface LockModeluserName - the user name of this lockpublic java.util.Date getCreateDate()
getCreateDate in interface LockModelpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface LockModelcreateDate - the create date of this lockpublic java.lang.String getClassName()
getClassName in interface LockModelpublic void setClassName(java.lang.String className)
setClassName in interface LockModelclassName - the class name of this lockpublic java.lang.String getKey()
public void setKey(java.lang.String key)
public java.lang.String getOwner()
public void setOwner(java.lang.String owner)
public 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 java.util.Date getExpirationDate()
getExpirationDate in interface LockModelpublic void setExpirationDate(java.util.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.public void setNew(boolean n)
BaseModelpublic 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)
BaseModelsetCachedModel 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 java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<Lock>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface LockModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<Lock>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface LockModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<Lock>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface LockModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<Lock>setExpandoBridgeAttributes in interface LockModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<Lock>setExpandoBridgeAttributes in interface LockModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<Lock>setExpandoBridgeAttributes in interface LockModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.Object clone()
BaseModelpublic int compareTo(Lock lock)
public int hashCode()
public CacheModel<Lock> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<Lock>toCacheModel in interface LockModelpublic Lock toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<Lock>toEscapedModel in interface LockModelAutoEscapeBeanHandlerpublic Lock toUnescapedModel()
toUnescapedModel in interface BaseModel<Lock>toUnescapedModel in interface LockModelpublic java.lang.String toString()
public java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<Lock>toXmlString in interface LockModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic long getExpirationTime()
getExpirationTime in interface Lockpublic boolean isNeverExpires()
isNeverExpires in interface Lockpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Lock getWrappedLock()
getWrappedModel()public Lock getWrappedModel()
getWrappedModel in interface ModelWrapper<Lock>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<Lock>