Liferay 7.0-ce-m6

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

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<DDMStructureVersion>
      extended by com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureVersionModelImpl
All Implemented Interfaces:
BaseModel<DDMStructureVersion>, ClassedModel, LocalizedModel, WorkflowedModel, DDMStructureVersionModel, Serializable, Cloneable, Comparable<DDMStructureVersion>
Direct Known Subclasses:
DDMStructureVersionBaseImpl

@JSON(strict=true)
@ProviderType
public class DDMStructureVersionModelImpl
extends BaseModelImpl<DDMStructureVersion>
implements DDMStructureVersionModel

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

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

See Also:
DDMStructureVersionImpl, DDMStructureVersion, DDMStructureVersionModel, 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 long STRUCTUREID_COLUMN_BITMASK
           
static long STRUCTUREVERSIONID_COLUMN_BITMASK
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
static long VERSION_COLUMN_BITMASK
           
 
Constructor Summary
DDMStructureVersionModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(DDMStructureVersion ddmStructureVersion)
           
 boolean equals(Object obj)
           
 boolean getApproved()
          Deprecated. As of 6.1.0, replaced by isApproved()
 String[] getAvailableLanguageIds()
           
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this d d m structure version.
 Date getCreateDate()
          Returns the create date of this d d m structure version.
 DDMForm getDDMForm()
           
 String getDefaultLanguageId()
           
 String getDefinition()
          Returns the definition of this d d m structure version.
 String getDescription()
          Returns the description of this d d m structure version.
 String getDescription(Locale locale)
          Returns the localized description of this d d m structure version in the language.
 String getDescription(Locale locale, boolean useDefault)
          Returns the localized description of this d d m structure 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 structure version in the language.
 String getDescription(String languageId, boolean useDefault)
          Returns the localized description of this d d m structure 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 structure version.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getGroupId()
          Returns the group ID of this d d m structure version.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getName()
          Returns the name of this d d m structure version.
 String getName(Locale locale)
          Returns the localized name of this d d m structure version in the language.
 String getName(Locale locale, boolean useDefault)
          Returns the localized name of this d d m structure 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 structure version in the language.
 String getName(String languageId, boolean useDefault)
          Returns the localized name of this d d m structure 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 structure version.
 int getOriginalStatus()
           
 long getOriginalStructureId()
           
 String getOriginalVersion()
           
 long getParentStructureId()
          Returns the parent structure ID of this d d m structure version.
 long getPrimaryKey()
          Returns the primary key of this d d m structure version.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 int getStatus()
          Returns the status of this d d m structure version.
 long getStatusByUserId()
          Returns the status by user ID of this d d m structure version.
 String getStatusByUserName()
          Returns the status by user name of this d d m structure version.
 String getStatusByUserUuid()
          Returns the status by user uuid of this d d m structure version.
 Date getStatusDate()
          Returns the status date of this d d m structure version.
 String getStorageType()
          Returns the storage type of this d d m structure version.
 long getStructureId()
          Returns the structure ID of this d d m structure version.
 long getStructureVersionId()
          Returns the structure version ID of this d d m structure version.
 int getType()
          Returns the type of this d d m structure version.
 long getUserId()
          Returns the user ID of this d d m structure version.
 String getUserName()
          Returns the user name of this d d m structure version.
 String getUserUuid()
          Returns the user uuid of this d d m structure version.
 String getVersion()
          Returns the version of this d d m structure version.
 int hashCode()
           
 boolean isApproved()
          Returns true if this d d m structure version is approved.
 boolean isDenied()
          Returns true if this d d m structure version is denied.
 boolean isDraft()
          Returns true if this d d m structure 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 structure version is expired.
 boolean isFinderCacheEnabled()
          Returns true if this model's finder cache is enabled.
 boolean isInactive()
          Returns true if this d d m structure version is inactive.
 boolean isIncomplete()
          Returns true if this d d m structure version is incomplete.
 boolean isPending()
          Returns true if this d d m structure version is pending.
 boolean isScheduled()
          Returns true if this d d m structure version is scheduled.
 void prepareLocalizedFieldsForImport()
           
 void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCompanyId(long companyId)
          Sets the company ID of this d d m structure version.
 void setCreateDate(Date createDate)
          Sets the create date of this d d m structure version.
 void setDDMForm(DDMForm ddmForm)
           
 void setDefinition(String definition)
          Sets the definition of this d d m structure version.
 void setDescription(String description)
          Sets the description of this d d m structure version.
 void setDescription(String description, Locale locale)
          Sets the localized description of this d d m structure version in the language.
 void setDescription(String description, Locale locale, Locale defaultLocale)
          Sets the localized description of this d d m structure 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 structure 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 structure 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 structure version.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setName(String name)
          Sets the name of this d d m structure version.
 void setName(String name, Locale locale)
          Sets the localized name of this d d m structure version in the language.
 void setName(String name, Locale locale, Locale defaultLocale)
          Sets the localized name of this d d m structure 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 structure 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 structure version from the map of locales and localized names, and sets the default locale.
 void setParentStructureId(long parentStructureId)
          Sets the parent structure ID of this d d m structure version.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this d d m structure version.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setStatus(int status)
          Sets the status of this d d m structure version.
 void setStatusByUserId(long statusByUserId)
          Sets the status by user ID of this d d m structure version.
 void setStatusByUserName(String statusByUserName)
          Sets the status by user name of this d d m structure version.
 void setStatusByUserUuid(String statusByUserUuid)
          Sets the status by user uuid of this d d m structure version.
 void setStatusDate(Date statusDate)
          Sets the status date of this d d m structure version.
 void setStorageType(String storageType)
          Sets the storage type of this d d m structure version.
 void setStructureId(long structureId)
          Sets the structure ID of this d d m structure version.
 void setStructureVersionId(long structureVersionId)
          Sets the structure version ID of this d d m structure version.
 void setType(int type)
          Sets the type of this d d m structure version.
 void setUserId(long userId)
          Sets the user ID of this d d m structure version.
 void setUserName(String userName)
          Sets the user name of this d d m structure version.
 void setUserUuid(String userUuid)
          Sets the user uuid of this d d m structure version.
 void setVersion(String version)
          Sets the version of this d d m structure version.
 CacheModel<DDMStructureVersion> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 DDMStructureVersion toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static DDMStructureVersion toModel(DDMStructureVersionSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<DDMStructureVersion> toModels(DDMStructureVersionSoap[] 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.DDMStructureVersionModel
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

STRUCTUREID_COLUMN_BITMASK

public static final long STRUCTUREID_COLUMN_BITMASK
See Also:
Constant Field Values

VERSION_COLUMN_BITMASK

public static final long VERSION_COLUMN_BITMASK
See Also:
Constant Field Values

STRUCTUREVERSIONID_COLUMN_BITMASK

public static final long STRUCTUREVERSIONID_COLUMN_BITMASK
See Also:
Constant Field Values

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

DDMStructureVersionModelImpl

public DDMStructureVersionModelImpl()
Method Detail

toModel

public static DDMStructureVersion toModel(DDMStructureVersionSoap 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<DDMStructureVersion> toModels(DDMStructureVersionSoap[] 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: DDMStructureVersionModel
Returns the primary key of this d d m structure version.

Specified by:
getPrimaryKey in interface DDMStructureVersionModel
Returns:
the primary key of this d d m structure version

setPrimaryKey

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

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

getPrimaryKeyObj

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

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

setModelAttributes

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

getStructureVersionId

@JSON
public long getStructureVersionId()
Description copied from interface: DDMStructureVersionModel
Returns the structure version ID of this d d m structure version.

Specified by:
getStructureVersionId in interface DDMStructureVersionModel
Returns:
the structure version ID of this d d m structure version

setStructureVersionId

public void setStructureVersionId(long structureVersionId)
Description copied from interface: DDMStructureVersionModel
Sets the structure version ID of this d d m structure version.

Specified by:
setStructureVersionId in interface DDMStructureVersionModel
Parameters:
structureVersionId - the structure version ID of this d d m structure version

getGroupId

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

Specified by:
getGroupId in interface DDMStructureVersionModel
Returns:
the group ID of this d d m structure version

setGroupId

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

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

getCompanyId

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

Specified by:
getCompanyId in interface DDMStructureVersionModel
Returns:
the company ID of this d d m structure version

setCompanyId

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

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

getUserId

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

Specified by:
getUserId in interface DDMStructureVersionModel
Returns:
the user ID of this d d m structure version

setUserId

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

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

getUserUuid

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

Specified by:
getUserUuid in interface DDMStructureVersionModel
Returns:
the user uuid of this d d m structure version

setUserUuid

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

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

getUserName

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

Specified by:
getUserName in interface DDMStructureVersionModel
Returns:
the user name of this d d m structure version

setUserName

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

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

getCreateDate

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

Specified by:
getCreateDate in interface DDMStructureVersionModel
Returns:
the create date of this d d m structure version

setCreateDate

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

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

getStructureId

@JSON
public long getStructureId()
Description copied from interface: DDMStructureVersionModel
Returns the structure ID of this d d m structure version.

Specified by:
getStructureId in interface DDMStructureVersionModel
Returns:
the structure ID of this d d m structure version

setStructureId

public void setStructureId(long structureId)
Description copied from interface: DDMStructureVersionModel
Sets the structure ID of this d d m structure version.

Specified by:
setStructureId in interface DDMStructureVersionModel
Parameters:
structureId - the structure ID of this d d m structure version

getOriginalStructureId

public long getOriginalStructureId()

getVersion

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

Specified by:
getVersion in interface DDMStructureVersionModel
Returns:
the version of this d d m structure version

setVersion

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

Specified by:
setVersion in interface DDMStructureVersionModel
Parameters:
version - the version of this d d m structure version

getOriginalVersion

public String getOriginalVersion()

getParentStructureId

@JSON
public long getParentStructureId()
Description copied from interface: DDMStructureVersionModel
Returns the parent structure ID of this d d m structure version.

Specified by:
getParentStructureId in interface DDMStructureVersionModel
Returns:
the parent structure ID of this d d m structure version

setParentStructureId

public void setParentStructureId(long parentStructureId)
Description copied from interface: DDMStructureVersionModel
Sets the parent structure ID of this d d m structure version.

Specified by:
setParentStructureId in interface DDMStructureVersionModel
Parameters:
parentStructureId - the parent structure ID of this d d m structure version

getName

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

Specified by:
getName in interface DDMStructureVersionModel
Returns:
the name of this d d m structure version

getName

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

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

getName

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

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

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

getName

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

Specified by:
getName in interface DDMStructureVersionModel
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 structure version

getNameCurrentLanguageId

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

getNameCurrentValue

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

getNameMap

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

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

setName

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

Specified by:
setName in interface DDMStructureVersionModel
Parameters:
name - the name of this d d m structure version

setName

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

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

setName

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

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

setNameCurrentLanguageId

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

setNameMap

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

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

setNameMap

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

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

getDescription

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

Specified by:
getDescription in interface DDMStructureVersionModel
Returns:
the description of this d d m structure version

getDescription

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

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

getDescription

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

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

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

getDescription

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

Specified by:
getDescription in interface DDMStructureVersionModel
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 structure version

getDescriptionCurrentLanguageId

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

getDescriptionCurrentValue

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

getDescriptionMap

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

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

setDescription

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

Specified by:
setDescription in interface DDMStructureVersionModel
Parameters:
description - the description of this d d m structure version

setDescription

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

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

setDescription

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

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

setDescriptionCurrentLanguageId

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

setDescriptionMap

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

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

setDescriptionMap

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

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

getDefinition

@JSON
public String getDefinition()
Description copied from interface: DDMStructureVersionModel
Returns the definition of this d d m structure version.

Specified by:
getDefinition in interface DDMStructureVersionModel
Returns:
the definition of this d d m structure version

setDefinition

public void setDefinition(String definition)
Description copied from interface: DDMStructureVersionModel
Sets the definition of this d d m structure version.

Specified by:
setDefinition in interface DDMStructureVersionModel
Parameters:
definition - the definition of this d d m structure version

getStorageType

@JSON
public String getStorageType()
Description copied from interface: DDMStructureVersionModel
Returns the storage type of this d d m structure version.

Specified by:
getStorageType in interface DDMStructureVersionModel
Returns:
the storage type of this d d m structure version

setStorageType

public void setStorageType(String storageType)
Description copied from interface: DDMStructureVersionModel
Sets the storage type of this d d m structure version.

Specified by:
setStorageType in interface DDMStructureVersionModel
Parameters:
storageType - the storage type of this d d m structure version

getType

@JSON
public int getType()
Description copied from interface: DDMStructureVersionModel
Returns the type of this d d m structure version.

Specified by:
getType in interface DDMStructureVersionModel
Returns:
the type of this d d m structure version

setType

public void setType(int type)
Description copied from interface: DDMStructureVersionModel
Sets the type of this d d m structure version.

Specified by:
setType in interface DDMStructureVersionModel
Parameters:
type - the type of this d d m structure version

getStatus

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

Specified by:
getStatus in interface WorkflowedModel
Specified by:
getStatus in interface DDMStructureVersionModel
Returns:
the status of this d d m structure version

setStatus

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

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

getOriginalStatus

public int getOriginalStatus()

getStatusByUserId

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

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

setStatusByUserId

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

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

getStatusByUserUuid

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

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

setStatusByUserUuid

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

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

getStatusByUserName

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

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

setStatusByUserName

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

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

getStatusDate

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

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

setStatusDate

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

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

getDDMForm

public DDMForm getDDMForm()

setDDMForm

public void setDDMForm(DDMForm ddmForm)

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 DDMStructureVersionModel

isApproved

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

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

isDenied

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

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

isDraft

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

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

isExpired

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

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

isInactive

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

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

isIncomplete

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

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

isPending

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

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

isScheduled

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

Specified by:
isScheduled in interface WorkflowedModel
Specified by:
isScheduled in interface DDMStructureVersionModel
Returns:
true if this d d m structure 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<DDMStructureVersion>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface DDMStructureVersionModel
Overrides:
getExpandoBridge in class BaseModelImpl<DDMStructureVersion>
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<DDMStructureVersion>
Specified by:
setExpandoBridgeAttributes in interface DDMStructureVersionModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<DDMStructureVersion>
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 DDMStructureVersionModel

getDefaultLanguageId

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

prepareLocalizedFieldsForImport

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

prepareLocalizedFieldsForImport

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

toEscapedModel

public DDMStructureVersion 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<DDMStructureVersion>
Specified by:
toEscapedModel in interface DDMStructureVersionModel
Overrides:
toEscapedModel in class BaseModelImpl<DDMStructureVersion>
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<DDMStructureVersion>
Specified by:
clone in interface DDMStructureVersionModel
Specified by:
clone in class BaseModelImpl<DDMStructureVersion>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(DDMStructureVersion ddmStructureVersion)
Specified by:
compareTo in interface DDMStructureVersionModel
Specified by:
compareTo in interface Comparable<DDMStructureVersion>

equals

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

hashCode

public int hashCode()
Specified by:
hashCode in interface DDMStructureVersionModel
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<DDMStructureVersion>
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<DDMStructureVersion>
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<DDMStructureVersion>
Overrides:
resetOriginalValues in class BaseModelImpl<DDMStructureVersion>

toCacheModel

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

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

toString

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

Liferay 7.0-ce-m6