|
Liferay 6.2.0-ce-rc6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.dynamicdatamapping.model.DDMContentWrapper
public class DDMContentWrapper
This class is a wrapper for DDMContent.
DDMContent,
Serialized Form| Constructor Summary | |
|---|---|
DDMContentWrapper(DDMContent ddmContent)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(DDMContent ddmContent)
|
boolean |
equals(Object obj)
|
String[] |
getAvailableLanguageIds()
|
long |
getCompanyId()
Returns the company ID of this d d m content. |
long |
getContentId()
Returns the content ID of this d d m content. |
Date |
getCreateDate()
Returns the create date of this d d m content. |
String |
getDefaultLanguageId()
|
String |
getDescription()
Returns the description of this d d m content. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getGroupId()
Returns the group ID of this d d m content. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this d d m content. |
String |
getName()
Returns the name of this d d m content. |
String |
getName(Locale locale)
Returns the localized name of this d d m content in the language. |
String |
getName(Locale locale,
boolean useDefault)
Returns the localized name of this d d m content in the language, optionally using the default language if no localization exists for the requested language. |
String |
getName(String languageId)
Returns the localized name of this d d m content in the language. |
String |
getName(String languageId,
boolean useDefault)
Returns the localized name of this d d m content in the language, optionally using the default language if no localization exists for the requested language. |
String |
getNameCurrentLanguageId()
|
String |
getNameCurrentValue()
|
Map<Locale,String> |
getNameMap()
Returns a map of the locales and localized names of this d d m content. |
long |
getPrimaryKey()
Returns the primary key of this d d m content. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
StagedModelType |
getStagedModelType()
|
long |
getUserId()
Returns the user ID of this d d m content. |
String |
getUserName()
Returns the user name of this d d m content. |
String |
getUserUuid()
Returns the user uuid of this d d m content. |
String |
getUuid()
Returns the uuid of this d d m content. |
DDMContent |
getWrappedDDMContent()
Deprecated. As of 6.1.0, replaced by getWrappedModel() |
DDMContent |
getWrappedModel()
|
String |
getXml()
Returns the xml of this d d m content. |
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 |
prepareLocalizedFieldsForImport()
|
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale)
|
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 m content. |
void |
setContentId(long contentId)
Sets the content ID of this d d m content. |
void |
setCreateDate(Date createDate)
Sets the create date of this d d m content. |
void |
setDescription(String description)
Sets the description of this d d m content. |
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 m content. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this d d m content. |
void |
setName(String name)
Sets the name of this d d m content. |
void |
setName(String name,
Locale locale)
Sets the localized name of this d d m content in the language. |
void |
setName(String name,
Locale locale,
Locale defaultLocale)
Sets the localized name of this d d m content in the language, and sets the default locale. |
void |
setNameCurrentLanguageId(String languageId)
|
void |
setNameMap(Map<Locale,String> nameMap)
Sets the localized names of this d d m content from the map of locales and localized names. |
void |
setNameMap(Map<Locale,String> nameMap,
Locale defaultLocale)
Sets the localized names of this d d m content from the map of locales and localized names, and sets the default locale. |
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 m content. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setUserId(long userId)
Sets the user ID of this d d m content. |
void |
setUserName(String userName)
Sets the user name of this d d m content. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this d d m content. |
void |
setUuid(String uuid)
Sets the uuid of this d d m content. |
void |
setXml(String xml)
Sets the xml of this d d m content. |
CacheModel<DDMContent> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
DDMContent |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
DDMContent |
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 DDMContentWrapper(DDMContent ddmContent)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<DDMContent>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<DDMContent>public long getPrimaryKey()
getPrimaryKey in interface DDMContentModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface DDMContentModelprimaryKey - the primary key of this d d m contentpublic String getUuid()
getUuid in interface StagedModelgetUuid in interface DDMContentModelpublic void setUuid(String uuid)
setUuid in interface StagedModelsetUuid in interface DDMContentModeluuid - the uuid of this d d m contentpublic long getContentId()
getContentId in interface DDMContentModelpublic void setContentId(long contentId)
setContentId in interface DDMContentModelcontentId - the content ID of this d d m contentpublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface DDMContentModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface DDMContentModelgroupId - the group ID of this d d m contentpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface StagedModelgetCompanyId in interface DDMContentModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface StagedModelsetCompanyId in interface DDMContentModelcompanyId - the company ID of this d d m contentpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface DDMContentModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface DDMContentModeluserId - the user ID of this d d m content
public String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface DDMContentModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface DDMContentModeluserUuid - the user uuid of this d d m contentpublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface DDMContentModelpublic void setUserName(String userName)
setUserName in interface AuditedModelsetUserName in interface DDMContentModeluserName - the user name of this d d m contentpublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface StagedModelgetCreateDate in interface DDMContentModelpublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface StagedModelsetCreateDate in interface DDMContentModelcreateDate - the create date of this d d m contentpublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelgetModifiedDate in interface DDMContentModelpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelsetModifiedDate in interface DDMContentModelmodifiedDate - the modified date of this d d m contentpublic String getName()
getName in interface DDMContentModelpublic String getName(Locale locale)
getName in interface DDMContentModellocale - the locale of the language
public String getName(Locale locale,
boolean useDefault)
getName in interface DDMContentModellocale - the local of the languageuseDefault - whether to use the default language if no localization exists for the requested language
useDefault is false and no localization exists for the requested language, an empty string will be returned.public String getName(String languageId)
getName in interface DDMContentModellanguageId - the ID of the language
public String getName(String languageId,
boolean useDefault)
getName in interface DDMContentModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested language
public String getNameCurrentLanguageId()
getNameCurrentLanguageId in interface DDMContentModelpublic String getNameCurrentValue()
getNameCurrentValue in interface DDMContentModelpublic Map<Locale,String> getNameMap()
getNameMap in interface DDMContentModelpublic void setName(String name)
setName in interface DDMContentModelname - the name of this d d m content
public void setName(String name,
Locale locale)
setName in interface DDMContentModelname - the localized name of this d d m contentlocale - the locale of the language
public void setName(String name,
Locale locale,
Locale defaultLocale)
setName in interface DDMContentModelname - the localized name of this d d m contentlocale - the locale of the languagedefaultLocale - the default localepublic void setNameCurrentLanguageId(String languageId)
setNameCurrentLanguageId in interface DDMContentModelpublic void setNameMap(Map<Locale,String> nameMap)
setNameMap in interface DDMContentModelnameMap - the locales and localized names of this d d m content
public void setNameMap(Map<Locale,String> nameMap,
Locale defaultLocale)
setNameMap in interface DDMContentModelnameMap - the locales and localized names of this d d m contentdefaultLocale - the default localepublic String getDescription()
getDescription in interface DDMContentModelpublic void setDescription(String description)
setDescription in interface DDMContentModeldescription - the description of this d d m contentpublic String getXml()
getXml in interface DDMContentModelpublic void setXml(String xml)
setXml in interface DDMContentModelxml - the xml of this d d m contentpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<DDMContent>isNew in interface DDMContentModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<DDMContent>setNew in interface DDMContentModeln - 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<DDMContent>isCachedModel in interface DDMContentModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<DDMContent>setCachedModel in interface DDMContentModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<DDMContent>isEscapedModel in interface DDMContentModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<DDMContent>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface DDMContentModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<DDMContent>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface DDMContentModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<DDMContent>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface DDMContentModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<DDMContent>setExpandoBridgeAttributes in interface DDMContentModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<DDMContent>setExpandoBridgeAttributes in interface DDMContentModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<DDMContent>setExpandoBridgeAttributes in interface DDMContentModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface DDMContentModelpublic String getDefaultLanguageId()
getDefaultLanguageId in interface DDMContentModel
public void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface DDMContentModelLocaleException
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface DDMContentModelLocaleExceptionpublic Object clone()
BaseModel
clone in interface BaseModel<DDMContent>clone in interface StagedModelclone in interface DDMContentModelclone in class Objectpublic int compareTo(DDMContent ddmContent)
compareTo in interface DDMContentModelcompareTo in interface Comparable<DDMContent>public int hashCode()
hashCode in interface DDMContentModelhashCode in class Objectpublic CacheModel<DDMContent> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<DDMContent>toCacheModel in interface DDMContentModelpublic DDMContent toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<DDMContent>toEscapedModel in interface DDMContentModelAutoEscapeBeanHandlerpublic DDMContent toUnescapedModel()
toUnescapedModel in interface BaseModel<DDMContent>toUnescapedModel in interface DDMContentModelpublic String toString()
toString in interface DDMContentModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<DDMContent>toXmlString in interface DDMContentModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurredpublic boolean equals(Object obj)
equals in class Objectpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic DDMContent getWrappedDDMContent()
getWrappedModel()
public DDMContent getWrappedModel()
getWrappedModel in interface ModelWrapper<DDMContent>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<DDMContent>
|
Liferay 6.2.0-ce-rc6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||