Liferay 6.2-ce-ga5

com.liferay.portlet.dynamicdatalists.model
Class DDLRecordWrapper

java.lang.Object
  extended by com.liferay.portlet.dynamicdatalists.model.DDLRecordWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<DDLRecord>, ClassedModel, GroupedModel, ModelWrapper<DDLRecord>, PersistedModel, StagedGroupedModel, StagedModel, DDLRecord, DDLRecordModel, Serializable, Cloneable, Comparable<DDLRecord>

@ProviderType
public class DDLRecordWrapper
extends Object
implements DDLRecord, ModelWrapper<DDLRecord>

This class is a wrapper for DDLRecord.

See Also:
DDLRecord, Serialized Form

Constructor Summary
DDLRecordWrapper(DDLRecord ddlRecord)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(DDLRecord ddlRecord)
           
 boolean equals(Object obj)
           
 long getCompanyId()
          Returns the company ID of this d d l record.
 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(String fieldName)
           
 Serializable getFieldDataType(String fieldName)
           
 Fields getFields()
           
 Serializable getFieldType(String fieldName)
           
 Serializable getFieldValue(String fieldName)
           
 Serializable getFieldValue(String fieldName, Locale locale)
           
 List<Serializable> getFieldValues(String fieldName, Locale locale)
           
 long getGroupId()
          Returns the group ID of this d d l record.
 DDLRecordVersion getLatestRecordVersion()
           
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this d d l record.
 long getPrimaryKey()
          Returns the primary key of this d d l record.
 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(String version)
           
 StagedModelType getStagedModelType()
           
 int getStatus()
           
 long getUserId()
          Returns the user ID of this d d l record.
 String getUserName()
          Returns the user name of this d d l record.
 String getUserUuid()
          Returns the user uuid of this d d l record.
 String getUuid()
          Returns the uuid of this d d l record.
 String getVersion()
          Returns the version of this d d l record.
 long getVersionUserId()
          Returns the version user ID of this d d l record.
 String getVersionUserName()
          Returns the version user name of this d d l record.
 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(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(Map<String,Object> attributes)
           
 void setModifiedDate(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(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(String userName)
          Sets the user name of this d d l record.
 void setUserUuid(String userUuid)
          Sets the user uuid of this d d l record.
 void setUuid(String uuid)
          Sets the uuid of this d d l record.
 void setVersion(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(String versionUserName)
          Sets the version user name of this d d l record.
 void setVersionUserUuid(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.
 String toString()
           
 DDLRecord 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

DDLRecordWrapper

public DDLRecordWrapper(DDLRecord ddlRecord)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<DDLRecord>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<DDLRecord>

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this d d l record.

Specified by:
getPrimaryKey in interface DDLRecordModel
Returns:
the primary key of this d d l record

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this d d l record.

Specified by:
setPrimaryKey in interface DDLRecordModel
Parameters:
primaryKey - the primary key of this d d l record

getUuid

public String getUuid()
Returns the uuid of this d d l record.

Specified by:
getUuid in interface StagedModel
Specified by:
getUuid in interface DDLRecordModel
Returns:
the uuid of this d d l record

setUuid

public void setUuid(String uuid)
Sets the uuid of this d d l record.

Specified by:
setUuid in interface StagedModel
Specified by:
setUuid in interface DDLRecordModel
Parameters:
uuid - the uuid of this d d l record

getRecordId

public long getRecordId()
Returns the record ID of this d d l record.

Specified by:
getRecordId in interface DDLRecordModel
Returns:
the record ID of this d d l record

setRecordId

public void setRecordId(long recordId)
Sets the record ID of this d d l record.

Specified by:
setRecordId in interface DDLRecordModel
Parameters:
recordId - the record ID of this d d l record

getGroupId

public long getGroupId()
Returns the group ID of this d d l record.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface DDLRecordModel
Returns:
the group ID of this d d l record

setGroupId

public void setGroupId(long groupId)
Sets the group ID of this d d l record.

Specified by:
setGroupId in interface GroupedModel
Specified by:
setGroupId in interface DDLRecordModel
Parameters:
groupId - the group ID of this d d l record

getCompanyId

public long getCompanyId()
Returns the company ID of this d d l record.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface StagedModel
Specified by:
getCompanyId in interface DDLRecordModel
Returns:
the company ID of this d d l record

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this d d l record.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface StagedModel
Specified by:
setCompanyId in interface DDLRecordModel
Parameters:
companyId - the company ID of this d d l record

getUserId

public long getUserId()
Returns the user ID of this d d l record.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface DDLRecordModel
Returns:
the user ID of this d d l record

setUserId

public void setUserId(long userId)
Sets the user ID of this d d l record.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface DDLRecordModel
Parameters:
userId - the user ID of this d d l record

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this d d l record.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface DDLRecordModel
Returns:
the user uuid of this d d l record
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this d d l record.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface DDLRecordModel
Parameters:
userUuid - the user uuid of this d d l record

getUserName

public String getUserName()
Returns the user name of this d d l record.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface DDLRecordModel
Returns:
the user name of this d d l record

setUserName

public void setUserName(String userName)
Sets the user name of this d d l record.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface DDLRecordModel
Parameters:
userName - the user name of this d d l record

getVersionUserId

public long getVersionUserId()
Returns the version user ID of this d d l record.

Specified by:
getVersionUserId in interface DDLRecordModel
Returns:
the version user ID of this d d l record

setVersionUserId

public void setVersionUserId(long versionUserId)
Sets the version user ID of this d d l record.

Specified by:
setVersionUserId in interface DDLRecordModel
Parameters:
versionUserId - the version user ID of this d d l record

getVersionUserUuid

public String getVersionUserUuid()
                          throws SystemException
Returns the version user uuid of this d d l record.

Specified by:
getVersionUserUuid in interface DDLRecordModel
Returns:
the version user uuid of this d d l record
Throws:
SystemException - if a system exception occurred

setVersionUserUuid

public void setVersionUserUuid(String versionUserUuid)
Sets the version user uuid of this d d l record.

Specified by:
setVersionUserUuid in interface DDLRecordModel
Parameters:
versionUserUuid - the version user uuid of this d d l record

getVersionUserName

public String getVersionUserName()
Returns the version user name of this d d l record.

Specified by:
getVersionUserName in interface DDLRecordModel
Returns:
the version user name of this d d l record

setVersionUserName

public void setVersionUserName(String versionUserName)
Sets the version user name of this d d l record.

Specified by:
setVersionUserName in interface DDLRecordModel
Parameters:
versionUserName - the version user name of this d d l record

getCreateDate

public Date getCreateDate()
Returns the create date of this d d l record.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface StagedModel
Specified by:
getCreateDate in interface DDLRecordModel
Returns:
the create date of this d d l record

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this d d l record.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface StagedModel
Specified by:
setCreateDate in interface DDLRecordModel
Parameters:
createDate - the create date of this d d l record

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this d d l record.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface StagedModel
Specified by:
getModifiedDate in interface DDLRecordModel
Returns:
the modified date of this d d l record

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this d d l record.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface StagedModel
Specified by:
setModifiedDate in interface DDLRecordModel
Parameters:
modifiedDate - the modified date of this d d l record

getDDMStorageId

public long getDDMStorageId()
Returns the d d m storage ID of this d d l record.

Specified by:
getDDMStorageId in interface DDLRecordModel
Returns:
the d d m storage ID of this d d l record

setDDMStorageId

public void setDDMStorageId(long DDMStorageId)
Sets the d d m storage ID of this d d l record.

Specified by:
setDDMStorageId in interface DDLRecordModel
Parameters:
DDMStorageId - the d d m storage ID of this d d l record

getRecordSetId

public long getRecordSetId()
Returns the record set ID of this d d l record.

Specified by:
getRecordSetId in interface DDLRecordModel
Returns:
the record set ID of this d d l record

setRecordSetId

public void setRecordSetId(long recordSetId)
Sets the record set ID of this d d l record.

Specified by:
setRecordSetId in interface DDLRecordModel
Parameters:
recordSetId - the record set ID of this d d l record

getVersion

public String getVersion()
Returns the version of this d d l record.

Specified by:
getVersion in interface DDLRecordModel
Returns:
the version of this d d l record

setVersion

public void setVersion(String version)
Sets the version of this d d l record.

Specified by:
setVersion in interface DDLRecordModel
Parameters:
version - the version of this d d l record

getDisplayIndex

public int getDisplayIndex()
Returns the display index of this d d l record.

Specified by:
getDisplayIndex in interface DDLRecordModel
Returns:
the display index of this d d l record

setDisplayIndex

public void setDisplayIndex(int displayIndex)
Sets the display index of this d d l record.

Specified by:
setDisplayIndex in interface DDLRecordModel
Parameters:
displayIndex - the display index of this d d l record

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<DDLRecord>
Specified by:
isNew in interface DDLRecordModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<DDLRecord>
Specified by:
setNew in interface DDLRecordModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<DDLRecord>
Specified by:
isCachedModel in interface DDLRecordModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<DDLRecord>
Specified by:
setCachedModel in interface DDLRecordModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<DDLRecord>
Specified by:
isEscapedModel in interface DDLRecordModel
Returns:
true if this model instance is escaped; false otherwise

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<DDLRecord>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface DDLRecordModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<DDLRecord>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface DDLRecordModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<DDLRecord>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface DDLRecordModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<DDLRecord>
Specified by:
setExpandoBridgeAttributes in interface DDLRecordModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<DDLRecord>
Specified by:
setExpandoBridgeAttributes in interface DDLRecordModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<DDLRecord>
Specified by:
setExpandoBridgeAttributes in interface DDLRecordModel
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<DDLRecord>
Specified by:
clone in interface StagedModel
Specified by:
clone in interface DDLRecordModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(DDLRecord ddlRecord)
Specified by:
compareTo in interface DDLRecordModel
Specified by:
compareTo in interface Comparable<DDLRecord>

hashCode

public int hashCode()
Specified by:
hashCode in interface DDLRecordModel
Overrides:
hashCode in class Object

toCacheModel

public CacheModel<DDLRecord> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<DDLRecord>
Specified by:
toCacheModel in interface DDLRecordModel
Returns:
the cache model object

toEscapedModel

public DDLRecord toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<DDLRecord>
Specified by:
toEscapedModel in interface DDLRecordModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public DDLRecord toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<DDLRecord>
Specified by:
toUnescapedModel in interface DDLRecordModel

toString

public String toString()
Specified by:
toString in interface DDLRecordModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<DDLRecord>
Specified by:
toXmlString in interface DDLRecordModel
Returns:
the XML representation of this model instance

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

getField

public Field getField(String fieldName)
               throws PortalException
Specified by:
getField in interface DDLRecord
Throws:
PortalException

getFieldDataType

public Serializable getFieldDataType(String fieldName)
                              throws PortalException,
                                     SystemException
Specified by:
getFieldDataType in interface DDLRecord
Throws:
PortalException
SystemException

getFields

public Fields getFields()
                 throws PortalException
Specified by:
getFields in interface DDLRecord
Throws:
PortalException

getFieldType

public Serializable getFieldType(String fieldName)
                          throws Exception
Specified by:
getFieldType in interface DDLRecord
Throws:
Exception

getFieldValue

public Serializable getFieldValue(String fieldName)
                           throws PortalException
Specified by:
getFieldValue in interface DDLRecord
Throws:
PortalException

getFieldValue

public Serializable getFieldValue(String fieldName,
                                  Locale locale)
                           throws PortalException
Specified by:
getFieldValue in interface DDLRecord
Throws:
PortalException

getFieldValues

public List<Serializable> getFieldValues(String fieldName,
                                         Locale locale)
                                  throws PortalException
Specified by:
getFieldValues in interface DDLRecord
Throws:
PortalException

getLatestRecordVersion

public DDLRecordVersion getLatestRecordVersion()
                                        throws PortalException,
                                               SystemException
Specified by:
getLatestRecordVersion in interface DDLRecord
Throws:
PortalException
SystemException

getRecordSet

public DDLRecordSet getRecordSet()
                          throws PortalException,
                                 SystemException
Specified by:
getRecordSet in interface DDLRecord
Throws:
PortalException
SystemException

getRecordVersion

public DDLRecordVersion getRecordVersion()
                                  throws PortalException,
                                         SystemException
Specified by:
getRecordVersion in interface DDLRecord
Throws:
PortalException
SystemException

getRecordVersion

public DDLRecordVersion getRecordVersion(String version)
                                  throws PortalException,
                                         SystemException
Specified by:
getRecordVersion in interface DDLRecord
Throws:
PortalException
SystemException

getStatus

public int getStatus()
              throws PortalException,
                     SystemException
Specified by:
getStatus in interface DDLRecord
Throws:
PortalException
SystemException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel

getWrappedDDLRecord

public DDLRecord getWrappedDDLRecord()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

public DDLRecord getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<DDLRecord>

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<DDLRecord>

Liferay 6.2-ce-ga5