|
Liferay 6.2.0-ce-m5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<JournalTemplate>
com.liferay.portlet.journal.model.impl.JournalTemplateModelImpl
@JSON(strict=true) public class JournalTemplateModelImpl
The base model implementation for the JournalTemplate service. Represents a row in the "JournalTemplate" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface JournalTemplateModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in JournalTemplateImpl.
JournalTemplateImpl,
JournalTemplate,
JournalTemplateModel,
Serialized Form| Field 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 |
ORDER_BY_JPQL
|
static String |
ORDER_BY_SQL
|
static String |
SESSION_FACTORY
|
static long |
SMALLIMAGEID_COLUMN_BITMASK
|
static long |
STRUCTUREID_COLUMN_BITMASK
|
static Object[][] |
TABLE_COLUMNS
|
static String |
TABLE_NAME
|
static String |
TABLE_SQL_CREATE
|
static String |
TABLE_SQL_DROP
|
static long |
TEMPLATEID_COLUMN_BITMASK
|
static String |
TX_MANAGER
|
static long |
UUID_COLUMN_BITMASK
|
| Constructor Summary | |
|---|---|
JournalTemplateModelImpl()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(JournalTemplate journalTemplate)
|
boolean |
equals(Object obj)
|
boolean |
getCacheable()
Returns the cacheable of this journal template. |
long |
getColumnBitmask()
|
long |
getCompanyId()
Returns the company ID of this journal template. |
Date |
getCreateDate()
Returns the create date of this journal template. |
String |
getDescription()
Returns the description of this journal template. |
String |
getDescription(Locale locale)
Returns the localized description of this journal template in the language. |
String |
getDescription(Locale locale,
boolean useDefault)
Returns the localized description of this journal template in the language, optionally using the default language if no localization exists for the requested language. |
String |
getDescription(String languageId)
Returns the localized description of this journal template in the language. |
String |
getDescription(String languageId,
boolean useDefault)
Returns the localized description of this journal template in the language, optionally using the default language if no localization exists for the requested language. |
String |
getDescriptionCurrentLanguageId()
|
String |
getDescriptionCurrentValue()
|
Map<Locale,String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this journal template. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getGroupId()
Returns the group ID of this journal template. |
long |
getId()
Returns the ID of this journal template. |
String |
getLangType()
Returns the lang type of this journal template. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this journal template. |
String |
getName()
Returns the name of this journal template. |
String |
getName(Locale locale)
Returns the localized name of this journal template in the language. |
String |
getName(Locale locale,
boolean useDefault)
Returns the localized name of this journal template 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 journal template in the language. |
String |
getName(String languageId,
boolean useDefault)
Returns the localized name of this journal template 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 journal template. |
long |
getOriginalCompanyId()
|
long |
getOriginalGroupId()
|
long |
getOriginalSmallImageId()
|
String |
getOriginalStructureId()
|
String |
getOriginalTemplateId()
|
String |
getOriginalUuid()
|
long |
getPrimaryKey()
Returns the primary key of this journal template. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
boolean |
getSmallImage()
Returns the small image of this journal template. |
long |
getSmallImageId()
Returns the small image ID of this journal template. |
String |
getSmallImageURL()
Returns the small image u r l of this journal template. |
String |
getStructureId()
Returns the structure ID of this journal template. |
String |
getTemplateId()
Returns the template ID of this journal template. |
long |
getUserId()
Returns the user ID of this journal template. |
String |
getUserName()
Returns the user name of this journal template. |
String |
getUserUuid()
Returns the user uuid of this journal template. |
String |
getUuid()
Returns the uuid of this journal template. |
String |
getXsl()
Returns the xsl of this journal template. |
int |
hashCode()
|
boolean |
isCacheable()
Returns true if this journal template is cacheable. |
boolean |
isSmallImage()
Returns true if this journal template is small image. |
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale)
|
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setCacheable(boolean cacheable)
Sets whether this journal template is cacheable. |
void |
setCompanyId(long companyId)
Sets the company ID of this journal template. |
void |
setCreateDate(Date createDate)
Sets the create date of this journal template. |
void |
setDescription(String description)
Sets the description of this journal template. |
void |
setDescription(String description,
Locale locale)
Sets the localized description of this journal template in the language. |
void |
setDescription(String description,
Locale locale,
Locale defaultLocale)
Sets the localized description of this journal template in the language, and sets the default locale. |
void |
setDescriptionCurrentLanguageId(String languageId)
|
void |
setDescriptionMap(Map<Locale,String> descriptionMap)
Sets the localized descriptions of this journal template from the map of locales and localized descriptions. |
void |
setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
Sets the localized descriptions of this journal template from the map of locales and localized descriptions, and sets the default locale. |
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 journal template. |
void |
setId(long id)
Sets the ID of this journal template. |
void |
setLangType(String langType)
Sets the lang type of this journal template. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this journal template. |
void |
setName(String name)
Sets the name of this journal template. |
void |
setName(String name,
Locale locale)
Sets the localized name of this journal template in the language. |
void |
setName(String name,
Locale locale,
Locale defaultLocale)
Sets the localized name of this journal template in the language, and sets the default locale. |
void |
setNameCurrentLanguageId(String languageId)
|
void |
setNameMap(Map<Locale,String> nameMap)
Sets the localized names of this journal template from the map of locales and localized names. |
void |
setNameMap(Map<Locale,String> nameMap,
Locale defaultLocale)
Sets the localized names of this journal template from the map of locales and localized names, and sets the default locale. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this journal template. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setSmallImage(boolean smallImage)
Sets whether this journal template is small image. |
void |
setSmallImageId(long smallImageId)
Sets the small image ID of this journal template. |
void |
setSmallImageURL(String smallImageURL)
Sets the small image u r l of this journal template. |
void |
setStructureId(String structureId)
Sets the structure ID of this journal template. |
void |
setTemplateId(String templateId)
Sets the template ID of this journal template. |
void |
setUserId(long userId)
Sets the user ID of this journal template. |
void |
setUserName(String userName)
Sets the user name of this journal template. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this journal template. |
void |
setUuid(String uuid)
Sets the uuid of this journal template. |
void |
setXsl(String xsl)
Sets the xsl of this journal template. |
CacheModel<JournalTemplate> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
JournalTemplate |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
static JournalTemplate |
toModel(JournalTemplateSoap soapModel)
Converts the soap model instance into a normal model instance. |
static List<JournalTemplate> |
toModels(JournalTemplateSoap[] soapModels)
Converts the soap model instances into normal model instances. |
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.journal.model.JournalTemplateModel |
|---|
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 SMALLIMAGEID_COLUMN_BITMASK
public static long STRUCTUREID_COLUMN_BITMASK
public static long TEMPLATEID_COLUMN_BITMASK
public static long UUID_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public JournalTemplateModelImpl()
| Method Detail |
|---|
public static JournalTemplate toModel(JournalTemplateSoap soapModel)
soapModel - the soap model instance to convert
public static List<JournalTemplate> toModels(JournalTemplateSoap[] soapModels)
soapModels - the soap model instances to convert
public long getPrimaryKey()
JournalTemplateModel
getPrimaryKey in interface JournalTemplateModelpublic void setPrimaryKey(long primaryKey)
JournalTemplateModel
setPrimaryKey in interface JournalTemplateModelprimaryKey - the primary key of this journal templatepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<JournalTemplate>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface JournalTemplateModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<JournalTemplate>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface JournalTemplateModelprimaryKeyObj - 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<JournalTemplate>getModelAttributes in class BaseModelImpl<JournalTemplate>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<JournalTemplate>setModelAttributes in class BaseModelImpl<JournalTemplate>@JSON public String getUuid()
JournalTemplateModel
getUuid in interface StagedModelgetUuid in interface JournalTemplateModelpublic void setUuid(String uuid)
JournalTemplateModel
setUuid in interface StagedModelsetUuid in interface JournalTemplateModeluuid - the uuid of this journal templatepublic String getOriginalUuid()
@JSON public long getId()
JournalTemplateModel
getId in interface JournalTemplateModelpublic void setId(long id)
JournalTemplateModel
setId in interface JournalTemplateModelid - the ID of this journal template@JSON public long getGroupId()
JournalTemplateModel
getGroupId in interface GroupedModelgetGroupId in interface JournalTemplateModelpublic void setGroupId(long groupId)
JournalTemplateModel
setGroupId in interface GroupedModelsetGroupId in interface JournalTemplateModelgroupId - the group ID of this journal templatepublic long getOriginalGroupId()
@JSON public long getCompanyId()
JournalTemplateModel
getCompanyId in interface AuditedModelgetCompanyId in interface JournalTemplateModelpublic void setCompanyId(long companyId)
JournalTemplateModel
setCompanyId in interface AuditedModelsetCompanyId in interface JournalTemplateModelcompanyId - the company ID of this journal templatepublic long getOriginalCompanyId()
@JSON public long getUserId()
JournalTemplateModel
getUserId in interface AuditedModelgetUserId in interface JournalTemplateModelpublic void setUserId(long userId)
JournalTemplateModel
setUserId in interface AuditedModelsetUserId in interface JournalTemplateModeluserId - the user ID of this journal template
public String getUserUuid()
throws SystemException
JournalTemplateModel
getUserUuid in interface AuditedModelgetUserUuid in interface JournalTemplateModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
JournalTemplateModel
setUserUuid in interface AuditedModelsetUserUuid in interface JournalTemplateModeluserUuid - the user uuid of this journal template@JSON public String getUserName()
JournalTemplateModel
getUserName in interface AuditedModelgetUserName in interface JournalTemplateModelpublic void setUserName(String userName)
JournalTemplateModel
setUserName in interface AuditedModelsetUserName in interface JournalTemplateModeluserName - the user name of this journal template@JSON public Date getCreateDate()
JournalTemplateModel
getCreateDate in interface AuditedModelgetCreateDate in interface JournalTemplateModelpublic void setCreateDate(Date createDate)
JournalTemplateModel
setCreateDate in interface AuditedModelsetCreateDate in interface JournalTemplateModelcreateDate - the create date of this journal template@JSON public Date getModifiedDate()
JournalTemplateModel
getModifiedDate in interface AuditedModelgetModifiedDate in interface JournalTemplateModelpublic void setModifiedDate(Date modifiedDate)
JournalTemplateModel
setModifiedDate in interface AuditedModelsetModifiedDate in interface JournalTemplateModelmodifiedDate - the modified date of this journal template@JSON public String getTemplateId()
JournalTemplateModel
getTemplateId in interface JournalTemplateModelpublic void setTemplateId(String templateId)
JournalTemplateModel
setTemplateId in interface JournalTemplateModeltemplateId - the template ID of this journal templatepublic String getOriginalTemplateId()
@JSON public String getStructureId()
JournalTemplateModel
getStructureId in interface JournalTemplateModelpublic void setStructureId(String structureId)
JournalTemplateModel
setStructureId in interface JournalTemplateModelstructureId - the structure ID of this journal templatepublic String getOriginalStructureId()
@JSON public String getName()
JournalTemplateModel
getName in interface JournalTemplateModelpublic String getName(Locale locale)
JournalTemplateModel
getName in interface JournalTemplateModellocale - the locale of the language
public String getName(Locale locale,
boolean useDefault)
JournalTemplateModel
getName in interface JournalTemplateModellocale - 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)
JournalTemplateModel
getName in interface JournalTemplateModellanguageId - the ID of the language
public String getName(String languageId,
boolean useDefault)
JournalTemplateModel
getName in interface JournalTemplateModellanguageId - 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 JournalTemplateModel@JSON public String getNameCurrentValue()
getNameCurrentValue in interface JournalTemplateModelpublic Map<Locale,String> getNameMap()
JournalTemplateModel
getNameMap in interface JournalTemplateModelpublic void setName(String name)
JournalTemplateModel
setName in interface JournalTemplateModelname - the name of this journal template
public void setName(String name,
Locale locale)
JournalTemplateModel
setName in interface JournalTemplateModelname - the localized name of this journal templatelocale - the locale of the language
public void setName(String name,
Locale locale,
Locale defaultLocale)
JournalTemplateModel
setName in interface JournalTemplateModelname - the localized name of this journal templatelocale - the locale of the languagedefaultLocale - the default localepublic void setNameCurrentLanguageId(String languageId)
setNameCurrentLanguageId in interface JournalTemplateModelpublic void setNameMap(Map<Locale,String> nameMap)
JournalTemplateModel
setNameMap in interface JournalTemplateModelnameMap - the locales and localized names of this journal template
public void setNameMap(Map<Locale,String> nameMap,
Locale defaultLocale)
JournalTemplateModel
setNameMap in interface JournalTemplateModelnameMap - the locales and localized names of this journal templatedefaultLocale - the default locale@JSON public String getDescription()
JournalTemplateModel
getDescription in interface JournalTemplateModelpublic String getDescription(Locale locale)
JournalTemplateModel
getDescription in interface JournalTemplateModellocale - the locale of the language
public String getDescription(Locale locale,
boolean useDefault)
JournalTemplateModel
getDescription in interface JournalTemplateModellocale - 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 getDescription(String languageId)
JournalTemplateModel
getDescription in interface JournalTemplateModellanguageId - the ID of the language
public String getDescription(String languageId,
boolean useDefault)
JournalTemplateModel
getDescription in interface JournalTemplateModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested language
public String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId in interface JournalTemplateModel@JSON public String getDescriptionCurrentValue()
getDescriptionCurrentValue in interface JournalTemplateModelpublic Map<Locale,String> getDescriptionMap()
JournalTemplateModel
getDescriptionMap in interface JournalTemplateModelpublic void setDescription(String description)
JournalTemplateModel
setDescription in interface JournalTemplateModeldescription - the description of this journal template
public void setDescription(String description,
Locale locale)
JournalTemplateModel
setDescription in interface JournalTemplateModeldescription - the localized description of this journal templatelocale - the locale of the language
public void setDescription(String description,
Locale locale,
Locale defaultLocale)
JournalTemplateModel
setDescription in interface JournalTemplateModeldescription - the localized description of this journal templatelocale - the locale of the languagedefaultLocale - the default localepublic void setDescriptionCurrentLanguageId(String languageId)
setDescriptionCurrentLanguageId in interface JournalTemplateModelpublic void setDescriptionMap(Map<Locale,String> descriptionMap)
JournalTemplateModel
setDescriptionMap in interface JournalTemplateModeldescriptionMap - the locales and localized descriptions of this journal template
public void setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
JournalTemplateModel
setDescriptionMap in interface JournalTemplateModeldescriptionMap - the locales and localized descriptions of this journal templatedefaultLocale - the default locale@JSON public String getXsl()
JournalTemplateModel
getXsl in interface JournalTemplateModelpublic void setXsl(String xsl)
JournalTemplateModel
setXsl in interface JournalTemplateModelxsl - the xsl of this journal template@JSON public String getLangType()
JournalTemplateModel
getLangType in interface JournalTemplateModelpublic void setLangType(String langType)
JournalTemplateModel
setLangType in interface JournalTemplateModellangType - the lang type of this journal template@JSON public boolean getCacheable()
JournalTemplateModel
getCacheable in interface JournalTemplateModelpublic boolean isCacheable()
JournalTemplateModeltrue if this journal template is cacheable.
isCacheable in interface JournalTemplateModeltrue if this journal template is cacheable; false otherwisepublic void setCacheable(boolean cacheable)
JournalTemplateModel
setCacheable in interface JournalTemplateModelcacheable - the cacheable of this journal template@JSON public boolean getSmallImage()
JournalTemplateModel
getSmallImage in interface JournalTemplateModelpublic boolean isSmallImage()
JournalTemplateModeltrue if this journal template is small image.
isSmallImage in interface JournalTemplateModeltrue if this journal template is small image; false otherwisepublic void setSmallImage(boolean smallImage)
JournalTemplateModel
setSmallImage in interface JournalTemplateModelsmallImage - the small image of this journal template@JSON public long getSmallImageId()
JournalTemplateModel
getSmallImageId in interface JournalTemplateModelpublic void setSmallImageId(long smallImageId)
JournalTemplateModel
setSmallImageId in interface JournalTemplateModelsmallImageId - the small image ID of this journal templatepublic long getOriginalSmallImageId()
@JSON public String getSmallImageURL()
JournalTemplateModel
getSmallImageURL in interface JournalTemplateModelpublic void setSmallImageURL(String smallImageURL)
JournalTemplateModel
setSmallImageURL in interface JournalTemplateModelsmallImageURL - the small image u r l of this journal templatepublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<JournalTemplate>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface JournalTemplateModelgetExpandoBridge in class BaseModelImpl<JournalTemplate>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<JournalTemplate>setExpandoBridgeAttributes in interface JournalTemplateModelsetExpandoBridgeAttributes in class BaseModelImpl<JournalTemplate>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface JournalTemplateModelLocaleExceptionpublic JournalTemplate toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<JournalTemplate>toEscapedModel in interface JournalTemplateModeltoEscapedModel in class BaseModelImpl<JournalTemplate>AutoEscapeBeanHandlerpublic Object clone()
BaseModel
clone in interface BaseModel<JournalTemplate>clone in interface StagedModelclone in interface JournalTemplateModelclone in class BaseModelImpl<JournalTemplate>public int compareTo(JournalTemplate journalTemplate)
compareTo in interface JournalTemplateModelcompareTo in interface Comparable<JournalTemplate>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface JournalTemplateModelhashCode in class Objectpublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<JournalTemplate>resetOriginalValues in class BaseModelImpl<JournalTemplate>public CacheModel<JournalTemplate> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<JournalTemplate>toCacheModel in interface JournalTemplateModeltoCacheModel in class BaseModelImpl<JournalTemplate>public String toString()
toString in interface JournalTemplateModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<JournalTemplate>toXmlString in interface JournalTemplateModel
|
Liferay 6.2.0-ce-m5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||