Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.model
Class DDMTemplateVersionWrapper

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.model.DDMTemplateVersionWrapper
All Implemented Interfaces:
AttachedModel, BaseModel<DDMTemplateVersion>, ClassedModel, LocalizedModel, ModelWrapper<DDMTemplateVersion>, PersistedModel, TypedModel, WorkflowedModel, DDMTemplateVersion, DDMTemplateVersionModel, Serializable, Cloneable, Comparable<DDMTemplateVersion>

@ProviderType
public class DDMTemplateVersionWrapper
extends Object
implements DDMTemplateVersion, ModelWrapper<DDMTemplateVersion>

This class is a wrapper for DDMTemplateVersion.

See Also:
DDMTemplateVersion, Serialized Form

Constructor Summary
DDMTemplateVersionWrapper(DDMTemplateVersion ddmTemplateVersion)
           
 
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 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.
 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.
 DDMTemplate getTemplate()
           
 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.
 DDMTemplateVersion getWrappedDDMTemplateVersion()
          Deprecated. As of 6.1.0, replaced by getWrappedModel()
 DDMTemplateVersion getWrappedModel()
           
 int hashCode()
           
 boolean isApproved()
          Returns true if this d d m template version is approved.
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 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 isEscapedModel()
          Returns true if this model instance is escaped.
 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 isNew()
          Returns true if this model instance does not yet exist in the database.
 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 persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 void prepareLocalizedFieldsForImport()
           
 void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 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(BaseModel<?> baseModel)
           
 void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
           
 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 setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this 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.
 String toString()
           
 DDMTemplateVersion toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DDMTemplateVersionWrapper

public DDMTemplateVersionWrapper(DDMTemplateVersion ddmTemplateVersion)
Method Detail

getModelClass

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

getModelClassName

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

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<DDMTemplateVersion>

setModelAttributes

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

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

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

getAvailableLanguageIds

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

getClassName

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

getClassNameId

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

getClassPK

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

getCompanyId

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

getCreateDate

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

getDefaultLanguageId

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

getDescription

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

getDescription

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

getDescriptionCurrentLanguageId

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

getDescriptionCurrentValue

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

getDescriptionMap

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

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
Returns:
the expando bridge for this model instance

getGroupId

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

getLanguage

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

getName

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

getName

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

getNameCurrentLanguageId

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

getNameCurrentValue

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

getNameMap

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

getPrimaryKey

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

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

getScript

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

getStatus

public int getStatus()
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

getStatusByUserId

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

getStatusByUserName

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

getStatusByUserUuid

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

getStatusDate

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

getTemplate

public DDMTemplate getTemplate()
                        throws PortalException
Specified by:
getTemplate in interface DDMTemplateVersion
Throws:
PortalException

getTemplateId

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

getTemplateVersionId

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

getUserId

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

getUserName

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

getUserUuid

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

getVersion

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

hashCode

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

isApproved

public boolean isApproved()
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

isCachedModel

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

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

isDenied

public boolean isDenied()
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()
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

isEscapedModel

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

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

isExpired

public boolean isExpired()
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()
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()
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

isNew

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

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

isPending

public boolean isPending()
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()
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

persist

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

Specified by:
persist in interface PersistedModel

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

setCachedModel

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

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

setClassName

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

setClassNameId

public void setClassNameId(long classNameId)
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

setClassPK

public void setClassPK(long classPK)
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

setCompanyId

public void setCompanyId(long companyId)
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

setCreateDate

public void setCreateDate(Date createDate)
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

setDescription

public void setDescription(String description)
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)
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)
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)
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)
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

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<DDMTemplateVersion>
Specified by:
setExpandoBridgeAttributes in interface DDMTemplateVersionModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<DDMTemplateVersion>
Specified by:
setExpandoBridgeAttributes in interface DDMTemplateVersionModel

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
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

setGroupId

public void setGroupId(long groupId)
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

setLanguage

public void setLanguage(String language)
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

setName

public void setName(String name)
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)
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)
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)
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)
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

setNew

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

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

setPrimaryKey

public void setPrimaryKey(long primaryKey)
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

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

setScript

public void setScript(String script)
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

setStatus

public void setStatus(int status)
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

setStatusByUserId

public void setStatusByUserId(long statusByUserId)
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

setStatusByUserName

public void setStatusByUserName(String statusByUserName)
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

setStatusByUserUuid

public void setStatusByUserUuid(String statusByUserUuid)
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

setStatusDate

public void setStatusDate(Date statusDate)
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

setTemplateId

public void setTemplateId(long templateId)
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

setTemplateVersionId

public void setTemplateVersionId(long templateVersionId)
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

setUserId

public void setUserId(long userId)
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

setUserName

public void setUserName(String userName)
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

setUserUuid

public void setUserUuid(String userUuid)
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

setVersion

public void setVersion(String version)
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

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

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
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toString

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

toUnescapedModel

public DDMTemplateVersion toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<DDMTemplateVersion>
Specified by:
toUnescapedModel in interface DDMTemplateVersionModel

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

equals

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

getWrappedDDMTemplateVersion

@Deprecated
public DDMTemplateVersion getWrappedDDMTemplateVersion()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

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

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>

Liferay 7.0-ce-m6