|
Liferay 6.2-ce-ga4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 Form| Field Summary | |
|---|---|
static boolean |
COLUMN_BITMASK_ENABLED
|
static long |
COMPANYID_COLUMN_BITMASK
|
static long |
CONTENTID_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 |
ORDER_BY_JPQL
|
static String |
ORDER_BY_SQL
|
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)
|
String[] |
getAvailableLanguageIds()
|
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 |
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 |
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. |
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. |
String |
getXml()
Returns the xml of this d d m content. |
int |
hashCode()
|
void |
prepareLocalizedFieldsForImport()
|
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()
|
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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| 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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| 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 ORDER_BY_JPQL
public static final String ORDER_BY_SQL
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 long CONTENTID_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public DDMContentModelImpl()
| Method Detail |
|---|
public long getPrimaryKey()
DDMContentModel
getPrimaryKey in interface DDMContentModelpublic void setPrimaryKey(long primaryKey)
DDMContentModel
setPrimaryKey in interface DDMContentModelprimaryKey - the primary key of this d d m contentpublic 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 Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic 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 StagedModelgetUuid in interface DDMContentModelpublic void setUuid(String uuid)
DDMContentModel
setUuid in interface StagedModelsetUuid in interface DDMContentModeluuid - the uuid of this d d m contentpublic String getOriginalUuid()
public long getContentId()
DDMContentModel
getContentId in interface DDMContentModelpublic void setContentId(long contentId)
DDMContentModel
setContentId in interface DDMContentModelcontentId - the content ID of this d d m contentpublic long getGroupId()
DDMContentModel
getGroupId in interface GroupedModelgetGroupId in interface DDMContentModelpublic void setGroupId(long groupId)
DDMContentModel
setGroupId in interface GroupedModelsetGroupId in interface DDMContentModelgroupId - the group ID of this d d m contentpublic long getOriginalGroupId()
public long getCompanyId()
DDMContentModel
getCompanyId in interface AuditedModelgetCompanyId in interface StagedModelgetCompanyId in interface DDMContentModelpublic void setCompanyId(long companyId)
DDMContentModel
setCompanyId in interface AuditedModelsetCompanyId in interface StagedModelsetCompanyId in interface DDMContentModelcompanyId - the company ID of this d d m contentpublic long getOriginalCompanyId()
public long getUserId()
DDMContentModel
getUserId in interface AuditedModelgetUserId in interface DDMContentModelpublic void setUserId(long userId)
DDMContentModel
setUserId in interface AuditedModelsetUserId in interface DDMContentModeluserId - the user ID of this d d m content
public String getUserUuid()
throws SystemException
DDMContentModel
getUserUuid in interface AuditedModelgetUserUuid in interface DDMContentModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
DDMContentModel
setUserUuid in interface AuditedModelsetUserUuid in interface DDMContentModeluserUuid - the user uuid of this d d m contentpublic String getUserName()
DDMContentModel
getUserName in interface AuditedModelgetUserName in interface DDMContentModelpublic void setUserName(String userName)
DDMContentModel
setUserName in interface AuditedModelsetUserName in interface DDMContentModeluserName - the user name of this d d m contentpublic Date getCreateDate()
DDMContentModel
getCreateDate in interface AuditedModelgetCreateDate in interface StagedModelgetCreateDate in interface DDMContentModelpublic void setCreateDate(Date createDate)
DDMContentModel
setCreateDate in interface AuditedModelsetCreateDate in interface StagedModelsetCreateDate in interface DDMContentModelcreateDate - the create date of this d d m contentpublic Date getModifiedDate()
DDMContentModel
getModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelgetModifiedDate in interface DDMContentModelpublic void setModifiedDate(Date modifiedDate)
DDMContentModel
setModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelsetModifiedDate in interface DDMContentModelmodifiedDate - the modified date of this d d m contentpublic String getName()
DDMContentModel
getName in interface DDMContentModelpublic String getName(Locale locale)
DDMContentModel
getName in interface DDMContentModellocale - the locale of the language
public String getName(Locale locale,
boolean useDefault)
DDMContentModel
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)
DDMContentModel
getName in interface DDMContentModellanguageId - the ID of the language
public String getName(String languageId,
boolean useDefault)
DDMContentModel
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 DDMContentModel@JSON public String getNameCurrentValue()
getNameCurrentValue in interface DDMContentModelpublic Map<Locale,String> getNameMap()
DDMContentModel
getNameMap in interface DDMContentModelpublic void setName(String name)
DDMContentModel
setName in interface DDMContentModelname - the name of this d d m content
public void setName(String name,
Locale locale)
DDMContentModel
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)
DDMContentModel
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)
DDMContentModel
setNameMap in interface DDMContentModelnameMap - the locales and localized names of this d d m content
public void setNameMap(Map<Locale,String> nameMap,
Locale defaultLocale)
DDMContentModel
setNameMap in interface DDMContentModelnameMap - the locales and localized names of this d d m contentdefaultLocale - the default localepublic String getDescription()
DDMContentModel
getDescription in interface DDMContentModelpublic void setDescription(String description)
DDMContentModel
setDescription in interface DDMContentModeldescription - the description of this d d m contentpublic String getXml()
DDMContentModel
getXml in interface DDMContentModelpublic void setXml(String xml)
DDMContentModel
setXml in interface DDMContentModelxml - the xml of this d d m contentpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<DDMContent>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface DDMContentModelgetExpandoBridge in class BaseModelImpl<DDMContent>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<DDMContent>setExpandoBridgeAttributes in interface DDMContentModelsetExpandoBridgeAttributes in class BaseModelImpl<DDMContent>serviceContext - 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 DDMContent toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<DDMContent>toEscapedModel in interface DDMContentModeltoEscapedModel in class BaseModelImpl<DDMContent>AutoEscapeBeanHandlerpublic Object clone()
BaseModel
clone in interface BaseModel<DDMContent>clone in interface StagedModelclone in interface DDMContentModelclone in class BaseModelImpl<DDMContent>public int compareTo(DDMContent ddmContent)
compareTo in interface DDMContentModelcompareTo in interface Comparable<DDMContent>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface DDMContentModelhashCode in class Objectpublic 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 DDMContentModeltoCacheModel in class BaseModelImpl<DDMContent>public String toString()
toString in interface DDMContentModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<DDMContent>toXmlString in interface DDMContentModel
|
Liferay 6.2-ce-ga4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||