|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.dynamicdatamapping.model.DDMStructureWrapper
public class DDMStructureWrapper
This class is a wrapper for DDMStructure
.
DDMStructure
,
Serialized FormConstructor 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 |
---|
public DDMStructureWrapper(DDMStructure ddmStructure)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<DDMStructure>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<DDMStructure>
public long getPrimaryKey()
getPrimaryKey
in interface DDMStructureModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface DDMStructureModel
primaryKey
- the primary key of this d d m structurepublic String getUuid()
getUuid
in interface DDMStructureModel
public void setUuid(String uuid)
setUuid
in interface DDMStructureModel
uuid
- the uuid of this d d m structurepublic long getStructureId()
getStructureId
in interface DDMStructureModel
public void setStructureId(long structureId)
setStructureId
in interface DDMStructureModel
structureId
- the structure ID of this d d m structurepublic long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface DDMStructureModel
public void setGroupId(long groupId)
setGroupId
in interface GroupedModel
setGroupId
in interface DDMStructureModel
groupId
- the group ID of this d d m structurepublic long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface DDMStructureModel
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface DDMStructureModel
companyId
- the company ID of this d d m structurepublic long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface DDMStructureModel
public void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface DDMStructureModel
userId
- the user ID of this d d m structurepublic String getUserUuid() throws SystemException
getUserUuid
in interface AuditedModel
getUserUuid
in interface DDMStructureModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface DDMStructureModel
userUuid
- the user uuid of this d d m structurepublic String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface DDMStructureModel
public void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface DDMStructureModel
userName
- the user name of this d d m structurepublic Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface DDMStructureModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface DDMStructureModel
createDate
- the create date of this d d m structurepublic Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface DDMStructureModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface DDMStructureModel
modifiedDate
- the modified date of this d d m structurepublic String getClassName()
getClassName
in interface DDMStructureModel
public void setClassName(String className)
setClassName
in interface DDMStructureModel
public long getClassNameId()
getClassNameId
in interface DDMStructureModel
public void setClassNameId(long classNameId)
setClassNameId
in interface DDMStructureModel
classNameId
- the class name ID of this d d m structurepublic String getStructureKey()
getStructureKey
in interface DDMStructureModel
public void setStructureKey(String structureKey)
setStructureKey
in interface DDMStructureModel
structureKey
- the structure key of this d d m structurepublic String getName()
getName
in interface DDMStructureModel
public String getName(Locale locale)
getName
in interface DDMStructureModel
locale
- the locale of the language
public String getName(Locale locale, boolean useDefault)
getName
in interface DDMStructureModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
useDefault
is false
and no localization exists for the requested language, an empty string will be returned.public String getName(String languageId)
getName
in interface DDMStructureModel
languageId
- the ID of the language
public String getName(String languageId, boolean useDefault)
getName
in interface DDMStructureModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
public String getNameCurrentLanguageId()
getNameCurrentLanguageId
in interface DDMStructureModel
public String getNameCurrentValue()
getNameCurrentValue
in interface DDMStructureModel
public Map<Locale,String> getNameMap()
getNameMap
in interface DDMStructureModel
public void setName(String name)
setName
in interface DDMStructureModel
name
- the name of this d d m structurepublic void setName(String name, Locale locale)
setName
in interface DDMStructureModel
name
- the localized name of this d d m structurelocale
- the locale of the languagepublic void setName(String name, Locale locale, Locale defaultLocale)
setName
in interface DDMStructureModel
name
- the localized name of this d d m structurelocale
- the locale of the languagedefaultLocale
- the default localepublic void setNameCurrentLanguageId(String languageId)
setNameCurrentLanguageId
in interface DDMStructureModel
public void setNameMap(Map<Locale,String> nameMap)
setNameMap
in interface DDMStructureModel
nameMap
- the locales and localized names of this d d m structurepublic void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
setNameMap
in interface DDMStructureModel
nameMap
- the locales and localized names of this d d m structuredefaultLocale
- the default localepublic String getDescription()
getDescription
in interface DDMStructureModel
public String getDescription(Locale locale)
getDescription
in interface DDMStructureModel
locale
- the locale of the language
public String getDescription(Locale locale, boolean useDefault)
getDescription
in interface DDMStructureModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
useDefault
is false
and no localization exists for the requested language, an empty string will be returned.public String getDescription(String languageId)
getDescription
in interface DDMStructureModel
languageId
- the ID of the language
public String getDescription(String languageId, boolean useDefault)
getDescription
in interface DDMStructureModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
public String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId
in interface DDMStructureModel
public String getDescriptionCurrentValue()
getDescriptionCurrentValue
in interface DDMStructureModel
public Map<Locale,String> getDescriptionMap()
getDescriptionMap
in interface DDMStructureModel
public void setDescription(String description)
setDescription
in interface DDMStructureModel
description
- the description of this d d m structurepublic void setDescription(String description, Locale locale)
setDescription
in interface DDMStructureModel
description
- the localized description of this d d m structurelocale
- the locale of the languagepublic void setDescription(String description, Locale locale, Locale defaultLocale)
setDescription
in interface DDMStructureModel
description
- the localized description of this d d m structurelocale
- the locale of the languagedefaultLocale
- the default localepublic void setDescriptionCurrentLanguageId(String languageId)
setDescriptionCurrentLanguageId
in interface DDMStructureModel
public void setDescriptionMap(Map<Locale,String> descriptionMap)
setDescriptionMap
in interface DDMStructureModel
descriptionMap
- the locales and localized descriptions of this d d m structurepublic void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
setDescriptionMap
in interface DDMStructureModel
descriptionMap
- the locales and localized descriptions of this d d m structuredefaultLocale
- the default localepublic String getXsd()
getXsd
in interface DDMStructureModel
public void setXsd(String xsd)
setXsd
in interface DDMStructure
setXsd
in interface DDMStructureModel
xsd
- the xsd of this d d m structurepublic String getStorageType()
getStorageType
in interface DDMStructureModel
public void setStorageType(String storageType)
setStorageType
in interface DDMStructureModel
storageType
- the storage type of this d d m structurepublic int getType()
getType
in interface DDMStructureModel
public void setType(int type)
setType
in interface DDMStructureModel
type
- the type of this d d m structurepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<DDMStructure>
isNew
in interface DDMStructureModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<DDMStructure>
setNew
in interface DDMStructureModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<DDMStructure>
isCachedModel
in interface DDMStructureModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<DDMStructure>
setCachedModel
in interface DDMStructureModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<DDMStructure>
isEscapedModel
in interface DDMStructureModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<DDMStructure>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface DDMStructureModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<DDMStructure>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface DDMStructureModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<DDMStructure>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface DDMStructureModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<DDMStructure>
setExpandoBridgeAttributes
in interface DDMStructureModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
prepareLocalizedFieldsForImport
in interface DDMStructure
prepareLocalizedFieldsForImport
in interface DDMStructureModel
LocaleException
public Object clone()
BaseModel
clone
in interface BaseModel<DDMStructure>
clone
in interface DDMStructureModel
clone
in class Object
public int compareTo(DDMStructure ddmStructure)
compareTo
in interface DDMStructureModel
compareTo
in interface Comparable<DDMStructure>
public int hashCode()
hashCode
in interface DDMStructureModel
hashCode
in class Object
public CacheModel<DDMStructure> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<DDMStructure>
toCacheModel
in interface DDMStructureModel
public DDMStructure toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<DDMStructure>
toEscapedModel
in interface DDMStructureModel
AutoEscapeBeanHandler
public DDMStructure toUnescapedModel()
toUnescapedModel
in interface BaseModel<DDMStructure>
toUnescapedModel
in interface DDMStructureModel
public String toString()
toString
in interface DDMStructureModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<DDMStructure>
toXmlString
in interface DDMStructureModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic List<String> getAvailableLocales()
getAvailableLocales
in interface DDMStructure
public String getDefaultLocale()
getDefaultLocale
in interface DDMStructure
public Document getDocument()
getDocument
in interface DDMStructure
public String getFieldDataType(String fieldName) throws StructureFieldException
getFieldDataType
in interface DDMStructure
StructureFieldException
public String getFieldLabel(String fieldName, Locale locale) throws StructureFieldException
getFieldLabel
in interface DDMStructure
StructureFieldException
public String getFieldLabel(String fieldName, String locale) throws StructureFieldException
getFieldLabel
in interface DDMStructure
StructureFieldException
public Set<String> getFieldNames()
getFieldNames
in interface DDMStructure
public String getFieldProperty(String fieldName, String property) throws StructureFieldException
getFieldProperty
in interface DDMStructure
StructureFieldException
public String getFieldProperty(String fieldName, String property, String locale) throws StructureFieldException
getFieldProperty
in interface DDMStructure
StructureFieldException
public boolean getFieldRequired(String fieldName) throws StructureFieldException
getFieldRequired
in interface DDMStructure
StructureFieldException
public Map<String,String> getFields(String fieldName, String attributeName, String attributeValue)
getFields
in interface DDMStructure
public Map<String,String> getFields(String fieldName, String attributeName, String attributeValue, String locale)
getFields
in interface DDMStructure
public Map<String,Map<String,String>> getFieldsMap()
getFieldsMap
in interface DDMStructure
public Map<String,Map<String,String>> getFieldsMap(String locale)
getFieldsMap
in interface DDMStructure
public String getFieldType(String fieldName) throws StructureFieldException
getFieldType
in interface DDMStructure
StructureFieldException
public Map<String,Map<String,Map<String,String>>> getLocalizedFieldsMap()
getLocalizedFieldsMap
in interface DDMStructure
public Map<String,Map<String,Map<String,String>>> getLocalizedTransientFieldsMap()
getLocalizedTransientFieldsMap
in interface DDMStructure
public List<DDMTemplate> getTemplates() throws SystemException
getTemplates
in interface DDMStructure
SystemException
public Map<String,Map<String,String>> getTransientFieldsMap(String locale)
getTransientFieldsMap
in interface DDMStructure
public boolean hasField(String fieldName)
hasField
in interface DDMStructure
public void setDocument(Document document)
setDocument
in interface DDMStructure
public void setLocalizedFieldsMap(Map<String,Map<String,Map<String,String>>> localizedFieldsMap)
setLocalizedFieldsMap
in interface DDMStructure
public void setLocalizedTransientFieldsMap(Map<String,Map<String,Map<String,String>>> localizedTransientFieldsMap)
setLocalizedTransientFieldsMap
in interface DDMStructure
public boolean equals(Object obj)
equals
in class Object
public DDMStructure getWrappedDDMStructure()
getWrappedModel()
public DDMStructure getWrappedModel()
getWrappedModel
in interface ModelWrapper<DDMStructure>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<DDMStructure>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |