public class KaleoInstanceWrapper extends java.lang.Object implements KaleoInstance, ModelWrapper<KaleoInstance>
This class is a wrapper for KaleoInstance
.
KaleoInstance
,
Serialized FormKALEO_INSTANCE_ID_ACCESSOR
Constructor and Description |
---|
KaleoInstanceWrapper(KaleoInstance kaleoInstance) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(KaleoInstance kaleoInstance) |
boolean |
equals(java.lang.Object object) |
java.lang.String |
getClassName()
Returns the class name of this kaleo instance.
|
long |
getClassPK()
Returns the class pk of this kaleo instance.
|
long |
getCompanyId()
Returns the company ID of this kaleo instance.
|
boolean |
getCompleted()
Returns the completed of this kaleo instance.
|
java.util.Date |
getCompletionDate()
Returns the completion date of this kaleo instance.
|
java.util.Date |
getCreateDate()
Returns the create date of this kaleo instance.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getGroupId()
Returns the group ID of this kaleo instance.
|
KaleoDefinition |
getKaleoDefinition() |
long |
getKaleoDefinitionId()
Returns the kaleo definition ID of this kaleo instance.
|
java.lang.String |
getKaleoDefinitionName()
Returns the kaleo definition name of this kaleo instance.
|
int |
getKaleoDefinitionVersion()
Returns the kaleo definition version of this kaleo instance.
|
long |
getKaleoInstanceId()
Returns the kaleo instance ID of this kaleo instance.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this kaleo instance.
|
long |
getPrimaryKey()
Returns the primary key of this kaleo instance.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
KaleoInstanceToken |
getRootKaleoInstanceToken(java.util.Map<java.lang.String,java.io.Serializable> workflowContext,
ServiceContext serviceContext) |
KaleoInstanceToken |
getRootKaleoInstanceToken(ServiceContext serviceContext) |
long |
getRootKaleoInstanceTokenId()
Returns the root kaleo instance token ID of this kaleo instance.
|
long |
getUserId()
Returns the user ID of this kaleo instance.
|
java.lang.String |
getUserName()
Returns the user name of this kaleo instance.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this kaleo instance.
|
java.lang.String |
getWorkflowContext()
Returns the workflow context of this kaleo instance.
|
KaleoInstance |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isCompleted()
Returns
true if this kaleo instance is completed. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
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 kaleo instance.
|
void |
setClassPK(long classPK)
Sets the class pk of this kaleo instance.
|
void |
setCompanyId(long companyId)
Sets the company ID of this kaleo instance.
|
void |
setCompleted(boolean completed)
Sets whether this kaleo instance is completed.
|
void |
setCompletionDate(java.util.Date completionDate)
Sets the completion date of this kaleo instance.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this kaleo instance.
|
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 |
setGroupId(long groupId)
Sets the group ID of this kaleo instance.
|
void |
setKaleoDefinitionId(long kaleoDefinitionId)
Sets the kaleo definition ID of this kaleo instance.
|
void |
setKaleoDefinitionName(java.lang.String kaleoDefinitionName)
Sets the kaleo definition name of this kaleo instance.
|
void |
setKaleoDefinitionVersion(int kaleoDefinitionVersion)
Sets the kaleo definition version of this kaleo instance.
|
void |
setKaleoInstanceId(long kaleoInstanceId)
Sets the kaleo instance ID of this kaleo instance.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this kaleo instance.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this kaleo instance.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setRootKaleoInstanceTokenId(long rootKaleoInstanceTokenId)
Sets the root kaleo instance token ID of this kaleo instance.
|
void |
setUserId(long userId)
Sets the user ID of this kaleo instance.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this kaleo instance.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this kaleo instance.
|
void |
setWorkflowContext(java.lang.String workflowContext)
Sets the workflow context of this kaleo instance.
|
CacheModel<KaleoInstance> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
KaleoInstance |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
java.lang.String |
toString() |
KaleoInstance |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public KaleoInstanceWrapper(KaleoInstance kaleoInstance)
public java.lang.Class<?> getModelClass()
getModelClass
in interface ClassedModel
public java.lang.String getModelClassName()
getModelClassName
in interface ClassedModel
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface BaseModel<KaleoInstance>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface BaseModel<KaleoInstance>
public java.lang.Object clone()
BaseModel
clone
in interface BaseModel<KaleoInstance>
clone
in interface KaleoInstanceModel
clone
in class java.lang.Object
public int compareTo(KaleoInstance kaleoInstance)
compareTo
in interface KaleoInstanceModel
compareTo
in interface java.lang.Comparable<KaleoInstance>
public java.lang.String getClassName()
getClassName
in interface KaleoInstanceModel
public long getClassPK()
getClassPK
in interface KaleoInstanceModel
public long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface KaleoInstanceModel
public boolean getCompleted()
getCompleted
in interface KaleoInstanceModel
public java.util.Date getCompletionDate()
getCompletionDate
in interface KaleoInstanceModel
public java.util.Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface KaleoInstanceModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<KaleoInstance>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface KaleoInstanceModel
public long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface KaleoInstanceModel
public KaleoDefinition getKaleoDefinition() throws PortalException
getKaleoDefinition
in interface KaleoInstance
PortalException
public long getKaleoDefinitionId()
getKaleoDefinitionId
in interface KaleoInstanceModel
public java.lang.String getKaleoDefinitionName()
getKaleoDefinitionName
in interface KaleoInstanceModel
public int getKaleoDefinitionVersion()
getKaleoDefinitionVersion
in interface KaleoInstanceModel
public long getKaleoInstanceId()
getKaleoInstanceId
in interface KaleoInstanceModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface KaleoInstanceModel
public long getPrimaryKey()
getPrimaryKey
in interface KaleoInstanceModel
public java.io.Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<KaleoInstance>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface KaleoInstanceModel
public KaleoInstanceToken getRootKaleoInstanceToken(java.util.Map<java.lang.String,java.io.Serializable> workflowContext, ServiceContext serviceContext) throws PortalException
getRootKaleoInstanceToken
in interface KaleoInstance
PortalException
public KaleoInstanceToken getRootKaleoInstanceToken(ServiceContext serviceContext) throws PortalException
getRootKaleoInstanceToken
in interface KaleoInstance
PortalException
public long getRootKaleoInstanceTokenId()
getRootKaleoInstanceTokenId
in interface KaleoInstanceModel
public long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface KaleoInstanceModel
public java.lang.String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface KaleoInstanceModel
public java.lang.String getUserUuid()
getUserUuid
in interface AuditedModel
getUserUuid
in interface KaleoInstanceModel
public java.lang.String getWorkflowContext()
getWorkflowContext
in interface KaleoInstanceModel
public int hashCode()
hashCode
in interface KaleoInstanceModel
hashCode
in class java.lang.Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<KaleoInstance>
isCachedModel
in interface KaleoInstanceModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isCompleted()
true
if this kaleo instance is completed.isCompleted
in interface KaleoInstanceModel
true
if this kaleo instance is completed; false
otherwisepublic boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface BaseModel<KaleoInstance>
isEscapedModel
in interface KaleoInstanceModel
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface BaseModel<KaleoInstance>
isNew
in interface KaleoInstanceModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<KaleoInstance>
setCachedModel
in interface KaleoInstanceModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClassName(java.lang.String className)
setClassName
in interface KaleoInstanceModel
className
- the class name of this kaleo instancepublic void setClassPK(long classPK)
setClassPK
in interface KaleoInstanceModel
classPK
- the class pk of this kaleo instancepublic void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface KaleoInstanceModel
companyId
- the company ID of this kaleo instancepublic void setCompleted(boolean completed)
setCompleted
in interface KaleoInstanceModel
completed
- the completed of this kaleo instancepublic void setCompletionDate(java.util.Date completionDate)
setCompletionDate
in interface KaleoInstanceModel
completionDate
- the completion date of this kaleo instancepublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface KaleoInstanceModel
createDate
- the create date of this kaleo instancepublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<KaleoInstance>
setExpandoBridgeAttributes
in interface KaleoInstanceModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<KaleoInstance>
setExpandoBridgeAttributes
in interface KaleoInstanceModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<KaleoInstance>
setExpandoBridgeAttributes
in interface KaleoInstanceModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setGroupId(long groupId)
setGroupId
in interface GroupedModel
setGroupId
in interface KaleoInstanceModel
groupId
- the group ID of this kaleo instancepublic void setKaleoDefinitionId(long kaleoDefinitionId)
setKaleoDefinitionId
in interface KaleoInstanceModel
kaleoDefinitionId
- the kaleo definition ID of this kaleo instancepublic void setKaleoDefinitionName(java.lang.String kaleoDefinitionName)
setKaleoDefinitionName
in interface KaleoInstanceModel
kaleoDefinitionName
- the kaleo definition name of this kaleo instancepublic void setKaleoDefinitionVersion(int kaleoDefinitionVersion)
setKaleoDefinitionVersion
in interface KaleoInstanceModel
kaleoDefinitionVersion
- the kaleo definition version of this kaleo instancepublic void setKaleoInstanceId(long kaleoInstanceId)
setKaleoInstanceId
in interface KaleoInstanceModel
kaleoInstanceId
- the kaleo instance ID of this kaleo instancepublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface KaleoInstanceModel
modifiedDate
- the modified date of this kaleo instancepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<KaleoInstance>
setNew
in interface KaleoInstanceModel
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface KaleoInstanceModel
primaryKey
- the primary key of this kaleo instancepublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<KaleoInstance>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface KaleoInstanceModel
primaryKeyObj
- the primary key of this model instancepublic void setRootKaleoInstanceTokenId(long rootKaleoInstanceTokenId)
setRootKaleoInstanceTokenId
in interface KaleoInstanceModel
rootKaleoInstanceTokenId
- the root kaleo instance token ID of this kaleo instancepublic void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface KaleoInstanceModel
userId
- the user ID of this kaleo instancepublic void setUserName(java.lang.String userName)
setUserName
in interface AuditedModel
setUserName
in interface KaleoInstanceModel
userName
- the user name of this kaleo instancepublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface KaleoInstanceModel
userUuid
- the user uuid of this kaleo instancepublic void setWorkflowContext(java.lang.String workflowContext)
setWorkflowContext
in interface KaleoInstanceModel
workflowContext
- the workflow context of this kaleo instancepublic CacheModel<KaleoInstance> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<KaleoInstance>
toCacheModel
in interface KaleoInstanceModel
public KaleoInstance toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<KaleoInstance>
toEscapedModel
in interface KaleoInstanceModel
AutoEscapeBeanHandler
public java.lang.String toString()
toString
in interface KaleoInstanceModel
toString
in class java.lang.Object
public KaleoInstance toUnescapedModel()
toUnescapedModel
in interface BaseModel<KaleoInstance>
toUnescapedModel
in interface KaleoInstanceModel
public java.lang.String toXmlString()
BaseModel
toXmlString
in interface BaseModel<KaleoInstance>
toXmlString
in interface KaleoInstanceModel
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public KaleoInstance getWrappedModel()
getWrappedModel
in interface ModelWrapper<KaleoInstance>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<KaleoInstance>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<KaleoInstance>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<KaleoInstance>