Liferay 6.1.2-ce-ga3

com.liferay.portlet.dynamicdatamapping.model
Class DDMStructureWrapper

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.model.DDMStructureWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<DDMStructure>, ClassedModel, GroupedModel, ModelWrapper<DDMStructure>, PersistedModel, DDMStructure, DDMStructureModel, Serializable, Cloneable, Comparable<DDMStructure>

public class DDMStructureWrapper
extends Object
implements DDMStructure, ModelWrapper<DDMStructure>

This class is a wrapper for DDMStructure.

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

Constructor Summary
DDMStructureWrapper(DDMStructure ddmStructure)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(DDMStructure ddmStructure)
           
 boolean equals(Object obj)
           
 List<String> getAvailableLocales()
           
 String getClassName()
          Returns the fully qualified class name of this d d m structure.
 long getClassNameId()
          Returns the class name ID of this d d m structure.
 long getCompanyId()
          Returns the company ID of this d d m structure.
 Date getCreateDate()
          Returns the create date of this d d m structure.
 String getDefaultLocale()
           
 String getDescription()
          Returns the description of this d d m structure.
 String getDescription(Locale locale)
          Returns the localized description of this d d m structure in the language.
 String getDescription(Locale locale, boolean useDefault)
          Returns the localized description of this d d m structure 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 in the language.
 String getDescription(String languageId, boolean useDefault)
          Returns the localized description of this d d m structure 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.
 Document getDocument()
           
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 String getFieldDataType(String fieldName)
           
 String getFieldLabel(String fieldName, Locale locale)
           
 String getFieldLabel(String fieldName, String locale)
           
 Set<String> getFieldNames()
           
 String getFieldProperty(String fieldName, String property)
           
 String getFieldProperty(String fieldName, String property, String locale)
           
 boolean getFieldRequired(String fieldName)
           
 Map<String,String> getFields(String fieldName, String attributeName, String attributeValue)
           
 Map<String,String> getFields(String fieldName, String attributeName, String attributeValue, String locale)
           
 Map<String,Map<String,String>> getFieldsMap()
           
 Map<String,Map<String,String>> getFieldsMap(String locale)
           
 String getFieldType(String fieldName)
           
 long getGroupId()
          Returns the group ID of this d d m structure.
 Map<String,Map<String,Map<String,String>>> getLocalizedFieldsMap()
           
 Map<String,Map<String,Map<String,String>>> getLocalizedTransientFieldsMap()
           
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this d d m structure.
 String getName()
          Returns the name of this d d m structure.
 String getName(Locale locale)
          Returns the localized name of this d d m structure in the language.
 String getName(Locale locale, boolean useDefault)
          Returns the localized name of this d d m structure 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 in the language.
 String getName(String languageId, boolean useDefault)
          Returns the localized name of this d d m structure 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.
 long getPrimaryKey()
          Returns the primary key of this d d m structure.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getStorageType()
          Returns the storage type of this d d m structure.
 long getStructureId()
          Returns the structure ID of this d d m structure.
 String getStructureKey()
          Returns the structure key of this d d m structure.
 List<DDMTemplate> getTemplates()
           
 Map<String,Map<String,String>> getTransientFieldsMap(String locale)
           
 int getType()
          Returns the type of this d d m structure.
 long getUserId()
          Returns the user ID of this d d m structure.
 String getUserName()
          Returns the user name of this d d m structure.
 String getUserUuid()
          Returns the user uuid of this d d m structure.
 String getUuid()
          Returns the uuid of this d d m structure.
 DDMStructure getWrappedDDMStructure()
          Deprecated. Renamed to getWrappedModel()
 DDMStructure getWrappedModel()
           
 String getXsd()
          Returns the xsd of this d d m structure.
 boolean hasField(String fieldName)
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 void persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 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 structure.
 void setCompanyId(long companyId)
          Sets the company ID of this d d m structure.
 void setCreateDate(Date createDate)
          Sets the create date of this d d m structure.
 void setDescription(String description)
          Sets the description of this d d m structure.
 void setDescription(String description, Locale locale)
          Sets the localized description of this d d m structure in the language.
 void setDescription(String description, Locale locale, Locale defaultLocale)
          Sets the localized description of this d d m structure 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 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 from the map of locales and localized descriptions, and sets the default locale.
 void setDocument(Document document)
           
 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.
 void setLocalizedFieldsMap(Map<String,Map<String,Map<String,String>>> localizedFieldsMap)
           
 void setLocalizedTransientFieldsMap(Map<String,Map<String,Map<String,String>>> localizedTransientFieldsMap)
           
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this d d m structure.
 void setName(String name)
          Sets the name of this d d m structure.
 void setName(String name, Locale locale)
          Sets the localized name of this d d m structure in the language.
 void setName(String name, Locale locale, Locale defaultLocale)
          Sets the localized name of this d d m structure 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 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 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 structure.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setStorageType(String storageType)
          Sets the storage type of this d d m structure.
 void setStructureId(long structureId)
          Sets the structure ID of this d d m structure.
 void setStructureKey(String structureKey)
          Sets the structure key of this d d m structure.
 void setType(int type)
          Sets the type of this d d m structure.
 void setUserId(long userId)
          Sets the user ID of this d d m structure.
 void setUserName(String userName)
          Sets the user name of this d d m structure.
 void setUserUuid(String userUuid)
          Sets the user uuid of this d d m structure.
 void setUuid(String uuid)
          Sets the uuid of this d d m structure.
 void setXsd(String xsd)
          Sets the xsd of this d d m structure.
 CacheModel<DDMStructure> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 DDMStructure toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 DDMStructure 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

DDMStructureWrapper

public DDMStructureWrapper(DDMStructure ddmStructure)
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<DDMStructure>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this d d m structure.

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

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this d d m structure.

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

getUuid

public String getUuid()
Returns the uuid of this d d m structure.

Specified by:
getUuid in interface DDMStructureModel
Returns:
the uuid of this d d m structure

setUuid

public void setUuid(String uuid)
Sets the uuid of this d d m structure.

Specified by:
setUuid in interface DDMStructureModel
Parameters:
uuid - the uuid of this d d m structure

getStructureId

public long getStructureId()
Returns the structure ID of this d d m structure.

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

setStructureId

public void setStructureId(long structureId)
Sets the structure ID of this d d m structure.

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

getGroupId

public long getGroupId()
Returns the group ID of this d d m structure.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface DDMStructureModel
Returns:
the group ID of this d d m structure

setGroupId

public void setGroupId(long groupId)
Sets the group ID of this d d m structure.

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

getCompanyId

public long getCompanyId()
Returns the company ID of this d d m structure.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface DDMStructureModel
Returns:
the company ID of this d d m structure

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this d d m structure.

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

getUserId

public long getUserId()
Returns the user ID of this d d m structure.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface DDMStructureModel
Returns:
the user ID of this d d m structure

setUserId

public void setUserId(long userId)
Sets the user ID of this d d m structure.

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

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this d d m structure.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface DDMStructureModel
Returns:
the user uuid of this d d m structure
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this d d m structure.

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

getUserName

public String getUserName()
Returns the user name of this d d m structure.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface DDMStructureModel
Returns:
the user name of this d d m structure

setUserName

public void setUserName(String userName)
Sets the user name of this d d m structure.

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

getCreateDate

public Date getCreateDate()
Returns the create date of this d d m structure.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface DDMStructureModel
Returns:
the create date of this d d m structure

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this d d m structure.

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

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this d d m structure.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface DDMStructureModel
Returns:
the modified date of this d d m structure

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this d d m structure.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface DDMStructureModel
Parameters:
modifiedDate - the modified date of this d d m structure

getClassName

public String getClassName()
Returns the fully qualified class name of this d d m structure.

Specified by:
getClassName in interface DDMStructureModel
Returns:
the fully qualified class name of this d d m structure

setClassName

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

getClassNameId

public long getClassNameId()
Returns the class name ID of this d d m structure.

Specified by:
getClassNameId in interface DDMStructureModel
Returns:
the class name ID of this d d m structure

setClassNameId

public void setClassNameId(long classNameId)
Sets the class name ID of this d d m structure.

Specified by:
setClassNameId in interface DDMStructureModel
Parameters:
classNameId - the class name ID of this d d m structure

getStructureKey

public String getStructureKey()
Returns the structure key of this d d m structure.

Specified by:
getStructureKey in interface DDMStructureModel
Returns:
the structure key of this d d m structure

setStructureKey

public void setStructureKey(String structureKey)
Sets the structure key of this d d m structure.

Specified by:
setStructureKey in interface DDMStructureModel
Parameters:
structureKey - the structure key of this d d m structure

getName

public String getName()
Returns the name of this d d m structure.

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

getName

public String getName(Locale locale)
Returns the localized name of this d d m structure in the language. Uses the default language if no localization exists for the requested language.

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

getName

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

Specified by:
getName in interface DDMStructureModel
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. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getName

public String getName(String languageId)
Returns the localized name of this d d m structure in the language. Uses the default language if no localization exists for the requested language.

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

getName

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

Specified by:
getName in interface DDMStructureModel
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

getNameCurrentLanguageId

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

getNameCurrentValue

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

getNameMap

public Map<Locale,String> getNameMap()
Returns a map of the locales and localized names of this d d m structure.

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

setName

public void setName(String name)
Sets the name of this d d m structure.

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

setName

public void setName(String name,
                    Locale locale)
Sets the localized name of this d d m structure in the language.

Specified by:
setName in interface DDMStructureModel
Parameters:
name - the localized name of this d d m structure
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 structure in the language, and sets the default locale.

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

setNameCurrentLanguageId

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

setNameMap

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

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

setNameMap

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

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

getDescription

public String getDescription()
Returns the description of this d d m structure.

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

getDescription

public String getDescription(Locale locale)
Returns the localized description of this d d m structure in the language. Uses the default language if no localization exists for the requested language.

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

getDescription

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

Specified by:
getDescription in interface DDMStructureModel
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. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getDescription

public String getDescription(String languageId)
Returns the localized description of this d d m structure in the language. Uses the default language if no localization exists for the requested language.

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

getDescription

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

Specified by:
getDescription in interface DDMStructureModel
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

getDescriptionCurrentLanguageId

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

getDescriptionCurrentValue

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

getDescriptionMap

public Map<Locale,String> getDescriptionMap()
Returns a map of the locales and localized descriptions of this d d m structure.

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

setDescription

public void setDescription(String description)
Sets the description of this d d m structure.

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

setDescription

public void setDescription(String description,
                           Locale locale)
Sets the localized description of this d d m structure in the language.

Specified by:
setDescription in interface DDMStructureModel
Parameters:
description - the localized description of this d d m structure
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 structure in the language, and sets the default locale.

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

setDescriptionCurrentLanguageId

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

setDescriptionMap

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

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

setDescriptionMap

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

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

getXsd

public String getXsd()
Returns the xsd of this d d m structure.

Specified by:
getXsd in interface DDMStructureModel
Returns:
the xsd of this d d m structure

setXsd

public void setXsd(String xsd)
Sets the xsd of this d d m structure.

Specified by:
setXsd in interface DDMStructure
Specified by:
setXsd in interface DDMStructureModel
Parameters:
xsd - the xsd of this d d m structure

getStorageType

public String getStorageType()
Returns the storage type of this d d m structure.

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

setStorageType

public void setStorageType(String storageType)
Sets the storage type of this d d m structure.

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

getType

public int getType()
Returns the type of this d d m structure.

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

setType

public void setType(int type)
Sets the type of this d d m structure.

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

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<DDMStructure>
Specified by:
isNew in interface DDMStructureModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

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<DDMStructure>
Specified by:
setNew in interface DDMStructureModel
Parameters:
n - whether this model instance does not yet exist in the database

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<DDMStructure>
Specified by:
isCachedModel in interface DDMStructureModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

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<DDMStructure>
Specified by:
setCachedModel in interface DDMStructureModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

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

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

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<DDMStructure>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface DDMStructureModel
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<DDMStructure>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface DDMStructureModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<DDMStructure>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface DDMStructureModel
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<DDMStructure>
Specified by:
setExpandoBridgeAttributes in interface DDMStructureModel
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface DDMStructure
Specified by:
prepareLocalizedFieldsForImport in interface DDMStructureModel
Throws:
LocaleException

clone

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

Specified by:
clone in interface BaseModel<DDMStructure>
Specified by:
clone in interface DDMStructureModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(DDMStructure ddmStructure)
Specified by:
compareTo in interface DDMStructureModel
Specified by:
compareTo in interface Comparable<DDMStructure>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<DDMStructure>
Specified by:
toCacheModel in interface DDMStructureModel
Returns:
the cache model object

toEscapedModel

public DDMStructure 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<DDMStructure>
Specified by:
toEscapedModel in interface DDMStructureModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public DDMStructure toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<DDMStructure>
Specified by:
toUnescapedModel in interface DDMStructureModel

toString

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

persist

public void persist()
             throws SystemException
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
Throws:
SystemException - if a system exception occurred

getAvailableLocales

public List<String> getAvailableLocales()
Specified by:
getAvailableLocales in interface DDMStructure

getDefaultLocale

public String getDefaultLocale()
Specified by:
getDefaultLocale in interface DDMStructure

getDocument

public Document getDocument()
Specified by:
getDocument in interface DDMStructure

getFieldDataType

public String getFieldDataType(String fieldName)
                        throws StructureFieldException
Specified by:
getFieldDataType in interface DDMStructure
Throws:
StructureFieldException

getFieldLabel

public String getFieldLabel(String fieldName,
                            Locale locale)
                     throws StructureFieldException
Specified by:
getFieldLabel in interface DDMStructure
Throws:
StructureFieldException

getFieldLabel

public String getFieldLabel(String fieldName,
                            String locale)
                     throws StructureFieldException
Specified by:
getFieldLabel in interface DDMStructure
Throws:
StructureFieldException

getFieldNames

public Set<String> getFieldNames()
Specified by:
getFieldNames in interface DDMStructure

getFieldProperty

public String getFieldProperty(String fieldName,
                               String property)
                        throws StructureFieldException
Specified by:
getFieldProperty in interface DDMStructure
Throws:
StructureFieldException

getFieldProperty

public String getFieldProperty(String fieldName,
                               String property,
                               String locale)
                        throws StructureFieldException
Specified by:
getFieldProperty in interface DDMStructure
Throws:
StructureFieldException

getFieldRequired

public boolean getFieldRequired(String fieldName)
                         throws StructureFieldException
Specified by:
getFieldRequired in interface DDMStructure
Throws:
StructureFieldException

getFields

public Map<String,String> getFields(String fieldName,
                                    String attributeName,
                                    String attributeValue)
Specified by:
getFields in interface DDMStructure

getFields

public Map<String,String> getFields(String fieldName,
                                    String attributeName,
                                    String attributeValue,
                                    String locale)
Specified by:
getFields in interface DDMStructure

getFieldsMap

public Map<String,Map<String,String>> getFieldsMap()
Specified by:
getFieldsMap in interface DDMStructure

getFieldsMap

public Map<String,Map<String,String>> getFieldsMap(String locale)
Specified by:
getFieldsMap in interface DDMStructure

getFieldType

public String getFieldType(String fieldName)
                    throws StructureFieldException
Specified by:
getFieldType in interface DDMStructure
Throws:
StructureFieldException

getLocalizedFieldsMap

public Map<String,Map<String,Map<String,String>>> getLocalizedFieldsMap()
Specified by:
getLocalizedFieldsMap in interface DDMStructure

getLocalizedTransientFieldsMap

public Map<String,Map<String,Map<String,String>>> getLocalizedTransientFieldsMap()
Specified by:
getLocalizedTransientFieldsMap in interface DDMStructure

getTemplates

public List<DDMTemplate> getTemplates()
                               throws SystemException
Specified by:
getTemplates in interface DDMStructure
Throws:
SystemException

getTransientFieldsMap

public Map<String,Map<String,String>> getTransientFieldsMap(String locale)
Specified by:
getTransientFieldsMap in interface DDMStructure

hasField

public boolean hasField(String fieldName)
Specified by:
hasField in interface DDMStructure

setDocument

public void setDocument(Document document)
Specified by:
setDocument in interface DDMStructure

setLocalizedFieldsMap

public void setLocalizedFieldsMap(Map<String,Map<String,Map<String,String>>> localizedFieldsMap)
Specified by:
setLocalizedFieldsMap in interface DDMStructure

setLocalizedTransientFieldsMap

public void setLocalizedTransientFieldsMap(Map<String,Map<String,Map<String,String>>> localizedTransientFieldsMap)
Specified by:
setLocalizedTransientFieldsMap in interface DDMStructure

equals

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

getWrappedDDMStructure

public DDMStructure getWrappedDDMStructure()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<DDMStructure>

Liferay 6.1.2-ce-ga3