@ProviderType public class DDLRecordWrapper extends java.lang.Object implements DDLRecord, ModelWrapper<DDLRecord>
This class is a wrapper for DDLRecord.
DDLRecord,
Serialized Form| Constructor and Description |
|---|
DDLRecordWrapper(DDLRecord ddlRecord) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(DDLRecord ddlRecord) |
boolean |
equals(java.lang.Object obj) |
long |
getCompanyId()
Returns the company ID of this d d l record.
|
java.util.Date |
getCreateDate()
Returns the create date of this d d l record.
|
long |
getDDMStorageId()
Returns the d d m storage ID of this d d l record.
|
int |
getDisplayIndex()
Returns the display index of this d d l record.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Field |
getField(java.lang.String fieldName) |
java.io.Serializable |
getFieldDataType(java.lang.String fieldName) |
Fields |
getFields() |
java.io.Serializable |
getFieldType(java.lang.String fieldName) |
java.io.Serializable |
getFieldValue(java.lang.String fieldName) |
java.io.Serializable |
getFieldValue(java.lang.String fieldName,
java.util.Locale locale) |
java.util.List<java.io.Serializable> |
getFieldValues(java.lang.String fieldName,
java.util.Locale locale) |
long |
getGroupId()
Returns the group ID of this d d l record.
|
DDLRecordVersion |
getLatestRecordVersion() |
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 d d l record.
|
long |
getPrimaryKey()
Returns the primary key of this d d l record.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getRecordId()
Returns the record ID of this d d l record.
|
DDLRecordSet |
getRecordSet() |
long |
getRecordSetId()
Returns the record set ID of this d d l record.
|
DDLRecordVersion |
getRecordVersion() |
DDLRecordVersion |
getRecordVersion(java.lang.String version) |
StagedModelType |
getStagedModelType() |
int |
getStatus() |
long |
getUserId()
Returns the user ID of this d d l record.
|
java.lang.String |
getUserName()
Returns the user name of this d d l record.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this d d l record.
|
java.lang.String |
getUuid()
Returns the uuid of this d d l record.
|
java.lang.String |
getVersion()
Returns the version of this d d l record.
|
long |
getVersionUserId()
Returns the version user ID of this d d l record.
|
java.lang.String |
getVersionUserName()
Returns the version user name of this d d l record.
|
java.lang.String |
getVersionUserUuid()
Returns the version user uuid of this d d l record.
|
DDLRecord |
getWrappedDDLRecord()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
DDLRecord |
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 |
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 |
setCompanyId(long companyId)
Sets the company ID of this d d l record.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this d d l record.
|
void |
setDDMStorageId(long DDMStorageId)
Sets the d d m storage ID of this d d l record.
|
void |
setDisplayIndex(int displayIndex)
Sets the display index of this d d l record.
|
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 d d l record.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this d d l record.
|
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 d d l record.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setRecordId(long recordId)
Sets the record ID of this d d l record.
|
void |
setRecordSetId(long recordSetId)
Sets the record set ID of this d d l record.
|
void |
setUserId(long userId)
Sets the user ID of this d d l record.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this d d l record.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this d d l record.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this d d l record.
|
void |
setVersion(java.lang.String version)
Sets the version of this d d l record.
|
void |
setVersionUserId(long versionUserId)
Sets the version user ID of this d d l record.
|
void |
setVersionUserName(java.lang.String versionUserName)
Sets the version user name of this d d l record.
|
void |
setVersionUserUuid(java.lang.String versionUserUuid)
Sets the version user uuid of this d d l record.
|
CacheModel<DDLRecord> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
DDLRecord |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
DDLRecord |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public DDLRecordWrapper(DDLRecord ddlRecord)
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<DDLRecord>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<DDLRecord>public long getPrimaryKey()
getPrimaryKey in interface DDLRecordModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface DDLRecordModelprimaryKey - the primary key of this d d l recordpublic java.lang.String getUuid()
getUuid in interface StagedModelgetUuid in interface DDLRecordModelpublic void setUuid(java.lang.String uuid)
setUuid in interface StagedModelsetUuid in interface DDLRecordModeluuid - the uuid of this d d l recordpublic long getRecordId()
getRecordId in interface DDLRecordModelpublic void setRecordId(long recordId)
setRecordId in interface DDLRecordModelrecordId - the record ID of this d d l recordpublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface DDLRecordModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface DDLRecordModelgroupId - the group ID of this d d l recordpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface StagedModelgetCompanyId in interface DDLRecordModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface StagedModelsetCompanyId in interface DDLRecordModelcompanyId - the company ID of this d d l recordpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface DDLRecordModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface DDLRecordModeluserId - the user ID of this d d l recordpublic java.lang.String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface DDLRecordModelSystemException - if a system exception occurredpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface DDLRecordModeluserUuid - the user uuid of this d d l recordpublic java.lang.String getUserName()
getUserName in interface AuditedModelgetUserName in interface DDLRecordModelpublic void setUserName(java.lang.String userName)
setUserName in interface AuditedModelsetUserName in interface DDLRecordModeluserName - the user name of this d d l recordpublic long getVersionUserId()
getVersionUserId in interface DDLRecordModelpublic void setVersionUserId(long versionUserId)
setVersionUserId in interface DDLRecordModelversionUserId - the version user ID of this d d l recordpublic java.lang.String getVersionUserUuid()
throws SystemException
getVersionUserUuid in interface DDLRecordModelSystemException - if a system exception occurredpublic void setVersionUserUuid(java.lang.String versionUserUuid)
setVersionUserUuid in interface DDLRecordModelversionUserUuid - the version user uuid of this d d l recordpublic java.lang.String getVersionUserName()
getVersionUserName in interface DDLRecordModelpublic void setVersionUserName(java.lang.String versionUserName)
setVersionUserName in interface DDLRecordModelversionUserName - the version user name of this d d l recordpublic java.util.Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface StagedModelgetCreateDate in interface DDLRecordModelpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface StagedModelsetCreateDate in interface DDLRecordModelcreateDate - the create date of this d d l recordpublic java.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelgetModifiedDate in interface DDLRecordModelpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelsetModifiedDate in interface DDLRecordModelmodifiedDate - the modified date of this d d l recordpublic long getDDMStorageId()
getDDMStorageId in interface DDLRecordModelpublic void setDDMStorageId(long DDMStorageId)
setDDMStorageId in interface DDLRecordModelDDMStorageId - the d d m storage ID of this d d l recordpublic long getRecordSetId()
getRecordSetId in interface DDLRecordModelpublic void setRecordSetId(long recordSetId)
setRecordSetId in interface DDLRecordModelrecordSetId - the record set ID of this d d l recordpublic java.lang.String getVersion()
getVersion in interface DDLRecordModelpublic void setVersion(java.lang.String version)
setVersion in interface DDLRecordModelversion - the version of this d d l recordpublic int getDisplayIndex()
getDisplayIndex in interface DDLRecordModelpublic void setDisplayIndex(int displayIndex)
setDisplayIndex in interface DDLRecordModeldisplayIndex - the display index of this d d l recordpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<DDLRecord>isNew in interface DDLRecordModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<DDLRecord>setNew in interface DDLRecordModeln - 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<DDLRecord>isCachedModel in interface DDLRecordModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<DDLRecord>setCachedModel in interface DDLRecordModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<DDLRecord>isEscapedModel in interface DDLRecordModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<DDLRecord>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface DDLRecordModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<DDLRecord>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface DDLRecordModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<DDLRecord>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface DDLRecordModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<DDLRecord>setExpandoBridgeAttributes in interface DDLRecordModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<DDLRecord>setExpandoBridgeAttributes in interface DDLRecordModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<DDLRecord>setExpandoBridgeAttributes in interface DDLRecordModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.Object clone()
BaseModelclone in interface BaseModel<DDLRecord>clone in interface StagedModelclone in interface DDLRecordModelclone in class java.lang.Objectpublic int compareTo(DDLRecord ddlRecord)
compareTo in interface DDLRecordModelcompareTo in interface java.lang.Comparable<DDLRecord>public int hashCode()
hashCode in interface DDLRecordModelhashCode in class java.lang.Objectpublic CacheModel<DDLRecord> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<DDLRecord>toCacheModel in interface DDLRecordModelpublic DDLRecord toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<DDLRecord>toEscapedModel in interface DDLRecordModelAutoEscapeBeanHandlerpublic DDLRecord toUnescapedModel()
toUnescapedModel in interface BaseModel<DDLRecord>toUnescapedModel in interface DDLRecordModelpublic java.lang.String toString()
toString in interface DDLRecordModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<DDLRecord>toXmlString in interface DDLRecordModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic Field getField(java.lang.String fieldName) throws PortalException
getField in interface DDLRecordPortalExceptionpublic java.io.Serializable getFieldDataType(java.lang.String fieldName)
throws PortalException,
SystemException
getFieldDataType in interface DDLRecordPortalExceptionSystemExceptionpublic Fields getFields() throws PortalException
getFields in interface DDLRecordPortalExceptionpublic java.io.Serializable getFieldType(java.lang.String fieldName)
throws java.lang.Exception
getFieldType in interface DDLRecordjava.lang.Exceptionpublic java.io.Serializable getFieldValue(java.lang.String fieldName)
throws PortalException
getFieldValue in interface DDLRecordPortalExceptionpublic java.io.Serializable getFieldValue(java.lang.String fieldName,
java.util.Locale locale)
throws PortalException
getFieldValue in interface DDLRecordPortalExceptionpublic java.util.List<java.io.Serializable> getFieldValues(java.lang.String fieldName,
java.util.Locale locale)
throws PortalException
getFieldValues in interface DDLRecordPortalExceptionpublic DDLRecordVersion getLatestRecordVersion() throws PortalException, SystemException
getLatestRecordVersion in interface DDLRecordPortalExceptionSystemExceptionpublic DDLRecordSet getRecordSet() throws PortalException, SystemException
getRecordSet in interface DDLRecordPortalExceptionSystemExceptionpublic DDLRecordVersion getRecordVersion() throws PortalException, SystemException
getRecordVersion in interface DDLRecordPortalExceptionSystemExceptionpublic DDLRecordVersion getRecordVersion(java.lang.String version) throws PortalException, SystemException
getRecordVersion in interface DDLRecordPortalExceptionSystemExceptionpublic int getStatus()
throws PortalException,
SystemException
getStatus in interface DDLRecordPortalExceptionSystemExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic DDLRecord getWrappedDDLRecord()
getWrappedModel()public DDLRecord getWrappedModel()
getWrappedModel in interface ModelWrapper<DDLRecord>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<DDLRecord>