|
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.portal.model.impl.BaseModelImpl<DDMContent> com.liferay.portlet.dynamicdatamapping.model.impl.DDMContentModelImpl
public class DDMContentModelImpl
The base model implementation for the DDMContent service. Represents a row in the "DDMContent" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface DDMContentModel
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in DDMContentImpl
.
DDMContentImpl
,
DDMContent
,
DDMContentModel
,
Serialized FormField Summary | |
---|---|
static boolean |
COLUMN_BITMASK_ENABLED
|
static long |
COMPANYID_COLUMN_BITMASK
|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
GROUPID_COLUMN_BITMASK
|
static long |
LOCK_EXPIRATION_TIME
|
static String |
SESSION_FACTORY
|
static Object[][] |
TABLE_COLUMNS
|
static String |
TABLE_NAME
|
static String |
TABLE_SQL_CREATE
|
static String |
TABLE_SQL_DROP
|
static String |
TX_MANAGER
|
static long |
UUID_COLUMN_BITMASK
|
Constructor Summary | |
---|---|
DDMContentModelImpl()
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(DDMContent ddmContent)
|
boolean |
equals(Object obj)
|
long |
getColumnBitmask()
|
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 |
getOriginalCompanyId()
|
long |
getOriginalGroupId()
|
String |
getOriginalUuid()
|
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. |
String |
getXml()
Returns the xml of this d d m content. |
int |
hashCode()
|
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale)
|
void |
resetOriginalValues()
Reset all original fields to current values. |
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 |
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 com.liferay.portal.model.impl.BaseModelImpl |
---|
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.liferay.portlet.dynamicdatamapping.model.DDMContentModel |
---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew |
Field Detail |
---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final boolean COLUMN_BITMASK_ENABLED
public static long COMPANYID_COLUMN_BITMASK
public static long GROUPID_COLUMN_BITMASK
public static long UUID_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
Constructor Detail |
---|
public DDMContentModelImpl()
Method Detail |
---|
public long getPrimaryKey()
DDMContentModel
getPrimaryKey
in interface DDMContentModel
public void setPrimaryKey(long primaryKey)
DDMContentModel
setPrimaryKey
in interface DDMContentModel
primaryKey
- the primary key of this d d m contentpublic 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 Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<DDMContent>
getModelAttributes
in class BaseModelImpl<DDMContent>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<DDMContent>
setModelAttributes
in class BaseModelImpl<DDMContent>
public String getUuid()
DDMContentModel
getUuid
in interface DDMContentModel
public void setUuid(String uuid)
DDMContentModel
setUuid
in interface DDMContentModel
uuid
- the uuid of this d d m contentpublic String getOriginalUuid()
public long getContentId()
DDMContentModel
getContentId
in interface DDMContentModel
public void setContentId(long contentId)
DDMContentModel
setContentId
in interface DDMContentModel
contentId
- the content ID of this d d m contentpublic long getGroupId()
DDMContentModel
getGroupId
in interface GroupedModel
getGroupId
in interface DDMContentModel
public void setGroupId(long groupId)
DDMContentModel
setGroupId
in interface GroupedModel
setGroupId
in interface DDMContentModel
groupId
- the group ID of this d d m contentpublic long getOriginalGroupId()
public long getCompanyId()
DDMContentModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface DDMContentModel
public void setCompanyId(long companyId)
DDMContentModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface DDMContentModel
companyId
- the company ID of this d d m contentpublic long getOriginalCompanyId()
public long getUserId()
DDMContentModel
getUserId
in interface AuditedModel
getUserId
in interface DDMContentModel
public void setUserId(long userId)
DDMContentModel
setUserId
in interface AuditedModel
setUserId
in interface DDMContentModel
userId
- the user ID of this d d m contentpublic String getUserUuid() throws SystemException
DDMContentModel
getUserUuid
in interface AuditedModel
getUserUuid
in interface DDMContentModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
DDMContentModel
setUserUuid
in interface AuditedModel
setUserUuid
in interface DDMContentModel
userUuid
- the user uuid of this d d m contentpublic String getUserName()
DDMContentModel
getUserName
in interface AuditedModel
getUserName
in interface DDMContentModel
public void setUserName(String userName)
DDMContentModel
setUserName
in interface AuditedModel
setUserName
in interface DDMContentModel
userName
- the user name of this d d m contentpublic Date getCreateDate()
DDMContentModel
getCreateDate
in interface AuditedModel
getCreateDate
in interface DDMContentModel
public void setCreateDate(Date createDate)
DDMContentModel
setCreateDate
in interface AuditedModel
setCreateDate
in interface DDMContentModel
createDate
- the create date of this d d m contentpublic Date getModifiedDate()
DDMContentModel
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface DDMContentModel
public void setModifiedDate(Date modifiedDate)
DDMContentModel
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface DDMContentModel
modifiedDate
- the modified date of this d d m contentpublic String getName()
DDMContentModel
getName
in interface DDMContentModel
public String getName(Locale locale)
DDMContentModel
getName
in interface DDMContentModel
locale
- the locale of the language
public String getName(Locale locale, boolean useDefault)
DDMContentModel
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)
DDMContentModel
getName
in interface DDMContentModel
languageId
- the ID of the language
public String getName(String languageId, boolean useDefault)
DDMContentModel
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
@JSON public String getNameCurrentValue()
getNameCurrentValue
in interface DDMContentModel
public Map<Locale,String> getNameMap()
DDMContentModel
getNameMap
in interface DDMContentModel
public void setName(String name)
DDMContentModel
setName
in interface DDMContentModel
name
- the name of this d d m contentpublic void setName(String name, Locale locale)
DDMContentModel
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)
DDMContentModel
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)
DDMContentModel
setNameMap
in interface DDMContentModel
nameMap
- the locales and localized names of this d d m contentpublic void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
DDMContentModel
setNameMap
in interface DDMContentModel
nameMap
- the locales and localized names of this d d m contentdefaultLocale
- the default localepublic String getDescription()
DDMContentModel
getDescription
in interface DDMContentModel
public void setDescription(String description)
DDMContentModel
setDescription
in interface DDMContentModel
description
- the description of this d d m contentpublic String getXml()
DDMContentModel
getXml
in interface DDMContentModel
public void setXml(String xml)
DDMContentModel
setXml
in interface DDMContentModel
xml
- the xml of this d d m contentpublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<DDMContent>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface DDMContentModel
getExpandoBridge
in class BaseModelImpl<DDMContent>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<DDMContent>
setExpandoBridgeAttributes
in interface DDMContentModel
setExpandoBridgeAttributes
in class BaseModelImpl<DDMContent>
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
prepareLocalizedFieldsForImport
in interface DDMContentModel
LocaleException
public DDMContent toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<DDMContent>
toEscapedModel
in interface DDMContentModel
toEscapedModel
in class BaseModelImpl<DDMContent>
AutoEscapeBeanHandler
public DDMContent toUnescapedModel()
toUnescapedModel
in interface BaseModel<DDMContent>
toUnescapedModel
in interface DDMContentModel
toUnescapedModel
in class BaseModelImpl<DDMContent>
public Object clone()
BaseModel
clone
in interface BaseModel<DDMContent>
clone
in interface DDMContentModel
clone
in class BaseModelImpl<DDMContent>
public int compareTo(DDMContent ddmContent)
compareTo
in interface DDMContentModel
compareTo
in interface Comparable<DDMContent>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in interface DDMContentModel
hashCode
in class Object
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<DDMContent>
resetOriginalValues
in class BaseModelImpl<DDMContent>
public CacheModel<DDMContent> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<DDMContent>
toCacheModel
in interface DDMContentModel
toCacheModel
in class BaseModelImpl<DDMContent>
public String toString()
toString
in interface DDMContentModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<DDMContent>
toXmlString
in interface DDMContentModel
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |