Liferay 6.1.2-ce-ga3

com.liferay.portlet.journal.model
Class JournalTemplateWrapper

java.lang.Object
  extended by com.liferay.portlet.journal.model.JournalTemplateWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<JournalTemplate>, ClassedModel, GroupedModel, ModelWrapper<JournalTemplate>, PersistedModel, JournalTemplate, JournalTemplateModel, Serializable, Cloneable, Comparable<JournalTemplate>

public class JournalTemplateWrapper
extends Object
implements JournalTemplate, ModelWrapper<JournalTemplate>

This class is a wrapper for JournalTemplate.

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

Constructor Summary
JournalTemplateWrapper(JournalTemplate journalTemplate)
           
 
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 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 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 getSmallImageType()
           
 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.
 JournalTemplate getWrappedJournalTemplate()
          Deprecated. Renamed to getWrappedModel()
 JournalTemplate getWrappedModel()
           
 String getXsl()
          Returns the xsl of this journal template.
 int hashCode()
           
 boolean isCacheable()
          Returns true if this journal template is cacheable.
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 boolean isSmallImage()
          Returns true if this journal template is small image.
 void persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCacheable(boolean cacheable)
          Sets whether this journal template is cacheable.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setCompanyId(long companyId)
          Sets the company ID of this 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 setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this 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 setSmallImageType(String smallImageType)
           
 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.
 String toString()
           
 JournalTemplate toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JournalTemplateWrapper

public JournalTemplateWrapper(JournalTemplate journalTemplate)
Method Detail

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>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
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)
Sets the primary key of this journal template.

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

getUuid

public String getUuid()
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)
Sets the uuid of this journal template.

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

getId

public long getId()
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)
Sets the ID of this journal template.

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

getGroupId

public long getGroupId()
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)
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

getCompanyId

public long getCompanyId()
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)
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

public long getUserId()
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)
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
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)
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

public String getUserName()
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)
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

public Date getCreateDate()
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)
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

public Date getModifiedDate()
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)
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

public String getTemplateId()
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)
Sets the template ID of this journal template.

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

getStructureId

public String getStructureId()
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)
Sets the structure ID of this journal template.

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

getName

public String getName()
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)
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)
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)
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)
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

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

getNameMap

public Map<Locale,String> getNameMap()
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)
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)
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)
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)
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)
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

public String getDescription()
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)
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)
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)
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)
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

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

getDescriptionMap

public Map<Locale,String> getDescriptionMap()
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)
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)
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)
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)
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)
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

public String getXsl()
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)
Sets the xsl of this journal template.

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

getLangType

public String getLangType()
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)
Sets the lang type of this journal template.

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

getCacheable

public boolean getCacheable()
Returns the cacheable of this journal template.

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

isCacheable

public boolean isCacheable()
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)
Sets whether this journal template is cacheable.

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

getSmallImage

public boolean getSmallImage()
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()
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)
Sets whether this journal template is small image.

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

getSmallImageId

public long getSmallImageId()
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)
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

getSmallImageURL

public String getSmallImageURL()
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)
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

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<JournalTemplate>
Specified by:
isNew in interface JournalTemplateModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<JournalTemplate>
Specified by:
setNew in interface JournalTemplateModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<JournalTemplate>
Specified by:
isCachedModel in interface JournalTemplateModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<JournalTemplate>
Specified by:
setCachedModel in interface JournalTemplateModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<JournalTemplate>
Specified by:
isEscapedModel in interface JournalTemplateModel
Returns:
true if this model instance is escaped; false otherwise

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

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
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
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

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
Overrides:
clone in class Object
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>

hashCode

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

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
Returns:
the cache model object

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
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

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

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

getSmallImageType

public String getSmallImageType()
                         throws PortalException,
                                SystemException
Specified by:
getSmallImageType in interface JournalTemplate
Throws:
PortalException
SystemException

setSmallImageType

public void setSmallImageType(String smallImageType)
Specified by:
setSmallImageType in interface JournalTemplate

equals

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

getWrappedJournalTemplate

public JournalTemplate getWrappedJournalTemplate()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

public JournalTemplate getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<JournalTemplate>

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<JournalTemplate>

Liferay 6.1.2-ce-ga3