Class CommerceTaxMethodWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceTaxMethod>
com.liferay.commerce.tax.model.CommerceTaxMethodWrapper
All Implemented Interfaces:
CommerceTaxMethod, CommerceTaxMethodModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<CommerceTaxMethod>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<CommerceTaxMethod>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, Serializable, Cloneable, Comparable<CommerceTaxMethod>

public class CommerceTaxMethodWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceTaxMethod> implements CommerceTaxMethod, com.liferay.portal.kernel.model.ModelWrapper<CommerceTaxMethod>

This class is a wrapper for CommerceTaxMethod.

See Also:
Generated:
  • Constructor Details

    • CommerceTaxMethodWrapper

      public CommerceTaxMethodWrapper(CommerceTaxMethod commerceTaxMethod)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceTaxMethod>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceTaxMethod>
    • cloneWithOriginalValues

      public CommerceTaxMethod cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CommerceTaxMethod>
      Specified by:
      cloneWithOriginalValues in interface CommerceTaxMethodModel
    • getActive

      public boolean getActive()
      Returns the active of this commerce tax method.
      Specified by:
      getActive in interface CommerceTaxMethodModel
      Returns:
      the active of this commerce tax method
    • getAvailableLanguageIds

      public String[] getAvailableLanguageIds()
      Specified by:
      getAvailableLanguageIds in interface CommerceTaxMethodModel
      Specified by:
      getAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModel
    • getCommerceTaxMethodId

      public long getCommerceTaxMethodId()
      Returns the commerce tax method ID of this commerce tax method.
      Specified by:
      getCommerceTaxMethodId in interface CommerceTaxMethodModel
      Returns:
      the commerce tax method ID of this commerce tax method
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this commerce tax method.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface CommerceTaxMethodModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Returns:
      the company ID of this commerce tax method
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this commerce tax method.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface CommerceTaxMethodModel
      Returns:
      the create date of this commerce tax method
    • getDefaultLanguageId

      public String getDefaultLanguageId()
      Specified by:
      getDefaultLanguageId in interface CommerceTaxMethodModel
      Specified by:
      getDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModel
    • getDescription

      public String getDescription()
      Returns the description of this commerce tax method.
      Specified by:
      getDescription in interface CommerceTaxMethodModel
      Returns:
      the description of this commerce tax method
    • getDescription

      public String getDescription(Locale locale)
      Returns the localized description of this commerce tax method in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface CommerceTaxMethodModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized description of this commerce tax method
    • getDescription

      public String getDescription(Locale locale, boolean useDefault)
      Returns the localized description of this commerce tax method in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface CommerceTaxMethodModel
      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 commerce tax method. 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 commerce tax method in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface CommerceTaxMethodModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized description of this commerce tax method
    • getDescription

      public String getDescription(String languageId, boolean useDefault)
      Returns the localized description of this commerce tax method in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface CommerceTaxMethodModel
      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 commerce tax method
    • getDescriptionCurrentLanguageId

      public String getDescriptionCurrentLanguageId()
      Specified by:
      getDescriptionCurrentLanguageId in interface CommerceTaxMethodModel
    • getDescriptionCurrentValue

      public String getDescriptionCurrentValue()
      Specified by:
      getDescriptionCurrentValue in interface CommerceTaxMethodModel
    • getDescriptionMap

      public Map<Locale,String> getDescriptionMap()
      Returns a map of the locales and localized descriptions of this commerce tax method.
      Specified by:
      getDescriptionMap in interface CommerceTaxMethodModel
      Returns:
      the locales and localized descriptions of this commerce tax method
    • getEngineKey

      public String getEngineKey()
      Returns the engine key of this commerce tax method.
      Specified by:
      getEngineKey in interface CommerceTaxMethodModel
      Returns:
      the engine key of this commerce tax method
    • getGroupId

      public long getGroupId()
      Returns the group ID of this commerce tax method.
      Specified by:
      getGroupId in interface CommerceTaxMethodModel
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Returns:
      the group ID of this commerce tax method
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this commerce tax method.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface CommerceTaxMethodModel
      Returns:
      the modified date of this commerce tax method
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this commerce tax method.
      Specified by:
      getMvccVersion in interface CommerceTaxMethodModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this commerce tax method
    • getName

      public String getName()
      Returns the name of this commerce tax method.
      Specified by:
      getName in interface CommerceTaxMethodModel
      Returns:
      the name of this commerce tax method
    • getName

      public String getName(Locale locale)
      Returns the localized name of this commerce tax method in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CommerceTaxMethodModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized name of this commerce tax method
    • getName

      public String getName(Locale locale, boolean useDefault)
      Returns the localized name of this commerce tax method in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CommerceTaxMethodModel
      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 commerce tax method. 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 commerce tax method in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CommerceTaxMethodModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized name of this commerce tax method
    • getName

      public String getName(String languageId, boolean useDefault)
      Returns the localized name of this commerce tax method in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CommerceTaxMethodModel
      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 commerce tax method
    • getNameCurrentLanguageId

      public String getNameCurrentLanguageId()
      Specified by:
      getNameCurrentLanguageId in interface CommerceTaxMethodModel
    • getNameCurrentValue

      public String getNameCurrentValue()
      Specified by:
      getNameCurrentValue in interface CommerceTaxMethodModel
    • getNameMap

      public Map<Locale,String> getNameMap()
      Returns a map of the locales and localized names of this commerce tax method.
      Specified by:
      getNameMap in interface CommerceTaxMethodModel
      Returns:
      the locales and localized names of this commerce tax method
    • getPercentage

      public boolean getPercentage()
      Returns the percentage of this commerce tax method.
      Specified by:
      getPercentage in interface CommerceTaxMethodModel
      Returns:
      the percentage of this commerce tax method
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this commerce tax method.
      Specified by:
      getPrimaryKey in interface CommerceTaxMethodModel
      Returns:
      the primary key of this commerce tax method
    • getTypeSettings

      public String getTypeSettings()
      Returns the type settings of this commerce tax method.
      Specified by:
      getTypeSettings in interface CommerceTaxMethodModel
      Returns:
      the type settings of this commerce tax method
    • getTypeSettingsUnicodeProperties

      public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsUnicodeProperties()
      Specified by:
      getTypeSettingsUnicodeProperties in interface CommerceTaxMethod
    • getUserId

      public long getUserId()
      Returns the user ID of this commerce tax method.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface CommerceTaxMethodModel
      Returns:
      the user ID of this commerce tax method
    • getUserName

      public String getUserName()
      Returns the user name of this commerce tax method.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface CommerceTaxMethodModel
      Returns:
      the user name of this commerce tax method
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this commerce tax method.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface CommerceTaxMethodModel
      Returns:
      the user uuid of this commerce tax method
    • isActive

      public boolean isActive()
      Returns true if this commerce tax method is active.
      Specified by:
      isActive in interface CommerceTaxMethodModel
      Returns:
      true if this commerce tax method is active; false otherwise
    • isPercentage

      public boolean isPercentage()
      Returns true if this commerce tax method is percentage.
      Specified by:
      isPercentage in interface CommerceTaxMethodModel
      Returns:
      true if this commerce tax method is percentage; false otherwise
    • persist

      public void persist()
      Specified by:
      persist in interface com.liferay.portal.kernel.model.PersistedModel
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface CommerceTaxMethodModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface CommerceTaxMethodModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setActive

      public void setActive(boolean active)
      Sets whether this commerce tax method is active.
      Specified by:
      setActive in interface CommerceTaxMethodModel
      Parameters:
      active - the active of this commerce tax method
    • setCommerceTaxMethodId

      public void setCommerceTaxMethodId(long commerceTaxMethodId)
      Sets the commerce tax method ID of this commerce tax method.
      Specified by:
      setCommerceTaxMethodId in interface CommerceTaxMethodModel
      Parameters:
      commerceTaxMethodId - the commerce tax method ID of this commerce tax method
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this commerce tax method.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface CommerceTaxMethodModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Parameters:
      companyId - the company ID of this commerce tax method
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this commerce tax method.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface CommerceTaxMethodModel
      Parameters:
      createDate - the create date of this commerce tax method
    • setDescription

      public void setDescription(String description)
      Sets the description of this commerce tax method.
      Specified by:
      setDescription in interface CommerceTaxMethodModel
      Parameters:
      description - the description of this commerce tax method
    • setDescription

      public void setDescription(String description, Locale locale)
      Sets the localized description of this commerce tax method in the language.
      Specified by:
      setDescription in interface CommerceTaxMethodModel
      Parameters:
      description - the localized description of this commerce tax method
      locale - the locale of the language
    • setDescription

      public void setDescription(String description, Locale locale, Locale defaultLocale)
      Sets the localized description of this commerce tax method in the language, and sets the default locale.
      Specified by:
      setDescription in interface CommerceTaxMethodModel
      Parameters:
      description - the localized description of this commerce tax method
      locale - the locale of the language
      defaultLocale - the default locale
    • setDescriptionCurrentLanguageId

      public void setDescriptionCurrentLanguageId(String languageId)
      Specified by:
      setDescriptionCurrentLanguageId in interface CommerceTaxMethodModel
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap)
      Sets the localized descriptions of this commerce tax method from the map of locales and localized descriptions.
      Specified by:
      setDescriptionMap in interface CommerceTaxMethodModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this commerce tax method
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
      Sets the localized descriptions of this commerce tax method from the map of locales and localized descriptions, and sets the default locale.
      Specified by:
      setDescriptionMap in interface CommerceTaxMethodModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this commerce tax method
      defaultLocale - the default locale
    • setEngineKey

      public void setEngineKey(String engineKey)
      Sets the engine key of this commerce tax method.
      Specified by:
      setEngineKey in interface CommerceTaxMethodModel
      Parameters:
      engineKey - the engine key of this commerce tax method
    • setGroupId

      public void setGroupId(long groupId)
      Sets the group ID of this commerce tax method.
      Specified by:
      setGroupId in interface CommerceTaxMethodModel
      Specified by:
      setGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Parameters:
      groupId - the group ID of this commerce tax method
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this commerce tax method.
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setModifiedDate in interface CommerceTaxMethodModel
      Parameters:
      modifiedDate - the modified date of this commerce tax method
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this commerce tax method.
      Specified by:
      setMvccVersion in interface CommerceTaxMethodModel
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this commerce tax method
    • setName

      public void setName(String name)
      Sets the name of this commerce tax method.
      Specified by:
      setName in interface CommerceTaxMethodModel
      Parameters:
      name - the name of this commerce tax method
    • setName

      public void setName(String name, Locale locale)
      Sets the localized name of this commerce tax method in the language.
      Specified by:
      setName in interface CommerceTaxMethodModel
      Parameters:
      name - the localized name of this commerce tax method
      locale - the locale of the language
    • setName

      public void setName(String name, Locale locale, Locale defaultLocale)
      Sets the localized name of this commerce tax method in the language, and sets the default locale.
      Specified by:
      setName in interface CommerceTaxMethodModel
      Parameters:
      name - the localized name of this commerce tax method
      locale - the locale of the language
      defaultLocale - the default locale
    • setNameCurrentLanguageId

      public void setNameCurrentLanguageId(String languageId)
      Specified by:
      setNameCurrentLanguageId in interface CommerceTaxMethodModel
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap)
      Sets the localized names of this commerce tax method from the map of locales and localized names.
      Specified by:
      setNameMap in interface CommerceTaxMethodModel
      Parameters:
      nameMap - the locales and localized names of this commerce tax method
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
      Sets the localized names of this commerce tax method from the map of locales and localized names, and sets the default locale.
      Specified by:
      setNameMap in interface CommerceTaxMethodModel
      Parameters:
      nameMap - the locales and localized names of this commerce tax method
      defaultLocale - the default locale
    • setPercentage

      public void setPercentage(boolean percentage)
      Sets whether this commerce tax method is percentage.
      Specified by:
      setPercentage in interface CommerceTaxMethodModel
      Parameters:
      percentage - the percentage of this commerce tax method
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this commerce tax method.
      Specified by:
      setPrimaryKey in interface CommerceTaxMethodModel
      Parameters:
      primaryKey - the primary key of this commerce tax method
    • setTypeSettings

      public void setTypeSettings(String typeSettings)
      Sets the type settings of this commerce tax method.
      Specified by:
      setTypeSettings in interface CommerceTaxMethodModel
      Parameters:
      typeSettings - the type settings of this commerce tax method
    • setTypeSettingsUnicodeProperties

      public void setTypeSettingsUnicodeProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties)
      Specified by:
      setTypeSettingsUnicodeProperties in interface CommerceTaxMethod
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this commerce tax method.
      Specified by:
      setUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserId in interface CommerceTaxMethodModel
      Parameters:
      userId - the user ID of this commerce tax method
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this commerce tax method.
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserName in interface CommerceTaxMethodModel
      Parameters:
      userName - the user name of this commerce tax method
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this commerce tax method.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserUuid in interface CommerceTaxMethodModel
      Parameters:
      userUuid - the user uuid of this commerce tax method
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface CommerceTaxMethodModel
    • wrap

      protected CommerceTaxMethodWrapper wrap(CommerceTaxMethod commerceTaxMethod)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceTaxMethod>