Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.model.impl
Class DDMTemplateVersionModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<DDMTemplateVersion>
      extended by com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateVersionModelImpl
All Implemented Interfaces:
AttachedModel, BaseModel<DDMTemplateVersion>, ClassedModel, LocalizedModel, TypedModel, WorkflowedModel, DDMTemplateVersionModel, Serializable, Cloneable, Comparable<DDMTemplateVersion>
Direct Known Subclasses:
DDMTemplateVersionBaseImpl

@JSON(strict=true)
@ProviderType
public class DDMTemplateVersionModelImpl
extends BaseModelImpl<DDMTemplateVersion>
implements DDMTemplateVersionModel

The base model implementation for the DDMTemplateVersion service. Represents a row in the "DDMTemplateVersion" database table, with each column mapped to a property of this class.

This implementation and its corresponding interface DDMTemplateVersionModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in DDMTemplateVersionImpl.

See Also:
DDMTemplateVersionImpl, DDMTemplateVersion, DDMTemplateVersionModel, 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 LOCK_EXPIRATION_TIME
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static String SESSION_FACTORY
           
static long STATUS_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 long TEMPLATEVERSIONID_COLUMN_BITMASK
           
static String TX_MANAGER
           
static long VERSION_COLUMN_BITMASK
           
 
Constructor Summary
DDMTemplateVersionModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(DDMTemplateVersion ddmTemplateVersion)
           
 boolean equals(Object obj)
           
 boolean getApproved()
          Deprecated. As of 6.1.0, replaced by isApproved()
 String[] getAvailableLanguageIds()
           
 String getClassName()
          Returns the fully qualified class name of this d d m template version.
 long getClassNameId()
          Returns the class name ID of this d d m template version.
 long getClassPK()
          Returns the class p k of this d d m template version.
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this d d m template version.
 Date getCreateDate()
          Returns the create date of this d d m template version.
 String getDefaultLanguageId()
           
 String getDescription()
          Returns the description of this d d m template version.
 String getDescription(Locale locale)
          Returns the localized description of this d d m template version in the language.
 String getDescription(Locale locale, boolean useDefault)
          Returns the localized description of this d d m template version 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 d d m template version in the language.
 String getDescription(String languageId, boolean useDefault)
          Returns the localized description of this d d m template version 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 d d m template version.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getGroupId()
          Returns the group ID of this d d m template version.
 String getLanguage()
          Returns the language of this d d m template version.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getName()
          Returns the name of this d d m template version.
 String getName(Locale locale)
          Returns the localized name of this d d m template version in the language.
 String getName(Locale locale, boolean useDefault)
          Returns the localized name of this d d m template version 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 d d m template version in the language.
 String getName(String languageId, boolean useDefault)
          Returns the localized name of this d d m template version 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 d d m template version.
 int getOriginalStatus()
           
 long getOriginalTemplateId()
           
 String getOriginalVersion()
           
 long getPrimaryKey()
          Returns the primary key of this d d m template version.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getScript()
          Returns the script of this d d m template version.
 int getStatus()
          Returns the status of this d d m template version.
 long getStatusByUserId()
          Returns the status by user ID of this d d m template version.
 String getStatusByUserName()
          Returns the status by user name of this d d m template version.
 String getStatusByUserUuid()
          Returns the status by user uuid of this d d m template version.
 Date getStatusDate()
          Returns the status date of this d d m template version.
 long getTemplateId()
          Returns the template ID of this d d m template version.
 long getTemplateVersionId()
          Returns the template version ID of this d d m template version.
 long getUserId()
          Returns the user ID of this d d m template version.
 String getUserName()
          Returns the user name of this d d m template version.
 String getUserUuid()
          Returns the user uuid of this d d m template version.
 String getVersion()
          Returns the version of this d d m template version.
 int hashCode()
           
 boolean isApproved()
          Returns true if this d d m template version is approved.
 boolean isDenied()
          Returns true if this d d m template version is denied.
 boolean isDraft()
          Returns true if this d d m template version is a draft.
 boolean isEntityCacheEnabled()
          Returns true if this model's entity cache is enabled.
 boolean isExpired()
          Returns true if this d d m template version is expired.
 boolean isFinderCacheEnabled()
          Returns true if this model's finder cache is enabled.
 boolean isInactive()
          Returns true if this d d m template version is inactive.
 boolean isIncomplete()
          Returns true if this d d m template version is incomplete.
 boolean isPending()
          Returns true if this d d m template version is pending.
 boolean isScheduled()
          Returns true if this d d m template version is scheduled.
 void prepareLocalizedFieldsForImport()
           
 void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setClassName(String className)
           
 void setClassNameId(long classNameId)
          Sets the class name ID of this d d m template version.
 void setClassPK(long classPK)
          Sets the class p k of this d d m template version.
 void setCompanyId(long companyId)
          Sets the company ID of this d d m template version.
 void setCreateDate(Date createDate)
          Sets the create date of this d d m template version.
 void setDescription(String description)
          Sets the description of this d d m template version.
 void setDescription(String description, Locale locale)
          Sets the localized description of this d d m template version in the language.
 void setDescription(String description, Locale locale, Locale defaultLocale)
          Sets the localized description of this d d m template version in the language, and sets the default locale.
 void setDescriptionCurrentLanguageId(String languageId)
           
 void setDescriptionMap(Map<Locale,String> descriptionMap)
          Sets the localized descriptions of this d d m template version from the map of locales and localized descriptions.
 void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
          Sets the localized descriptions of this d d m template version 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 d d m template version.
 void setLanguage(String language)
          Sets the language of this d d m template version.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setName(String name)
          Sets the name of this d d m template version.
 void setName(String name, Locale locale)
          Sets the localized name of this d d m template version in the language.
 void setName(String name, Locale locale, Locale defaultLocale)
          Sets the localized name of this d d m template version in the language, and sets the default locale.
 void setNameCurrentLanguageId(String languageId)
           
 void setNameMap(Map<Locale,String> nameMap)
          Sets the localized names of this d d m template version from the map of locales and localized names.
 void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
          Sets the localized names of this d d m template version from the map of locales and localized names, and sets the default locale.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this d d m template version.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setScript(String script)
          Sets the script of this d d m template version.
 void setStatus(int status)
          Sets the status of this d d m template version.
 void setStatusByUserId(long statusByUserId)
          Sets the status by user ID of this d d m template version.
 void setStatusByUserName(String statusByUserName)
          Sets the status by user name of this d d m template version.
 void setStatusByUserUuid(String statusByUserUuid)
          Sets the status by user uuid of this d d m template version.
 void setStatusDate(Date statusDate)
          Sets the status date of this d d m template version.
 void setTemplateId(long templateId)
          Sets the template ID of this d d m template version.
 void setTemplateVersionId(long templateVersionId)
          Sets the template version ID of this d d m template version.
 void setUserId(long userId)
          Sets the user ID of this d d m template version.
 void setUserName(String userName)
          Sets the user name of this d d m template version.
 void setUserUuid(String userUuid)
          Sets the user uuid of this d d m template version.
 void setVersion(String version)
          Sets the version of this d d m template version.
 CacheModel<DDMTemplateVersion> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 DDMTemplateVersion toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static DDMTemplateVersion toModel(DDMTemplateVersionSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<DDMTemplateVersion> toModels(DDMTemplateVersionSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersionModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 

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

STATUS_COLUMN_BITMASK

public static final long STATUS_COLUMN_BITMASK
See Also:
Constant Field Values

TEMPLATEID_COLUMN_BITMASK

public static final long TEMPLATEID_COLUMN_BITMASK
See Also:
Constant Field Values

VERSION_COLUMN_BITMASK

public static final long VERSION_COLUMN_BITMASK
See Also:
Constant Field Values

TEMPLATEVERSIONID_COLUMN_BITMASK

public static final long TEMPLATEVERSIONID_COLUMN_BITMASK
See Also:
Constant Field Values

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

DDMTemplateVersionModelImpl

public DDMTemplateVersionModelImpl()
Method Detail

toModel

public static DDMTemplateVersion toModel(DDMTemplateVersionSoap 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<DDMTemplateVersion> toModels(DDMTemplateVersionSoap[] 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: DDMTemplateVersionModel
Returns the primary key of this d d m template version.

Specified by:
getPrimaryKey in interface DDMTemplateVersionModel
Returns:
the primary key of this d d m template version

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: DDMTemplateVersionModel
Sets the primary key of this d d m template version.

Specified by:
setPrimaryKey in interface DDMTemplateVersionModel
Parameters:
primaryKey - the primary key of this d d m template version

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<DDMTemplateVersion>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface DDMTemplateVersionModel
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<DDMTemplateVersion>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface DDMTemplateVersionModel
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<DDMTemplateVersion>
Overrides:
getModelAttributes in class BaseModelImpl<DDMTemplateVersion>

setModelAttributes

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

getTemplateVersionId

@JSON
public long getTemplateVersionId()
Description copied from interface: DDMTemplateVersionModel
Returns the template version ID of this d d m template version.

Specified by:
getTemplateVersionId in interface DDMTemplateVersionModel
Returns:
the template version ID of this d d m template version

setTemplateVersionId

public void setTemplateVersionId(long templateVersionId)
Description copied from interface: DDMTemplateVersionModel
Sets the template version ID of this d d m template version.

Specified by:
setTemplateVersionId in interface DDMTemplateVersionModel
Parameters:
templateVersionId - the template version ID of this d d m template version

getGroupId

@JSON
public long getGroupId()
Description copied from interface: DDMTemplateVersionModel
Returns the group ID of this d d m template version.

Specified by:
getGroupId in interface DDMTemplateVersionModel
Returns:
the group ID of this d d m template version

setGroupId

public void setGroupId(long groupId)
Description copied from interface: DDMTemplateVersionModel
Sets the group ID of this d d m template version.

Specified by:
setGroupId in interface DDMTemplateVersionModel
Parameters:
groupId - the group ID of this d d m template version

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: DDMTemplateVersionModel
Returns the company ID of this d d m template version.

Specified by:
getCompanyId in interface DDMTemplateVersionModel
Returns:
the company ID of this d d m template version

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: DDMTemplateVersionModel
Sets the company ID of this d d m template version.

Specified by:
setCompanyId in interface DDMTemplateVersionModel
Parameters:
companyId - the company ID of this d d m template version

getUserId

@JSON
public long getUserId()
Description copied from interface: DDMTemplateVersionModel
Returns the user ID of this d d m template version.

Specified by:
getUserId in interface DDMTemplateVersionModel
Returns:
the user ID of this d d m template version

setUserId

public void setUserId(long userId)
Description copied from interface: DDMTemplateVersionModel
Sets the user ID of this d d m template version.

Specified by:
setUserId in interface DDMTemplateVersionModel
Parameters:
userId - the user ID of this d d m template version

getUserUuid

public String getUserUuid()
Description copied from interface: DDMTemplateVersionModel
Returns the user uuid of this d d m template version.

Specified by:
getUserUuid in interface DDMTemplateVersionModel
Returns:
the user uuid of this d d m template version

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: DDMTemplateVersionModel
Sets the user uuid of this d d m template version.

Specified by:
setUserUuid in interface DDMTemplateVersionModel
Parameters:
userUuid - the user uuid of this d d m template version

getUserName

@JSON
public String getUserName()
Description copied from interface: DDMTemplateVersionModel
Returns the user name of this d d m template version.

Specified by:
getUserName in interface DDMTemplateVersionModel
Returns:
the user name of this d d m template version

setUserName

public void setUserName(String userName)
Description copied from interface: DDMTemplateVersionModel
Sets the user name of this d d m template version.

Specified by:
setUserName in interface DDMTemplateVersionModel
Parameters:
userName - the user name of this d d m template version

getCreateDate

@JSON
public Date getCreateDate()
Description copied from interface: DDMTemplateVersionModel
Returns the create date of this d d m template version.

Specified by:
getCreateDate in interface DDMTemplateVersionModel
Returns:
the create date of this d d m template version

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: DDMTemplateVersionModel
Sets the create date of this d d m template version.

Specified by:
setCreateDate in interface DDMTemplateVersionModel
Parameters:
createDate - the create date of this d d m template version

getClassName

public String getClassName()
Description copied from interface: DDMTemplateVersionModel
Returns the fully qualified class name of this d d m template version.

Specified by:
getClassName in interface TypedModel
Specified by:
getClassName in interface DDMTemplateVersionModel
Returns:
the fully qualified class name of this d d m template version

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface DDMTemplateVersionModel

getClassNameId

@JSON
public long getClassNameId()
Description copied from interface: DDMTemplateVersionModel
Returns the class name ID of this d d m template version.

Specified by:
getClassNameId in interface TypedModel
Specified by:
getClassNameId in interface DDMTemplateVersionModel
Returns:
the class name ID of this d d m template version

setClassNameId

public void setClassNameId(long classNameId)
Description copied from interface: DDMTemplateVersionModel
Sets the class name ID of this d d m template version.

Specified by:
setClassNameId in interface TypedModel
Specified by:
setClassNameId in interface DDMTemplateVersionModel
Parameters:
classNameId - the class name ID of this d d m template version

getClassPK

@JSON
public long getClassPK()
Description copied from interface: DDMTemplateVersionModel
Returns the class p k of this d d m template version.

Specified by:
getClassPK in interface AttachedModel
Specified by:
getClassPK in interface DDMTemplateVersionModel
Returns:
the class p k of this d d m template version

setClassPK

public void setClassPK(long classPK)
Description copied from interface: DDMTemplateVersionModel
Sets the class p k of this d d m template version.

Specified by:
setClassPK in interface AttachedModel
Specified by:
setClassPK in interface DDMTemplateVersionModel
Parameters:
classPK - the class p k of this d d m template version

getTemplateId

@JSON
public long getTemplateId()
Description copied from interface: DDMTemplateVersionModel
Returns the template ID of this d d m template version.

Specified by:
getTemplateId in interface DDMTemplateVersionModel
Returns:
the template ID of this d d m template version

setTemplateId

public void setTemplateId(long templateId)
Description copied from interface: DDMTemplateVersionModel
Sets the template ID of this d d m template version.

Specified by:
setTemplateId in interface DDMTemplateVersionModel
Parameters:
templateId - the template ID of this d d m template version

getOriginalTemplateId

public long getOriginalTemplateId()

getVersion

@JSON
public String getVersion()
Description copied from interface: DDMTemplateVersionModel
Returns the version of this d d m template version.

Specified by:
getVersion in interface DDMTemplateVersionModel
Returns:
the version of this d d m template version

setVersion

public void setVersion(String version)
Description copied from interface: DDMTemplateVersionModel
Sets the version of this d d m template version.

Specified by:
setVersion in interface DDMTemplateVersionModel
Parameters:
version - the version of this d d m template version

getOriginalVersion

public String getOriginalVersion()

getName

@JSON
public String getName()
Description copied from interface: DDMTemplateVersionModel
Returns the name of this d d m template version.

Specified by:
getName in interface DDMTemplateVersionModel
Returns:
the name of this d d m template version

getName

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

Specified by:
getName in interface DDMTemplateVersionModel
Parameters:
locale - the locale of the language
Returns:
the localized name of this d d m template version

getName

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

Specified by:
getName in interface DDMTemplateVersionModel
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 d d m template version. 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: DDMTemplateVersionModel
Returns the localized name of this d d m template version in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getName in interface DDMTemplateVersionModel
Parameters:
languageId - the ID of the language
Returns:
the localized name of this d d m template version

getName

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

Specified by:
getName in interface DDMTemplateVersionModel
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 d d m template version

getNameCurrentLanguageId

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

getNameCurrentValue

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

getNameMap

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

Specified by:
getNameMap in interface DDMTemplateVersionModel
Returns:
the locales and localized names of this d d m template version

setName

public void setName(String name)
Description copied from interface: DDMTemplateVersionModel
Sets the name of this d d m template version.

Specified by:
setName in interface DDMTemplateVersionModel
Parameters:
name - the name of this d d m template version

setName

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

Specified by:
setName in interface DDMTemplateVersionModel
Parameters:
name - the localized name of this d d m template version
locale - the locale of the language

setName

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

Specified by:
setName in interface DDMTemplateVersionModel
Parameters:
name - the localized name of this d d m template version
locale - the locale of the language
defaultLocale - the default locale

setNameCurrentLanguageId

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

setNameMap

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

Specified by:
setNameMap in interface DDMTemplateVersionModel
Parameters:
nameMap - the locales and localized names of this d d m template version

setNameMap

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

Specified by:
setNameMap in interface DDMTemplateVersionModel
Parameters:
nameMap - the locales and localized names of this d d m template version
defaultLocale - the default locale

getDescription

@JSON
public String getDescription()
Description copied from interface: DDMTemplateVersionModel
Returns the description of this d d m template version.

Specified by:
getDescription in interface DDMTemplateVersionModel
Returns:
the description of this d d m template version

getDescription

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

Specified by:
getDescription in interface DDMTemplateVersionModel
Parameters:
locale - the locale of the language
Returns:
the localized description of this d d m template version

getDescription

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

Specified by:
getDescription in interface DDMTemplateVersionModel
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 d d m template version. 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: DDMTemplateVersionModel
Returns the localized description of this d d m template version in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getDescription in interface DDMTemplateVersionModel
Parameters:
languageId - the ID of the language
Returns:
the localized description of this d d m template version

getDescription

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

Specified by:
getDescription in interface DDMTemplateVersionModel
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 d d m template version

getDescriptionCurrentLanguageId

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

getDescriptionCurrentValue

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

getDescriptionMap

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

Specified by:
getDescriptionMap in interface DDMTemplateVersionModel
Returns:
the locales and localized descriptions of this d d m template version

setDescription

public void setDescription(String description)
Description copied from interface: DDMTemplateVersionModel
Sets the description of this d d m template version.

Specified by:
setDescription in interface DDMTemplateVersionModel
Parameters:
description - the description of this d d m template version

setDescription

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

Specified by:
setDescription in interface DDMTemplateVersionModel
Parameters:
description - the localized description of this d d m template version
locale - the locale of the language

setDescription

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

Specified by:
setDescription in interface DDMTemplateVersionModel
Parameters:
description - the localized description of this d d m template version
locale - the locale of the language
defaultLocale - the default locale

setDescriptionCurrentLanguageId

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

setDescriptionMap

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

Specified by:
setDescriptionMap in interface DDMTemplateVersionModel
Parameters:
descriptionMap - the locales and localized descriptions of this d d m template version

setDescriptionMap

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

Specified by:
setDescriptionMap in interface DDMTemplateVersionModel
Parameters:
descriptionMap - the locales and localized descriptions of this d d m template version
defaultLocale - the default locale

getLanguage

@JSON
public String getLanguage()
Description copied from interface: DDMTemplateVersionModel
Returns the language of this d d m template version.

Specified by:
getLanguage in interface DDMTemplateVersionModel
Returns:
the language of this d d m template version

setLanguage

public void setLanguage(String language)
Description copied from interface: DDMTemplateVersionModel
Sets the language of this d d m template version.

Specified by:
setLanguage in interface DDMTemplateVersionModel
Parameters:
language - the language of this d d m template version

getScript

@JSON
public String getScript()
Description copied from interface: DDMTemplateVersionModel
Returns the script of this d d m template version.

Specified by:
getScript in interface DDMTemplateVersionModel
Returns:
the script of this d d m template version

setScript

public void setScript(String script)
Description copied from interface: DDMTemplateVersionModel
Sets the script of this d d m template version.

Specified by:
setScript in interface DDMTemplateVersionModel
Parameters:
script - the script of this d d m template version

getStatus

@JSON
public int getStatus()
Description copied from interface: DDMTemplateVersionModel
Returns the status of this d d m template version.

Specified by:
getStatus in interface WorkflowedModel
Specified by:
getStatus in interface DDMTemplateVersionModel
Returns:
the status of this d d m template version

setStatus

public void setStatus(int status)
Description copied from interface: DDMTemplateVersionModel
Sets the status of this d d m template version.

Specified by:
setStatus in interface WorkflowedModel
Specified by:
setStatus in interface DDMTemplateVersionModel
Parameters:
status - the status of this d d m template version

getOriginalStatus

public int getOriginalStatus()

getStatusByUserId

@JSON
public long getStatusByUserId()
Description copied from interface: DDMTemplateVersionModel
Returns the status by user ID of this d d m template version.

Specified by:
getStatusByUserId in interface WorkflowedModel
Specified by:
getStatusByUserId in interface DDMTemplateVersionModel
Returns:
the status by user ID of this d d m template version

setStatusByUserId

public void setStatusByUserId(long statusByUserId)
Description copied from interface: DDMTemplateVersionModel
Sets the status by user ID of this d d m template version.

Specified by:
setStatusByUserId in interface WorkflowedModel
Specified by:
setStatusByUserId in interface DDMTemplateVersionModel
Parameters:
statusByUserId - the status by user ID of this d d m template version

getStatusByUserUuid

public String getStatusByUserUuid()
Description copied from interface: DDMTemplateVersionModel
Returns the status by user uuid of this d d m template version.

Specified by:
getStatusByUserUuid in interface WorkflowedModel
Specified by:
getStatusByUserUuid in interface DDMTemplateVersionModel
Returns:
the status by user uuid of this d d m template version

setStatusByUserUuid

public void setStatusByUserUuid(String statusByUserUuid)
Description copied from interface: DDMTemplateVersionModel
Sets the status by user uuid of this d d m template version.

Specified by:
setStatusByUserUuid in interface WorkflowedModel
Specified by:
setStatusByUserUuid in interface DDMTemplateVersionModel
Parameters:
statusByUserUuid - the status by user uuid of this d d m template version

getStatusByUserName

@JSON
public String getStatusByUserName()
Description copied from interface: DDMTemplateVersionModel
Returns the status by user name of this d d m template version.

Specified by:
getStatusByUserName in interface WorkflowedModel
Specified by:
getStatusByUserName in interface DDMTemplateVersionModel
Returns:
the status by user name of this d d m template version

setStatusByUserName

public void setStatusByUserName(String statusByUserName)
Description copied from interface: DDMTemplateVersionModel
Sets the status by user name of this d d m template version.

Specified by:
setStatusByUserName in interface WorkflowedModel
Specified by:
setStatusByUserName in interface DDMTemplateVersionModel
Parameters:
statusByUserName - the status by user name of this d d m template version

getStatusDate

@JSON
public Date getStatusDate()
Description copied from interface: DDMTemplateVersionModel
Returns the status date of this d d m template version.

Specified by:
getStatusDate in interface WorkflowedModel
Specified by:
getStatusDate in interface DDMTemplateVersionModel
Returns:
the status date of this d d m template version

setStatusDate

public void setStatusDate(Date statusDate)
Description copied from interface: DDMTemplateVersionModel
Sets the status date of this d d m template version.

Specified by:
setStatusDate in interface WorkflowedModel
Specified by:
setStatusDate in interface DDMTemplateVersionModel
Parameters:
statusDate - the status date of this d d m template version

getApproved

@Deprecated
public boolean getApproved()
Deprecated. As of 6.1.0, replaced by isApproved()

Specified by:
getApproved in interface WorkflowedModel
Specified by:
getApproved in interface DDMTemplateVersionModel

isApproved

public boolean isApproved()
Description copied from interface: DDMTemplateVersionModel
Returns true if this d d m template version is approved.

Specified by:
isApproved in interface WorkflowedModel
Specified by:
isApproved in interface DDMTemplateVersionModel
Returns:
true if this d d m template version is approved; false otherwise

isDenied

public boolean isDenied()
Description copied from interface: DDMTemplateVersionModel
Returns true if this d d m template version is denied.

Specified by:
isDenied in interface WorkflowedModel
Specified by:
isDenied in interface DDMTemplateVersionModel
Returns:
true if this d d m template version is denied; false otherwise

isDraft

public boolean isDraft()
Description copied from interface: DDMTemplateVersionModel
Returns true if this d d m template version is a draft.

Specified by:
isDraft in interface WorkflowedModel
Specified by:
isDraft in interface DDMTemplateVersionModel
Returns:
true if this d d m template version is a draft; false otherwise

isExpired

public boolean isExpired()
Description copied from interface: DDMTemplateVersionModel
Returns true if this d d m template version is expired.

Specified by:
isExpired in interface WorkflowedModel
Specified by:
isExpired in interface DDMTemplateVersionModel
Returns:
true if this d d m template version is expired; false otherwise

isInactive

public boolean isInactive()
Description copied from interface: DDMTemplateVersionModel
Returns true if this d d m template version is inactive.

Specified by:
isInactive in interface WorkflowedModel
Specified by:
isInactive in interface DDMTemplateVersionModel
Returns:
true if this d d m template version is inactive; false otherwise

isIncomplete

public boolean isIncomplete()
Description copied from interface: DDMTemplateVersionModel
Returns true if this d d m template version is incomplete.

Specified by:
isIncomplete in interface WorkflowedModel
Specified by:
isIncomplete in interface DDMTemplateVersionModel
Returns:
true if this d d m template version is incomplete; false otherwise

isPending

public boolean isPending()
Description copied from interface: DDMTemplateVersionModel
Returns true if this d d m template version is pending.

Specified by:
isPending in interface WorkflowedModel
Specified by:
isPending in interface DDMTemplateVersionModel
Returns:
true if this d d m template version is pending; false otherwise

isScheduled

public boolean isScheduled()
Description copied from interface: DDMTemplateVersionModel
Returns true if this d d m template version is scheduled.

Specified by:
isScheduled in interface WorkflowedModel
Specified by:
isScheduled in interface DDMTemplateVersionModel
Returns:
true if this d d m template version is scheduled; false otherwise

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<DDMTemplateVersion>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface DDMTemplateVersionModel
Overrides:
getExpandoBridge in class BaseModelImpl<DDMTemplateVersion>
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<DDMTemplateVersion>
Specified by:
setExpandoBridgeAttributes in interface DDMTemplateVersionModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<DDMTemplateVersion>
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

getAvailableLanguageIds

public String[] getAvailableLanguageIds()
Specified by:
getAvailableLanguageIds in interface LocalizedModel
Specified by:
getAvailableLanguageIds in interface DDMTemplateVersionModel

getDefaultLanguageId

public String getDefaultLanguageId()
Specified by:
getDefaultLanguageId in interface LocalizedModel
Specified by:
getDefaultLanguageId in interface DDMTemplateVersionModel

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport()
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface LocalizedModel
Specified by:
prepareLocalizedFieldsForImport in interface DDMTemplateVersionModel
Throws:
LocaleException

prepareLocalizedFieldsForImport

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

toEscapedModel

public DDMTemplateVersion 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<DDMTemplateVersion>
Specified by:
toEscapedModel in interface DDMTemplateVersionModel
Overrides:
toEscapedModel in class BaseModelImpl<DDMTemplateVersion>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

clone

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

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

compareTo

public int compareTo(DDMTemplateVersion ddmTemplateVersion)
Specified by:
compareTo in interface DDMTemplateVersionModel
Specified by:
compareTo in interface Comparable<DDMTemplateVersion>

equals

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

hashCode

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

isEntityCacheEnabled

public boolean isEntityCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's entity cache is enabled.

Specified by:
isEntityCacheEnabled in interface BaseModel<DDMTemplateVersion>
Returns:
true if this model's entity cache is enabled; false otherwise

isFinderCacheEnabled

public boolean isFinderCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's finder cache is enabled.

Specified by:
isFinderCacheEnabled in interface BaseModel<DDMTemplateVersion>
Returns:
true if this model's finder cache is enabled; false otherwise

resetOriginalValues

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

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

toCacheModel

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

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

toString

public String toString()
Specified by:
toString in interface DDMTemplateVersionModel
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<DDMTemplateVersion>
Specified by:
toXmlString in interface DDMTemplateVersionModel
Returns:
the XML representation of this model instance

Liferay 7.0-ce-m6