|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.dynamicdatamapping.model.DDMContentWrapper
public class DDMContentWrapper
This class is a wrapper for DDMContent
.
DDMContent
,
Serialized FormConstructor Summary | |
---|---|
DDMContentWrapper(DDMContent ddmContent)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(DDMContent ddmContent)
|
boolean |
equals(Object obj)
|
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 |
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. |
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. Renamed to 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(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(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 ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public 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 DDMContentModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface DDMContentModel
primaryKey
- the primary key of this d d m contentpublic String getUuid()
getUuid
in interface DDMContentModel
public void setUuid(String uuid)
setUuid
in interface DDMContentModel
uuid
- the uuid of this d d m contentpublic long getContentId()
getContentId
in interface DDMContentModel
public void setContentId(long contentId)
setContentId
in interface DDMContentModel
contentId
- the content ID of this d d m contentpublic long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface DDMContentModel
public void setGroupId(long groupId)
setGroupId
in interface GroupedModel
setGroupId
in interface DDMContentModel
groupId
- the group ID of this d d m contentpublic long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface DDMContentModel
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface DDMContentModel
companyId
- the company ID of this d d m contentpublic long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface DDMContentModel
public void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface DDMContentModel
userId
- the user ID of this d d m contentpublic String getUserUuid() throws SystemException
getUserUuid
in interface AuditedModel
getUserUuid
in interface DDMContentModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface DDMContentModel
userUuid
- the user uuid of this d d m contentpublic String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface DDMContentModel
public void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface DDMContentModel
userName
- the user name of this d d m contentpublic Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface DDMContentModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface DDMContentModel
createDate
- the create date of this d d m contentpublic Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface DDMContentModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface DDMContentModel
modifiedDate
- the modified date of this d d m contentpublic String getName()
getName
in interface DDMContentModel
public String getName(Locale locale)
getName
in interface DDMContentModel
locale
- the locale of the language
public String getName(Locale locale, boolean useDefault)
getName
in interface DDMContentModel
locale
- 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 DDMContentModel
languageId
- the ID of the language
public String getName(String languageId, boolean useDefault)
getName
in interface DDMContentModel
languageId
- 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 DDMContentModel
public String getNameCurrentValue()
getNameCurrentValue
in interface DDMContentModel
public Map<Locale,String> getNameMap()
getNameMap
in interface DDMContentModel
public void setName(String name)
setName
in interface DDMContentModel
name
- the name of this d d m contentpublic void setName(String name, Locale locale)
setName
in interface DDMContentModel
name
- the localized name of this d d m contentlocale
- the locale of the languagepublic void setName(String name, Locale locale, Locale defaultLocale)
setName
in interface DDMContentModel
name
- the localized name of this d d m contentlocale
- the locale of the languagedefaultLocale
- the default localepublic void setNameCurrentLanguageId(String languageId)
setNameCurrentLanguageId
in interface DDMContentModel
public void setNameMap(Map<Locale,String> nameMap)
setNameMap
in interface DDMContentModel
nameMap
- the locales and localized names of this d d m contentpublic void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
setNameMap
in interface DDMContentModel
nameMap
- the locales and localized names of this d d m contentdefaultLocale
- the default localepublic String getDescription()
getDescription
in interface DDMContentModel
public void setDescription(String description)
setDescription
in interface DDMContentModel
description
- the description of this d d m contentpublic String getXml()
getXml
in interface DDMContentModel
public void setXml(String xml)
setXml
in interface DDMContentModel
xml
- the xml of this d d m contentpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<DDMContent>
isNew
in interface DDMContentModel
true
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 DDMContentModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<DDMContent>
isCachedModel
in interface DDMContentModel
true
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 DDMContentModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<DDMContent>
isEscapedModel
in interface DDMContentModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<DDMContent>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface DDMContentModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<DDMContent>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface DDMContentModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<DDMContent>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface DDMContentModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<DDMContent>
setExpandoBridgeAttributes
in interface DDMContentModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
prepareLocalizedFieldsForImport
in interface DDMContentModel
LocaleException
public Object clone()
BaseModel
clone
in interface BaseModel<DDMContent>
clone
in interface DDMContentModel
clone
in class Object
public int compareTo(DDMContent ddmContent)
compareTo
in interface DDMContentModel
compareTo
in interface Comparable<DDMContent>
public int hashCode()
hashCode
in interface DDMContentModel
hashCode
in class Object
public CacheModel<DDMContent> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<DDMContent>
toCacheModel
in interface DDMContentModel
public DDMContent toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<DDMContent>
toEscapedModel
in interface DDMContentModel
AutoEscapeBeanHandler
public DDMContent toUnescapedModel()
toUnescapedModel
in interface BaseModel<DDMContent>
toUnescapedModel
in interface DDMContentModel
public String toString()
toString
in interface DDMContentModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<DDMContent>
toXmlString
in interface DDMContentModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean equals(Object obj)
equals
in class Object
public DDMContent getWrappedDDMContent()
getWrappedModel()
public DDMContent getWrappedModel()
getWrappedModel
in interface ModelWrapper<DDMContent>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<DDMContent>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |