Liferay 6.0.5

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:
BaseModel<JournalTemplate>, JournalTemplateModel, Serializable, Cloneable, Comparable<JournalTemplate>
Direct Known Subclasses:
JournalTemplateImpl

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.

Never modify or reference this class directly. All methods that expect a journal template model instance should use the JournalTemplate interface instead.

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

Field Summary
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
 
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()
          Gets the cacheable of this journal template.
 long getCompanyId()
          Gets the company id of this journal template.
 Date getCreateDate()
          Gets the create date of this journal template.
 String getDescription()
          Gets the description of this journal template.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getGroupId()
          Gets the group id of this journal template.
 long getId()
          Gets the id of this journal template.
 String getLangType()
          Gets the lang type of this journal template.
 Date getModifiedDate()
          Gets the modified date of this journal template.
 String getName()
          Gets the name of this journal template.
 long getOriginalGroupId()
           
 long getOriginalSmallImageId()
           
 String getOriginalTemplateId()
           
 String getOriginalUuid()
           
 long getPrimaryKey()
          Gets the primary key of this journal template.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 boolean getSmallImage()
          Gets the small image of this journal template.
 long getSmallImageId()
          Gets the small image id of this journal template.
 String getSmallImageURL()
          Gets the small image u r l of this journal template.
 String getStructureId()
          Gets the structure id of this journal template.
 String getTemplateId()
          Gets the template id of this journal template.
 long getUserId()
          Gets the user id of this journal template.
 String getUserName()
          Gets the user name of this journal template.
 String getUserUuid()
          Gets the user uuid of this journal template.
 String getUuid()
          Gets the uuid of this journal template.
 String getXsl()
          Gets the xsl of this journal template.
 int hashCode()
           
 boolean isCacheable()
          Determines whether this journal template is cacheable.
 boolean isSmallImage()
          Determines whether this journal template is small image.
 void setCacheable(boolean cacheable)
          Sets whether this {$entity.humanName} 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 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 setModifiedDate(Date modifiedDate)
          Sets the modified date of this journal template.
 void setName(String name)
          Sets the name of this journal template.
 void setPrimaryKey(long pk)
          Sets the primary key of this journal template
 void setSmallImage(boolean smallImage)
          Sets whether this {$entity.humanName} 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.
 JournalTemplate toEscapedModel()
          Gets a copy of this journal template as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static JournalTemplate toModel(JournalTemplateSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<JournalTemplate> toModels(JournalTemplateSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, 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, setEscapedModel, 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

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
Gets 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 pk)
Description copied from interface: JournalTemplateModel
Sets the primary key of this journal template

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

getPrimaryKeyObj

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

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

getUuid

public String getUuid()
Description copied from interface: JournalTemplateModel
Gets 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

public long getId()
Description copied from interface: JournalTemplateModel
Gets 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

public long getGroupId()
Description copied from interface: JournalTemplateModel
Gets the group id of this journal template.

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 JournalTemplateModel
Parameters:
groupId - the group id of this journal template

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

public long getCompanyId()
Description copied from interface: JournalTemplateModel
Gets the company id of this journal template.

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 JournalTemplateModel
Parameters:
companyId - the company id of this journal template

getUserId

public long getUserId()
Description copied from interface: JournalTemplateModel
Gets the user id of this journal template.

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 JournalTemplateModel
Parameters:
userId - the user id of this journal template

getUserUuid

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

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 JournalTemplateModel
Parameters:
userUuid - the user uuid of this journal template

getUserName

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

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 JournalTemplateModel
Parameters:
userName - the user name of this journal template

getCreateDate

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

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 JournalTemplateModel
Parameters:
createDate - the create date of this journal template

getModifiedDate

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

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 JournalTemplateModel
Parameters:
modifiedDate - the modified date of this journal template

getTemplateId

public String getTemplateId()
Description copied from interface: JournalTemplateModel
Gets 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

public String getStructureId()
Description copied from interface: JournalTemplateModel
Gets 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

getName

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

Specified by:
getName in interface JournalTemplateModel
Returns:
the name 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

getDescription

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

Specified by:
getDescription in interface JournalTemplateModel
Returns:
the description 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

getXsl

public String getXsl()
Description copied from interface: JournalTemplateModel
Gets 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

public String getLangType()
Description copied from interface: JournalTemplateModel
Gets 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

public boolean getCacheable()
Description copied from interface: JournalTemplateModel
Gets 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
Determines whether this journal template is cacheable.

Specified by:
isCacheable in interface JournalTemplateModel
Returns:
whether this journal template is cacheable

setCacheable

public void setCacheable(boolean cacheable)
Description copied from interface: JournalTemplateModel
Sets whether this {$entity.humanName} is cacheable.

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

getSmallImage

public boolean getSmallImage()
Description copied from interface: JournalTemplateModel
Gets 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
Determines whether this journal template is small image.

Specified by:
isSmallImage in interface JournalTemplateModel
Returns:
whether this journal template is small image

setSmallImage

public void setSmallImage(boolean smallImage)
Description copied from interface: JournalTemplateModel
Sets whether this {$entity.humanName} is small image.

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

getSmallImageId

public long getSmallImageId()
Description copied from interface: JournalTemplateModel
Gets 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

public String getSmallImageURL()
Description copied from interface: JournalTemplateModel
Gets 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

toEscapedModel

public JournalTemplate toEscapedModel()
Description copied from interface: JournalTemplateModel
Gets a copy of this journal template as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface JournalTemplateModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<JournalTemplate>
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 to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

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

toString

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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets 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.0.5