Liferay 6.1.2-ce-ga3

com.liferay.portlet.journal.model.impl
Class JournalTemplateModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<JournalTemplate>
      extended by com.liferay.portlet.journal.model.impl.JournalTemplateModelImpl
All Implemented Interfaces:
AuditedModel, BaseModel<JournalTemplate>, ClassedModel, GroupedModel, JournalTemplateModel, Serializable, Cloneable, Comparable<JournalTemplate>
Direct Known Subclasses:
JournalTemplateBaseImpl

@JSON(strict=true)
public class JournalTemplateModelImpl
extends BaseModelImpl<JournalTemplate>
implements JournalTemplateModel

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.

See Also:
JournalTemplateImpl, JournalTemplate, JournalTemplateModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
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 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()
           
 JournalTemplate 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.journal.model.JournalTemplateModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

GROUPID_COLUMN_BITMASK

public static long GROUPID_COLUMN_BITMASK

SMALLIMAGEID_COLUMN_BITMASK

public static long SMALLIMAGEID_COLUMN_BITMASK

STRUCTUREID_COLUMN_BITMASK

public static long STRUCTUREID_COLUMN_BITMASK

TEMPLATEID_COLUMN_BITMASK

public static long TEMPLATEID_COLUMN_BITMASK

UUID_COLUMN_BITMASK

public static long UUID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

JournalTemplateModelImpl

public JournalTemplateModelImpl()
Method Detail

toModel

public static JournalTemplate toModel(JournalTemplateSoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<JournalTemplate> toModels(JournalTemplateSoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: JournalTemplateModel
Returns the primary key of this journal template.

Specified by:
getPrimaryKey in interface JournalTemplateModel
Returns:
the primary key of this journal template

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: JournalTemplateModel
Sets the primary key of this journal template.

Specified by:
setPrimaryKey in interface JournalTemplateModel
Parameters:
primaryKey - the primary key of this journal template

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<JournalTemplate>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface JournalTemplateModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<JournalTemplate>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface JournalTemplateModel
Parameters:
primaryKeyObj - the primary key of this model instance

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<JournalTemplate>
Overrides:
getModelAttributes in class BaseModelImpl<JournalTemplate>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<JournalTemplate>
Overrides:
setModelAttributes in class BaseModelImpl<JournalTemplate>

getUuid

@JSON
public String getUuid()
Description copied from interface: JournalTemplateModel
Returns the uuid of this journal template.

Specified by:
getUuid in interface JournalTemplateModel
Returns:
the uuid of this journal template

setUuid

public void setUuid(String uuid)
Description copied from interface: JournalTemplateModel
Sets the uuid of this journal template.

Specified by:
setUuid in interface JournalTemplateModel
Parameters:
uuid - the uuid of this journal template

getOriginalUuid

public String getOriginalUuid()

getId

@JSON
public long getId()
Description copied from interface: JournalTemplateModel
Returns the ID of this journal template.

Specified by:
getId in interface JournalTemplateModel
Returns:
the ID of this journal template

setId

public void setId(long id)
Description copied from interface: JournalTemplateModel
Sets the ID of this journal template.

Specified by:
setId in interface JournalTemplateModel
Parameters:
id - the ID of this journal template

getGroupId

@JSON
public long getGroupId()
Description copied from interface: JournalTemplateModel
Returns the group ID of this journal template.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface JournalTemplateModel
Returns:
the group ID of this journal template

setGroupId

public void setGroupId(long groupId)
Description copied from interface: JournalTemplateModel
Sets the group ID of this journal template.

Specified by:
setGroupId in interface GroupedModel
Specified by:
setGroupId in interface JournalTemplateModel
Parameters:
groupId - the group ID of this journal template

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: JournalTemplateModel
Returns the company ID of this journal template.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface JournalTemplateModel
Returns:
the company ID of this journal template

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: JournalTemplateModel
Sets the company ID of this journal template.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface JournalTemplateModel
Parameters:
companyId - the company ID of this journal template

getUserId

@JSON
public long getUserId()
Description copied from interface: JournalTemplateModel
Returns the user ID of this journal template.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface JournalTemplateModel
Returns:
the user ID of this journal template

setUserId

public void setUserId(long userId)
Description copied from interface: JournalTemplateModel
Sets the user ID of this journal template.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface JournalTemplateModel
Parameters:
userId - the user ID of this journal template

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: JournalTemplateModel
Returns the user uuid of this journal template.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface JournalTemplateModel
Returns:
the user uuid of this journal template
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: JournalTemplateModel
Sets the user uuid of this journal template.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface JournalTemplateModel
Parameters:
userUuid - the user uuid of this journal template

getUserName

@JSON
public String getUserName()
Description copied from interface: JournalTemplateModel
Returns the user name of this journal template.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface JournalTemplateModel
Returns:
the user name of this journal template

setUserName

public void setUserName(String userName)
Description copied from interface: JournalTemplateModel
Sets the user name of this journal template.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface JournalTemplateModel
Parameters:
userName - the user name of this journal template

getCreateDate

@JSON
public Date getCreateDate()
Description copied from interface: JournalTemplateModel
Returns the create date of this journal template.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface JournalTemplateModel
Returns:
the create date of this journal template

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: JournalTemplateModel
Sets the create date of this journal template.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface JournalTemplateModel
Parameters:
createDate - the create date of this journal template

getModifiedDate

@JSON
public Date getModifiedDate()
Description copied from interface: JournalTemplateModel
Returns the modified date of this journal template.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface JournalTemplateModel
Returns:
the modified date of this journal template

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: JournalTemplateModel
Sets the modified date of this journal template.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface JournalTemplateModel
Parameters:
modifiedDate - the modified date of this journal template

getTemplateId

@JSON
public String getTemplateId()
Description copied from interface: JournalTemplateModel
Returns the template ID of this journal template.

Specified by:
getTemplateId in interface JournalTemplateModel
Returns:
the template ID of this journal template

setTemplateId

public void setTemplateId(String templateId)
Description copied from interface: JournalTemplateModel
Sets the template ID of this journal template.

Specified by:
setTemplateId in interface JournalTemplateModel
Parameters:
templateId - the template ID of this journal template

getOriginalTemplateId

public String getOriginalTemplateId()

getStructureId

@JSON
public String getStructureId()
Description copied from interface: JournalTemplateModel
Returns the structure ID of this journal template.

Specified by:
getStructureId in interface JournalTemplateModel
Returns:
the structure ID of this journal template

setStructureId

public void setStructureId(String structureId)
Description copied from interface: JournalTemplateModel
Sets the structure ID of this journal template.

Specified by:
setStructureId in interface JournalTemplateModel
Parameters:
structureId - the structure ID of this journal template

getOriginalStructureId

public String getOriginalStructureId()

getName

@JSON
public String getName()
Description copied from interface: JournalTemplateModel
Returns the name of this journal template.

Specified by:
getName in interface JournalTemplateModel
Returns:
the name of this journal template

getName

public String getName(Locale locale)
Description copied from interface: JournalTemplateModel
Returns the localized name of this journal template in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getName in interface JournalTemplateModel
Parameters:
locale - the locale of the language
Returns:
the localized name of this journal template

getName

public String getName(Locale locale,
                      boolean useDefault)
Description copied from interface: JournalTemplateModel
Returns the localized name of this journal template in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getName in interface JournalTemplateModel
Parameters:
locale - the local of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized name of this journal template. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getName

public String getName(String languageId)
Description copied from interface: JournalTemplateModel
Returns the localized name of this journal template in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getName in interface JournalTemplateModel
Parameters:
languageId - the ID of the language
Returns:
the localized name of this journal template

getName

public String getName(String languageId,
                      boolean useDefault)
Description copied from interface: JournalTemplateModel
Returns the localized name of this journal template in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getName in interface JournalTemplateModel
Parameters:
languageId - the ID of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized name of this journal template

getNameCurrentLanguageId

public String getNameCurrentLanguageId()
Specified by:
getNameCurrentLanguageId in interface JournalTemplateModel

getNameCurrentValue

@JSON
public String getNameCurrentValue()
Specified by:
getNameCurrentValue in interface JournalTemplateModel

getNameMap

public Map<Locale,String> getNameMap()
Description copied from interface: JournalTemplateModel
Returns a map of the locales and localized names of this journal template.

Specified by:
getNameMap in interface JournalTemplateModel
Returns:
the locales and localized names of this journal template

setName

public void setName(String name)
Description copied from interface: JournalTemplateModel
Sets the name of this journal template.

Specified by:
setName in interface JournalTemplateModel
Parameters:
name - the name of this journal template

setName

public void setName(String name,
                    Locale locale)
Description copied from interface: JournalTemplateModel
Sets the localized name of this journal template in the language.

Specified by:
setName in interface JournalTemplateModel
Parameters:
name - the localized name of this journal template
locale - the locale of the language

setName

public void setName(String name,
                    Locale locale,
                    Locale defaultLocale)
Description copied from interface: JournalTemplateModel
Sets the localized name of this journal template in the language, and sets the default locale.

Specified by:
setName in interface JournalTemplateModel
Parameters:
name - the localized name of this journal template
locale - the locale of the language
defaultLocale - the default locale

setNameCurrentLanguageId

public void setNameCurrentLanguageId(String languageId)
Specified by:
setNameCurrentLanguageId in interface JournalTemplateModel

setNameMap

public void setNameMap(Map<Locale,String> nameMap)
Description copied from interface: JournalTemplateModel
Sets the localized names of this journal template from the map of locales and localized names.

Specified by:
setNameMap in interface JournalTemplateModel
Parameters:
nameMap - the locales and localized names of this journal template

setNameMap

public void setNameMap(Map<Locale,String> nameMap,
                       Locale defaultLocale)
Description copied from interface: JournalTemplateModel
Sets the localized names of this journal template from the map of locales and localized names, and sets the default locale.

Specified by:
setNameMap in interface JournalTemplateModel
Parameters:
nameMap - the locales and localized names of this journal template
defaultLocale - the default locale

getDescription

@JSON
public String getDescription()
Description copied from interface: JournalTemplateModel
Returns the description of this journal template.

Specified by:
getDescription in interface JournalTemplateModel
Returns:
the description of this journal template

getDescription

public String getDescription(Locale locale)
Description copied from interface: JournalTemplateModel
Returns the localized description of this journal template in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getDescription in interface JournalTemplateModel
Parameters:
locale - the locale of the language
Returns:
the localized description of this journal template

getDescription

public String getDescription(Locale locale,
                             boolean useDefault)
Description copied from interface: JournalTemplateModel
Returns the localized description of this journal template in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getDescription in interface JournalTemplateModel
Parameters:
locale - the local of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized description of this journal template. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getDescription

public String getDescription(String languageId)
Description copied from interface: JournalTemplateModel
Returns the localized description of this journal template in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getDescription in interface JournalTemplateModel
Parameters:
languageId - the ID of the language
Returns:
the localized description of this journal template

getDescription

public String getDescription(String languageId,
                             boolean useDefault)
Description copied from interface: JournalTemplateModel
Returns the localized description of this journal template in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getDescription in interface JournalTemplateModel
Parameters:
languageId - the ID of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized description of this journal template

getDescriptionCurrentLanguageId

public String getDescriptionCurrentLanguageId()
Specified by:
getDescriptionCurrentLanguageId in interface JournalTemplateModel

getDescriptionCurrentValue

@JSON
public String getDescriptionCurrentValue()
Specified by:
getDescriptionCurrentValue in interface JournalTemplateModel

getDescriptionMap

public Map<Locale,String> getDescriptionMap()
Description copied from interface: JournalTemplateModel
Returns a map of the locales and localized descriptions of this journal template.

Specified by:
getDescriptionMap in interface JournalTemplateModel
Returns:
the locales and localized descriptions of this journal template

setDescription

public void setDescription(String description)
Description copied from interface: JournalTemplateModel
Sets the description of this journal template.

Specified by:
setDescription in interface JournalTemplateModel
Parameters:
description - the description of this journal template

setDescription

public void setDescription(String description,
                           Locale locale)
Description copied from interface: JournalTemplateModel
Sets the localized description of this journal template in the language.

Specified by:
setDescription in interface JournalTemplateModel
Parameters:
description - the localized description of this journal template
locale - the locale of the language

setDescription

public void setDescription(String description,
                           Locale locale,
                           Locale defaultLocale)
Description copied from interface: JournalTemplateModel
Sets the localized description of this journal template in the language, and sets the default locale.

Specified by:
setDescription in interface JournalTemplateModel
Parameters:
description - the localized description of this journal template
locale - the locale of the language
defaultLocale - the default locale

setDescriptionCurrentLanguageId

public void setDescriptionCurrentLanguageId(String languageId)
Specified by:
setDescriptionCurrentLanguageId in interface JournalTemplateModel

setDescriptionMap

public void setDescriptionMap(Map<Locale,String> descriptionMap)
Description copied from interface: JournalTemplateModel
Sets the localized descriptions of this journal template from the map of locales and localized descriptions.

Specified by:
setDescriptionMap in interface JournalTemplateModel
Parameters:
descriptionMap - the locales and localized descriptions of this journal template

setDescriptionMap

public void setDescriptionMap(Map<Locale,String> descriptionMap,
                              Locale defaultLocale)
Description copied from interface: JournalTemplateModel
Sets the localized descriptions of this journal template from the map of locales and localized descriptions, and sets the default locale.

Specified by:
setDescriptionMap in interface JournalTemplateModel
Parameters:
descriptionMap - the locales and localized descriptions of this journal template
defaultLocale - the default locale

getXsl

@JSON
public String getXsl()
Description copied from interface: JournalTemplateModel
Returns the xsl of this journal template.

Specified by:
getXsl in interface JournalTemplateModel
Returns:
the xsl of this journal template

setXsl

public void setXsl(String xsl)
Description copied from interface: JournalTemplateModel
Sets the xsl of this journal template.

Specified by:
setXsl in interface JournalTemplateModel
Parameters:
xsl - the xsl of this journal template

getLangType

@JSON
public String getLangType()
Description copied from interface: JournalTemplateModel
Returns the lang type of this journal template.

Specified by:
getLangType in interface JournalTemplateModel
Returns:
the lang type of this journal template

setLangType

public void setLangType(String langType)
Description copied from interface: JournalTemplateModel
Sets the lang type of this journal template.

Specified by:
setLangType in interface JournalTemplateModel
Parameters:
langType - the lang type of this journal template

getCacheable

@JSON
public boolean getCacheable()
Description copied from interface: JournalTemplateModel
Returns the cacheable of this journal template.

Specified by:
getCacheable in interface JournalTemplateModel
Returns:
the cacheable of this journal template

isCacheable

public boolean isCacheable()
Description copied from interface: JournalTemplateModel
Returns true if this journal template is cacheable.

Specified by:
isCacheable in interface JournalTemplateModel
Returns:
true if this journal template is cacheable; false otherwise

setCacheable

public void setCacheable(boolean cacheable)
Description copied from interface: JournalTemplateModel
Sets whether this journal template is cacheable.

Specified by:
setCacheable in interface JournalTemplateModel
Parameters:
cacheable - the cacheable of this journal template

getSmallImage

@JSON
public boolean getSmallImage()
Description copied from interface: JournalTemplateModel
Returns the small image of this journal template.

Specified by:
getSmallImage in interface JournalTemplateModel
Returns:
the small image of this journal template

isSmallImage

public boolean isSmallImage()
Description copied from interface: JournalTemplateModel
Returns true if this journal template is small image.

Specified by:
isSmallImage in interface JournalTemplateModel
Returns:
true if this journal template is small image; false otherwise

setSmallImage

public void setSmallImage(boolean smallImage)
Description copied from interface: JournalTemplateModel
Sets whether this journal template is small image.

Specified by:
setSmallImage in interface JournalTemplateModel
Parameters:
smallImage - the small image of this journal template

getSmallImageId

@JSON
public long getSmallImageId()
Description copied from interface: JournalTemplateModel
Returns the small image ID of this journal template.

Specified by:
getSmallImageId in interface JournalTemplateModel
Returns:
the small image ID of this journal template

setSmallImageId

public void setSmallImageId(long smallImageId)
Description copied from interface: JournalTemplateModel
Sets the small image ID of this journal template.

Specified by:
setSmallImageId in interface JournalTemplateModel
Parameters:
smallImageId - the small image ID of this journal template

getOriginalSmallImageId

public long getOriginalSmallImageId()

getSmallImageURL

@JSON
public String getSmallImageURL()
Description copied from interface: JournalTemplateModel
Returns the small image u r l of this journal template.

Specified by:
getSmallImageURL in interface JournalTemplateModel
Returns:
the small image u r l of this journal template

setSmallImageURL

public void setSmallImageURL(String smallImageURL)
Description copied from interface: JournalTemplateModel
Sets the small image u r l of this journal template.

Specified by:
setSmallImageURL in interface JournalTemplateModel
Parameters:
smallImageURL - the small image u r l of this journal template

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<JournalTemplate>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface JournalTemplateModel
Overrides:
getExpandoBridge in class BaseModelImpl<JournalTemplate>
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<JournalTemplate>
Specified by:
setExpandoBridgeAttributes in interface JournalTemplateModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<JournalTemplate>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface JournalTemplateModel
Throws:
LocaleException

toEscapedModel

public JournalTemplate toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<JournalTemplate>
Specified by:
toEscapedModel in interface JournalTemplateModel
Overrides:
toEscapedModel in class BaseModelImpl<JournalTemplate>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public JournalTemplate toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<JournalTemplate>
Specified by:
toUnescapedModel in interface JournalTemplateModel
Overrides:
toUnescapedModel in class BaseModelImpl<JournalTemplate>

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<JournalTemplate>
Specified by:
clone in interface JournalTemplateModel
Specified by:
clone in class BaseModelImpl<JournalTemplate>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(JournalTemplate journalTemplate)
Specified by:
compareTo in interface JournalTemplateModel
Specified by:
compareTo in interface Comparable<JournalTemplate>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface JournalTemplateModel
Overrides:
hashCode in class Object

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<JournalTemplate>
Overrides:
resetOriginalValues in class BaseModelImpl<JournalTemplate>

toCacheModel

public CacheModel<JournalTemplate> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<JournalTemplate>
Specified by:
toCacheModel in interface JournalTemplateModel
Overrides:
toCacheModel in class BaseModelImpl<JournalTemplate>
Returns:
the cache model object

toString

public String toString()
Specified by:
toString in interface JournalTemplateModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<JournalTemplate>
Specified by:
toXmlString in interface JournalTemplateModel
Returns:
the XML representation of this model instance

Liferay 6.1.2-ce-ga3