|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.impl.BaseModelImpl<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 FormField 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 |
---|
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 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 JournalTemplateModel
public void setPrimaryKey(long primaryKey)
JournalTemplateModel
setPrimaryKey
in interface JournalTemplateModel
primaryKey
- the primary key of this journal templatepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<JournalTemplate>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface JournalTemplateModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<JournalTemplate>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface JournalTemplateModel
primaryKeyObj
- the primary key of this model instancepublic Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<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 JournalTemplateModel
public void setUuid(String uuid)
JournalTemplateModel
setUuid
in interface JournalTemplateModel
uuid
- the uuid of this journal templatepublic String getOriginalUuid()
@JSON public long getId()
JournalTemplateModel
getId
in interface JournalTemplateModel
public void setId(long id)
JournalTemplateModel
setId
in interface JournalTemplateModel
id
- the ID of this journal template@JSON public long getGroupId()
JournalTemplateModel
getGroupId
in interface GroupedModel
getGroupId
in interface JournalTemplateModel
public void setGroupId(long groupId)
JournalTemplateModel
setGroupId
in interface GroupedModel
setGroupId
in interface JournalTemplateModel
groupId
- the group ID of this journal templatepublic long getOriginalGroupId()
@JSON public long getCompanyId()
JournalTemplateModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface JournalTemplateModel
public void setCompanyId(long companyId)
JournalTemplateModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface JournalTemplateModel
companyId
- the company ID of this journal template@JSON public long getUserId()
JournalTemplateModel
getUserId
in interface AuditedModel
getUserId
in interface JournalTemplateModel
public void setUserId(long userId)
JournalTemplateModel
setUserId
in interface AuditedModel
setUserId
in interface JournalTemplateModel
userId
- the user ID of this journal templatepublic String getUserUuid() throws SystemException
JournalTemplateModel
getUserUuid
in interface AuditedModel
getUserUuid
in interface JournalTemplateModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
JournalTemplateModel
setUserUuid
in interface AuditedModel
setUserUuid
in interface JournalTemplateModel
userUuid
- the user uuid of this journal template@JSON public String getUserName()
JournalTemplateModel
getUserName
in interface AuditedModel
getUserName
in interface JournalTemplateModel
public void setUserName(String userName)
JournalTemplateModel
setUserName
in interface AuditedModel
setUserName
in interface JournalTemplateModel
userName
- the user name of this journal template@JSON public Date getCreateDate()
JournalTemplateModel
getCreateDate
in interface AuditedModel
getCreateDate
in interface JournalTemplateModel
public void setCreateDate(Date createDate)
JournalTemplateModel
setCreateDate
in interface AuditedModel
setCreateDate
in interface JournalTemplateModel
createDate
- the create date of this journal template@JSON public Date getModifiedDate()
JournalTemplateModel
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface JournalTemplateModel
public void setModifiedDate(Date modifiedDate)
JournalTemplateModel
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface JournalTemplateModel
modifiedDate
- the modified date of this journal template@JSON public String getTemplateId()
JournalTemplateModel
getTemplateId
in interface JournalTemplateModel
public void setTemplateId(String templateId)
JournalTemplateModel
setTemplateId
in interface JournalTemplateModel
templateId
- the template ID of this journal templatepublic String getOriginalTemplateId()
@JSON public String getStructureId()
JournalTemplateModel
getStructureId
in interface JournalTemplateModel
public void setStructureId(String structureId)
JournalTemplateModel
setStructureId
in interface JournalTemplateModel
structureId
- the structure ID of this journal templatepublic String getOriginalStructureId()
@JSON public String getName()
JournalTemplateModel
getName
in interface JournalTemplateModel
public String getName(Locale locale)
JournalTemplateModel
getName
in interface JournalTemplateModel
locale
- the locale of the language
public String getName(Locale locale, boolean useDefault)
JournalTemplateModel
getName
in interface JournalTemplateModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
useDefault
is false
and no localization exists for the requested language, an empty string will be returned.public String getName(String languageId)
JournalTemplateModel
getName
in interface JournalTemplateModel
languageId
- the ID of the language
public String getName(String languageId, boolean useDefault)
JournalTemplateModel
getName
in interface JournalTemplateModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
public String getNameCurrentLanguageId()
getNameCurrentLanguageId
in interface JournalTemplateModel
@JSON public String getNameCurrentValue()
getNameCurrentValue
in interface JournalTemplateModel
public Map<Locale,String> getNameMap()
JournalTemplateModel
getNameMap
in interface JournalTemplateModel
public void setName(String name)
JournalTemplateModel
setName
in interface JournalTemplateModel
name
- the name of this journal templatepublic void setName(String name, Locale locale)
JournalTemplateModel
setName
in interface JournalTemplateModel
name
- the localized name of this journal templatelocale
- the locale of the languagepublic void setName(String name, Locale locale, Locale defaultLocale)
JournalTemplateModel
setName
in interface JournalTemplateModel
name
- the localized name of this journal templatelocale
- the locale of the languagedefaultLocale
- the default localepublic void setNameCurrentLanguageId(String languageId)
setNameCurrentLanguageId
in interface JournalTemplateModel
public void setNameMap(Map<Locale,String> nameMap)
JournalTemplateModel
setNameMap
in interface JournalTemplateModel
nameMap
- the locales and localized names of this journal templatepublic void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
JournalTemplateModel
setNameMap
in interface JournalTemplateModel
nameMap
- the locales and localized names of this journal templatedefaultLocale
- the default locale@JSON public String getDescription()
JournalTemplateModel
getDescription
in interface JournalTemplateModel
public String getDescription(Locale locale)
JournalTemplateModel
getDescription
in interface JournalTemplateModel
locale
- the locale of the language
public String getDescription(Locale locale, boolean useDefault)
JournalTemplateModel
getDescription
in interface JournalTemplateModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
useDefault
is false
and no localization exists for the requested language, an empty string will be returned.public String getDescription(String languageId)
JournalTemplateModel
getDescription
in interface JournalTemplateModel
languageId
- the ID of the language
public String getDescription(String languageId, boolean useDefault)
JournalTemplateModel
getDescription
in interface JournalTemplateModel
languageId
- 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 JournalTemplateModel
public Map<Locale,String> getDescriptionMap()
JournalTemplateModel
getDescriptionMap
in interface JournalTemplateModel
public void setDescription(String description)
JournalTemplateModel
setDescription
in interface JournalTemplateModel
description
- the description of this journal templatepublic void setDescription(String description, Locale locale)
JournalTemplateModel
setDescription
in interface JournalTemplateModel
description
- the localized description of this journal templatelocale
- the locale of the languagepublic void setDescription(String description, Locale locale, Locale defaultLocale)
JournalTemplateModel
setDescription
in interface JournalTemplateModel
description
- the localized description of this journal templatelocale
- the locale of the languagedefaultLocale
- the default localepublic void setDescriptionCurrentLanguageId(String languageId)
setDescriptionCurrentLanguageId
in interface JournalTemplateModel
public void setDescriptionMap(Map<Locale,String> descriptionMap)
JournalTemplateModel
setDescriptionMap
in interface JournalTemplateModel
descriptionMap
- the locales and localized descriptions of this journal templatepublic void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
JournalTemplateModel
setDescriptionMap
in interface JournalTemplateModel
descriptionMap
- the locales and localized descriptions of this journal templatedefaultLocale
- the default locale@JSON public String getXsl()
JournalTemplateModel
getXsl
in interface JournalTemplateModel
public void setXsl(String xsl)
JournalTemplateModel
setXsl
in interface JournalTemplateModel
xsl
- the xsl of this journal template@JSON public String getLangType()
JournalTemplateModel
getLangType
in interface JournalTemplateModel
public void setLangType(String langType)
JournalTemplateModel
setLangType
in interface JournalTemplateModel
langType
- the lang type of this journal template@JSON public boolean getCacheable()
JournalTemplateModel
getCacheable
in interface JournalTemplateModel
public boolean isCacheable()
JournalTemplateModel
true
if this journal template is cacheable.
isCacheable
in interface JournalTemplateModel
true
if this journal template is cacheable; false
otherwisepublic void setCacheable(boolean cacheable)
JournalTemplateModel
setCacheable
in interface JournalTemplateModel
cacheable
- the cacheable of this journal template@JSON public boolean getSmallImage()
JournalTemplateModel
getSmallImage
in interface JournalTemplateModel
public boolean isSmallImage()
JournalTemplateModel
true
if this journal template is small image.
isSmallImage
in interface JournalTemplateModel
true
if this journal template is small image; false
otherwisepublic void setSmallImage(boolean smallImage)
JournalTemplateModel
setSmallImage
in interface JournalTemplateModel
smallImage
- the small image of this journal template@JSON public long getSmallImageId()
JournalTemplateModel
getSmallImageId
in interface JournalTemplateModel
public void setSmallImageId(long smallImageId)
JournalTemplateModel
setSmallImageId
in interface JournalTemplateModel
smallImageId
- the small image ID of this journal templatepublic long getOriginalSmallImageId()
@JSON public String getSmallImageURL()
JournalTemplateModel
getSmallImageURL
in interface JournalTemplateModel
public void setSmallImageURL(String smallImageURL)
JournalTemplateModel
setSmallImageURL
in interface JournalTemplateModel
smallImageURL
- the small image u r l of this journal templatepublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<JournalTemplate>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface JournalTemplateModel
getExpandoBridge
in class BaseModelImpl<JournalTemplate>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<JournalTemplate>
setExpandoBridgeAttributes
in interface JournalTemplateModel
setExpandoBridgeAttributes
in class BaseModelImpl<JournalTemplate>
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
prepareLocalizedFieldsForImport
in interface JournalTemplateModel
LocaleException
public JournalTemplate toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<JournalTemplate>
toEscapedModel
in interface JournalTemplateModel
toEscapedModel
in class BaseModelImpl<JournalTemplate>
AutoEscapeBeanHandler
public JournalTemplate toUnescapedModel()
toUnescapedModel
in interface BaseModel<JournalTemplate>
toUnescapedModel
in interface JournalTemplateModel
toUnescapedModel
in class BaseModelImpl<JournalTemplate>
public Object clone()
BaseModel
clone
in interface BaseModel<JournalTemplate>
clone
in interface JournalTemplateModel
clone
in class BaseModelImpl<JournalTemplate>
public int compareTo(JournalTemplate journalTemplate)
compareTo
in interface JournalTemplateModel
compareTo
in interface Comparable<JournalTemplate>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in interface JournalTemplateModel
hashCode
in class Object
public 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 JournalTemplateModel
toCacheModel
in class BaseModelImpl<JournalTemplate>
public String toString()
toString
in interface JournalTemplateModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<JournalTemplate>
toXmlString
in interface JournalTemplateModel
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |