public class MDRActionWrapper extends java.lang.Object implements MDRAction, ModelWrapper<MDRAction>
This class is a wrapper for MDRAction
.
MDRAction
,
Serialized FormACTION_ID_ACCESSOR, NAME_ACCESSOR
Constructor and Description |
---|
MDRActionWrapper(MDRAction mdrAction) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(MDRAction mdrAction) |
boolean |
equals(java.lang.Object object) |
long |
getActionId()
Returns the action ID of this mdr action.
|
java.lang.String[] |
getAvailableLanguageIds() |
java.lang.String |
getClassName()
Returns the fully qualified class name of this mdr action.
|
long |
getClassNameId()
Returns the class name ID of this mdr action.
|
long |
getClassPK()
Returns the class pk of this mdr action.
|
long |
getCompanyId()
Returns the company ID of this mdr action.
|
java.util.Date |
getCreateDate()
Returns the create date of this mdr action.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getDescription()
Returns the description of this mdr action.
|
java.lang.String |
getDescription(java.util.Locale locale)
Returns the localized description of this mdr action in the language.
|
java.lang.String |
getDescription(java.util.Locale locale,
boolean useDefault)
Returns the localized description of this mdr action in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescription(java.lang.String languageId)
Returns the localized description of this mdr action in the language.
|
java.lang.String |
getDescription(java.lang.String languageId,
boolean useDefault)
Returns the localized description of this mdr action in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescriptionCurrentLanguageId() |
java.lang.String |
getDescriptionCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this mdr action.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getGroupId()
Returns the group ID of this mdr action.
|
java.util.Date |
getLastPublishDate()
Returns the last publish date of this mdr action.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this mdr action.
|
java.lang.String |
getName()
Returns the name of this mdr action.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the localized name of this mdr action in the language.
|
java.lang.String |
getName(java.util.Locale locale,
boolean useDefault)
Returns the localized name of this mdr action in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getName(java.lang.String languageId)
Returns the localized name of this mdr action in the language.
|
java.lang.String |
getName(java.lang.String languageId,
boolean useDefault)
Returns the localized name of this mdr action in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getNameCurrentLanguageId() |
java.lang.String |
getNameCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getNameMap()
Returns a map of the locales and localized names of this mdr action.
|
long |
getPrimaryKey()
Returns the primary key of this mdr action.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getRuleGroupInstanceId()
Returns the rule group instance ID of this mdr action.
|
StagedModelType |
getStagedModelType() |
java.lang.String |
getType()
Returns the type of this mdr action.
|
java.lang.String |
getTypeSettings()
Returns the type settings of this mdr action.
|
UnicodeProperties |
getTypeSettingsProperties() |
long |
getUserId()
Returns the user ID of this mdr action.
|
java.lang.String |
getUserName()
Returns the user name of this mdr action.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this mdr action.
|
java.lang.String |
getUuid()
Returns the uuid of this mdr action.
|
MDRAction |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
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() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
resetOriginalValues()
Reset all original fields to current values.
|
void |
setActionId(long actionId)
Sets the action ID of this mdr action.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setClassName(java.lang.String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this mdr action.
|
void |
setClassPK(long classPK)
Sets the class pk of this mdr action.
|
void |
setCompanyId(long companyId)
Sets the company ID of this mdr action.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this mdr action.
|
void |
setDescription(java.lang.String description)
Sets the description of this mdr action.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale)
Sets the localized description of this mdr action in the language.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized description of this mdr action in the language, and sets the default locale.
|
void |
setDescriptionCurrentLanguageId(java.lang.String languageId) |
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
Sets the localized descriptions of this mdr action from the map of locales and localized descriptions.
|
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Locale defaultLocale)
Sets the localized descriptions of this mdr action from the map of locales and localized descriptions, and sets the default locale.
|
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the
attributes stored in the service context.
|
void |
setGroupId(long groupId)
Sets the group ID of this mdr action.
|
void |
setLastPublishDate(java.util.Date lastPublishDate)
Sets the last publish date of this mdr action.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this mdr action.
|
void |
setName(java.lang.String name)
Sets the name of this mdr action.
|
void |
setName(java.lang.String name,
java.util.Locale locale)
Sets the localized name of this mdr action in the language.
|
void |
setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized name of this mdr action in the language, and sets the default locale.
|
void |
setNameCurrentLanguageId(java.lang.String languageId) |
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
Sets the localized names of this mdr action from the map of locales and localized names.
|
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
Sets the localized names of this mdr action 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 mdr action.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setRuleGroupInstanceId(long ruleGroupInstanceId)
Sets the rule group instance ID of this mdr action.
|
void |
setType(java.lang.String type)
Sets the type of this mdr action.
|
void |
setTypeSettings(java.lang.String typeSettings)
Sets the type settings of this mdr action.
|
void |
setTypeSettingsProperties(UnicodeProperties typeSettingsProperties) |
void |
setUserId(long userId)
Sets the user ID of this mdr action.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this mdr action.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this mdr action.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this mdr action.
|
CacheModel<MDRAction> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
MDRAction |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
java.lang.String |
toString() |
MDRAction |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public MDRActionWrapper(MDRAction mdrAction)
public java.lang.Class<?> getModelClass()
getModelClass
in interface ClassedModel
public java.lang.String getModelClassName()
getModelClassName
in interface ClassedModel
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface BaseModel<MDRAction>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface BaseModel<MDRAction>
public java.lang.Object clone()
BaseModel
clone
in interface MDRActionModel
clone
in interface BaseModel<MDRAction>
clone
in interface StagedModel
clone
in class java.lang.Object
public int compareTo(MDRAction mdrAction)
compareTo
in interface MDRActionModel
compareTo
in interface java.lang.Comparable<MDRAction>
public long getActionId()
getActionId
in interface MDRActionModel
public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface MDRActionModel
getAvailableLanguageIds
in interface LocalizedModel
public java.lang.String getClassName()
getClassName
in interface MDRActionModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface MDRActionModel
getClassNameId
in interface TypedModel
public long getClassPK()
getClassPK
in interface MDRActionModel
getClassPK
in interface AttachedModel
public long getCompanyId()
getCompanyId
in interface MDRActionModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface StagedModel
public java.util.Date getCreateDate()
getCreateDate
in interface MDRActionModel
getCreateDate
in interface AuditedModel
getCreateDate
in interface StagedModel
public java.lang.String getDefaultLanguageId()
getDefaultLanguageId
in interface MDRActionModel
getDefaultLanguageId
in interface LocalizedModel
public java.lang.String getDescription()
getDescription
in interface MDRActionModel
public java.lang.String getDescription(java.util.Locale locale)
getDescription
in interface MDRActionModel
locale
- the locale of the languagepublic java.lang.String getDescription(java.util.Locale locale, boolean useDefault)
getDescription
in interface MDRActionModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested languageuseDefault
is false
and no localization exists for the requested language, an empty string will be returned.public java.lang.String getDescription(java.lang.String languageId)
getDescription
in interface MDRActionModel
languageId
- the ID of the languagepublic java.lang.String getDescription(java.lang.String languageId, boolean useDefault)
getDescription
in interface MDRActionModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic java.lang.String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId
in interface MDRActionModel
public java.lang.String getDescriptionCurrentValue()
getDescriptionCurrentValue
in interface MDRActionModel
public java.util.Map<java.util.Locale,java.lang.String> getDescriptionMap()
getDescriptionMap
in interface MDRActionModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface MDRActionModel
getExpandoBridge
in interface BaseModel<MDRAction>
getExpandoBridge
in interface ClassedModel
public long getGroupId()
getGroupId
in interface MDRActionModel
getGroupId
in interface GroupedModel
public java.util.Date getLastPublishDate()
getLastPublishDate
in interface MDRActionModel
getLastPublishDate
in interface StagedGroupedModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface MDRActionModel
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface StagedModel
public java.lang.String getName()
getName
in interface MDRActionModel
public java.lang.String getName(java.util.Locale locale)
getName
in interface MDRActionModel
locale
- the locale of the languagepublic java.lang.String getName(java.util.Locale locale, boolean useDefault)
getName
in interface MDRActionModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested languageuseDefault
is false
and no localization exists for the requested language, an empty string will be returned.public java.lang.String getName(java.lang.String languageId)
getName
in interface MDRActionModel
languageId
- the ID of the languagepublic java.lang.String getName(java.lang.String languageId, boolean useDefault)
getName
in interface MDRActionModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic java.lang.String getNameCurrentLanguageId()
getNameCurrentLanguageId
in interface MDRActionModel
public java.lang.String getNameCurrentValue()
getNameCurrentValue
in interface MDRActionModel
public java.util.Map<java.util.Locale,java.lang.String> getNameMap()
getNameMap
in interface MDRActionModel
public long getPrimaryKey()
getPrimaryKey
in interface MDRActionModel
public java.io.Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface MDRActionModel
getPrimaryKeyObj
in interface BaseModel<MDRAction>
getPrimaryKeyObj
in interface ClassedModel
public long getRuleGroupInstanceId()
getRuleGroupInstanceId
in interface MDRActionModel
public java.lang.String getType()
getType
in interface MDRActionModel
public java.lang.String getTypeSettings()
getTypeSettings
in interface MDRActionModel
public UnicodeProperties getTypeSettingsProperties()
getTypeSettingsProperties
in interface MDRAction
public long getUserId()
getUserId
in interface MDRActionModel
getUserId
in interface AuditedModel
public java.lang.String getUserName()
getUserName
in interface MDRActionModel
getUserName
in interface AuditedModel
public java.lang.String getUserUuid()
getUserUuid
in interface MDRActionModel
getUserUuid
in interface AuditedModel
public java.lang.String getUuid()
getUuid
in interface MDRActionModel
getUuid
in interface StagedModel
public int hashCode()
hashCode
in interface MDRActionModel
hashCode
in class java.lang.Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface MDRActionModel
isCachedModel
in interface BaseModel<MDRAction>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface MDRActionModel
isEscapedModel
in interface BaseModel<MDRAction>
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface MDRActionModel
isNew
in interface BaseModel<MDRAction>
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void prepareLocalizedFieldsForImport() throws LocaleException
prepareLocalizedFieldsForImport
in interface MDRActionModel
prepareLocalizedFieldsForImport
in interface LocalizedModel
LocaleException
public void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) throws LocaleException
prepareLocalizedFieldsForImport
in interface MDRActionModel
prepareLocalizedFieldsForImport
in interface LocalizedModel
LocaleException
public void setActionId(long actionId)
setActionId
in interface MDRActionModel
actionId
- the action ID of this mdr actionpublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface MDRActionModel
setCachedModel
in interface BaseModel<MDRAction>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClassName(java.lang.String className)
setClassName
in interface MDRActionModel
public void setClassNameId(long classNameId)
setClassNameId
in interface MDRActionModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this mdr actionpublic void setClassPK(long classPK)
setClassPK
in interface MDRActionModel
setClassPK
in interface AttachedModel
classPK
- the class pk of this mdr actionpublic void setCompanyId(long companyId)
setCompanyId
in interface MDRActionModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface StagedModel
companyId
- the company ID of this mdr actionpublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface MDRActionModel
setCreateDate
in interface AuditedModel
setCreateDate
in interface StagedModel
createDate
- the create date of this mdr actionpublic void setDescription(java.lang.String description)
setDescription
in interface MDRActionModel
description
- the description of this mdr actionpublic void setDescription(java.lang.String description, java.util.Locale locale)
setDescription
in interface MDRActionModel
description
- the localized description of this mdr actionlocale
- the locale of the languagepublic void setDescription(java.lang.String description, java.util.Locale locale, java.util.Locale defaultLocale)
setDescription
in interface MDRActionModel
description
- the localized description of this mdr actionlocale
- the locale of the languagedefaultLocale
- the default localepublic void setDescriptionCurrentLanguageId(java.lang.String languageId)
setDescriptionCurrentLanguageId
in interface MDRActionModel
public void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
setDescriptionMap
in interface MDRActionModel
descriptionMap
- the locales and localized descriptions of this mdr actionpublic void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.util.Locale defaultLocale)
setDescriptionMap
in interface MDRActionModel
descriptionMap
- the locales and localized descriptions of this mdr actiondefaultLocale
- the default localepublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface MDRActionModel
setExpandoBridgeAttributes
in interface BaseModel<MDRAction>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface MDRActionModel
setExpandoBridgeAttributes
in interface BaseModel<MDRAction>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface MDRActionModel
setExpandoBridgeAttributes
in interface BaseModel<MDRAction>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setGroupId(long groupId)
setGroupId
in interface MDRActionModel
setGroupId
in interface GroupedModel
groupId
- the group ID of this mdr actionpublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate
in interface MDRActionModel
setLastPublishDate
in interface StagedGroupedModel
lastPublishDate
- the last publish date of this mdr actionpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface MDRActionModel
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface StagedModel
modifiedDate
- the modified date of this mdr actionpublic void setName(java.lang.String name)
setName
in interface MDRActionModel
name
- the name of this mdr actionpublic void setName(java.lang.String name, java.util.Locale locale)
setName
in interface MDRActionModel
name
- the localized name of this mdr actionlocale
- the locale of the languagepublic void setName(java.lang.String name, java.util.Locale locale, java.util.Locale defaultLocale)
setName
in interface MDRActionModel
name
- the localized name of this mdr actionlocale
- the locale of the languagedefaultLocale
- the default localepublic void setNameCurrentLanguageId(java.lang.String languageId)
setNameCurrentLanguageId
in interface MDRActionModel
public void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
setNameMap
in interface MDRActionModel
nameMap
- the locales and localized names of this mdr actionpublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Locale defaultLocale)
setNameMap
in interface MDRActionModel
nameMap
- the locales and localized names of this mdr actiondefaultLocale
- the default localepublic void setNew(boolean n)
BaseModel
setNew
in interface MDRActionModel
setNew
in interface BaseModel<MDRAction>
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface MDRActionModel
primaryKey
- the primary key of this mdr actionpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface MDRActionModel
setPrimaryKeyObj
in interface BaseModel<MDRAction>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic void setRuleGroupInstanceId(long ruleGroupInstanceId)
setRuleGroupInstanceId
in interface MDRActionModel
ruleGroupInstanceId
- the rule group instance ID of this mdr actionpublic void setType(java.lang.String type)
setType
in interface MDRActionModel
type
- the type of this mdr actionpublic void setTypeSettings(java.lang.String typeSettings)
setTypeSettings
in interface MDRActionModel
typeSettings
- the type settings of this mdr actionpublic void setTypeSettingsProperties(UnicodeProperties typeSettingsProperties)
setTypeSettingsProperties
in interface MDRAction
public void setUserId(long userId)
setUserId
in interface MDRActionModel
setUserId
in interface AuditedModel
userId
- the user ID of this mdr actionpublic void setUserName(java.lang.String userName)
setUserName
in interface MDRActionModel
setUserName
in interface AuditedModel
userName
- the user name of this mdr actionpublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface MDRActionModel
setUserUuid
in interface AuditedModel
userUuid
- the user uuid of this mdr actionpublic void setUuid(java.lang.String uuid)
setUuid
in interface MDRActionModel
setUuid
in interface StagedModel
uuid
- the uuid of this mdr actionpublic CacheModel<MDRAction> toCacheModel()
BaseModel
toCacheModel
in interface MDRActionModel
toCacheModel
in interface BaseModel<MDRAction>
public MDRAction toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface MDRActionModel
toEscapedModel
in interface BaseModel<MDRAction>
AutoEscapeBeanHandler
public java.lang.String toString()
toString
in interface MDRActionModel
toString
in class java.lang.Object
public MDRAction toUnescapedModel()
toUnescapedModel
in interface MDRActionModel
toUnescapedModel
in interface BaseModel<MDRAction>
public java.lang.String toXmlString()
BaseModel
toXmlString
in interface MDRActionModel
toXmlString
in interface BaseModel<MDRAction>
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
public MDRAction getWrappedModel()
getWrappedModel
in interface ModelWrapper<MDRAction>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<MDRAction>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<MDRAction>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<MDRAction>