Class CountryWrapper

Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Country>
com.liferay.portal.kernel.model.CountryWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<Country>, CTModel<Country>, ClassedModel, Country, CountryModel, ModelWrapper<Country>, MVCCModel, PersistedModel, ShardedModel, StagedAuditedModel, StagedModel, Serializable, Cloneable, Comparable<Country>

public class CountryWrapper extends BaseModelWrapper<Country> implements Country, ModelWrapper<Country>

This class is a wrapper for Country.

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • CountryWrapper

      public CountryWrapper(Country country)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface BaseModel<Country>
    • setModelAttributes

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

      public Country cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface BaseModel<Country>
      Specified by:
      cloneWithOriginalValues in interface CountryModel
    • getA2

      public String getA2()
      Returns the a2 of this country.
      Specified by:
      getA2 in interface CountryModel
      Returns:
      the a2 of this country
    • getA3

      public String getA3()
      Returns the a3 of this country.
      Specified by:
      getA3 in interface CountryModel
      Returns:
      the a3 of this country
    • getActive

      public boolean getActive()
      Returns the active of this country.
      Specified by:
      getActive in interface CountryModel
      Returns:
      the active of this country
    • getAvailableLanguageIds

      public String[] getAvailableLanguageIds()
      Specified by:
      getAvailableLanguageIds in interface CountryModel
    • getBillingAllowed

      public boolean getBillingAllowed()
      Returns the billing allowed of this country.
      Specified by:
      getBillingAllowed in interface CountryModel
      Returns:
      the billing allowed of this country
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this country.
      Specified by:
      getCompanyId in interface AuditedModel
      Specified by:
      getCompanyId in interface CountryModel
      Specified by:
      getCompanyId in interface ShardedModel
      Specified by:
      getCompanyId in interface StagedModel
      Returns:
      the company ID of this country
    • getCountryId

      public long getCountryId()
      Returns the country ID of this country.
      Specified by:
      getCountryId in interface CountryModel
      Returns:
      the country ID of this country
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this country.
      Specified by:
      getCreateDate in interface AuditedModel
      Specified by:
      getCreateDate in interface CountryModel
      Specified by:
      getCreateDate in interface StagedModel
      Returns:
      the create date of this country
    • getCtCollectionId

      public long getCtCollectionId()
      Returns the ct collection ID of this country.
      Specified by:
      getCtCollectionId in interface CountryModel
      Specified by:
      getCtCollectionId in interface CTModel<Country>
      Returns:
      the ct collection ID of this country
    • getDefaultLanguageId

      public String getDefaultLanguageId()
      Returns the default language ID of this country.
      Specified by:
      getDefaultLanguageId in interface CountryModel
      Returns:
      the default language ID of this country
    • getGroupFilterEnabled

      public boolean getGroupFilterEnabled()
      Returns the group filter enabled of this country.
      Specified by:
      getGroupFilterEnabled in interface CountryModel
      Returns:
      the group filter enabled of this country
    • getIdd

      public String getIdd()
      Returns the idd of this country.
      Specified by:
      getIdd in interface CountryModel
      Returns:
      the idd of this country
    • getLanguageIdToTitleMap

      public Map<String,String> getLanguageIdToTitleMap()
      Specified by:
      getLanguageIdToTitleMap in interface CountryModel
    • getLastPublishDate

      public Date getLastPublishDate()
      Returns the last publish date of this country.
      Specified by:
      getLastPublishDate in interface CountryModel
      Returns:
      the last publish date of this country
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this country.
      Specified by:
      getModifiedDate in interface AuditedModel
      Specified by:
      getModifiedDate in interface CountryModel
      Specified by:
      getModifiedDate in interface StagedModel
      Returns:
      the modified date of this country
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this country.
      Specified by:
      getMvccVersion in interface CountryModel
      Specified by:
      getMvccVersion in interface MVCCModel
      Returns:
      the mvcc version of this country
    • getName

      public String getName()
      Returns the name of this country.
      Specified by:
      getName in interface CountryModel
      Returns:
      the name of this country
    • getName

      public String getName(Locale locale)
      Specified by:
      getName in interface Country
    • getNameCurrentLanguageId

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

      public String getNameCurrentValue()
      Specified by:
      getNameCurrentValue in interface Country
    • getNumber

      public String getNumber()
      Returns the number of this country.
      Specified by:
      getNumber in interface CountryModel
      Returns:
      the number of this country
    • getPosition

      public double getPosition()
      Returns the position of this country.
      Specified by:
      getPosition in interface CountryModel
      Returns:
      the position of this country
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this country.
      Specified by:
      getPrimaryKey in interface CountryModel
      Specified by:
      getPrimaryKey in interface CTModel<Country>
      Returns:
      the primary key of this country
    • getShippingAllowed

      public boolean getShippingAllowed()
      Returns the shipping allowed of this country.
      Specified by:
      getShippingAllowed in interface CountryModel
      Returns:
      the shipping allowed of this country
    • getSubjectToVAT

      public boolean getSubjectToVAT()
      Returns the subject to vat of this country.
      Specified by:
      getSubjectToVAT in interface CountryModel
      Returns:
      the subject to vat of this country
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface CountryModel
    • getTitle

      public String getTitle(Locale locale)
      Specified by:
      getTitle in interface Country
    • getTitle

      public String getTitle(String languageId)
      Specified by:
      getTitle in interface CountryModel
    • getTitle

      public String getTitle(String languageId, boolean useDefault)
      Specified by:
      getTitle in interface CountryModel
    • getTitleMapAsXML

      public String getTitleMapAsXML()
      Specified by:
      getTitleMapAsXML in interface CountryModel
    • getUserId

      public long getUserId()
      Returns the user ID of this country.
      Specified by:
      getUserId in interface AuditedModel
      Specified by:
      getUserId in interface CountryModel
      Returns:
      the user ID of this country
    • getUserName

      public String getUserName()
      Returns the user name of this country.
      Specified by:
      getUserName in interface AuditedModel
      Specified by:
      getUserName in interface CountryModel
      Returns:
      the user name of this country
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this country.
      Specified by:
      getUserUuid in interface AuditedModel
      Specified by:
      getUserUuid in interface CountryModel
      Returns:
      the user uuid of this country
    • getUuid

      public String getUuid()
      Returns the uuid of this country.
      Specified by:
      getUuid in interface CountryModel
      Specified by:
      getUuid in interface StagedModel
      Returns:
      the uuid of this country
    • getZipRequired

      public boolean getZipRequired()
      Returns the zip required of this country.
      Specified by:
      getZipRequired in interface CountryModel
      Returns:
      the zip required of this country
    • isActive

      public boolean isActive()
      Returns true if this country is active.
      Specified by:
      isActive in interface CountryModel
      Returns:
      true if this country is active; false otherwise
    • isBillingAllowed

      public boolean isBillingAllowed()
      Returns true if this country is billing allowed.
      Specified by:
      isBillingAllowed in interface CountryModel
      Returns:
      true if this country is billing allowed; false otherwise
    • isGroupFilterEnabled

      public boolean isGroupFilterEnabled()
      Returns true if this country is group filter enabled.
      Specified by:
      isGroupFilterEnabled in interface CountryModel
      Returns:
      true if this country is group filter enabled; false otherwise
    • isShippingAllowed

      public boolean isShippingAllowed()
      Returns true if this country is shipping allowed.
      Specified by:
      isShippingAllowed in interface CountryModel
      Returns:
      true if this country is shipping allowed; false otherwise
    • isSubjectToVAT

      public boolean isSubjectToVAT()
      Returns true if this country is subject to vat.
      Specified by:
      isSubjectToVAT in interface CountryModel
      Returns:
      true if this country is subject to vat; false otherwise
    • isZipRequired

      public boolean isZipRequired()
      Returns true if this country is zip required.
      Specified by:
      isZipRequired in interface CountryModel
      Returns:
      true if this country is zip required; false otherwise
    • persist

      public void persist()
      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
    • setA2

      public void setA2(String a2)
      Sets the a2 of this country.
      Specified by:
      setA2 in interface CountryModel
      Parameters:
      a2 - the a2 of this country
    • setA3

      public void setA3(String a3)
      Sets the a3 of this country.
      Specified by:
      setA3 in interface CountryModel
      Parameters:
      a3 - the a3 of this country
    • setActive

      public void setActive(boolean active)
      Sets whether this country is active.
      Specified by:
      setActive in interface CountryModel
      Parameters:
      active - the active of this country
    • setBillingAllowed

      public void setBillingAllowed(boolean billingAllowed)
      Sets whether this country is billing allowed.
      Specified by:
      setBillingAllowed in interface CountryModel
      Parameters:
      billingAllowed - the billing allowed of this country
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this country.
      Specified by:
      setCompanyId in interface AuditedModel
      Specified by:
      setCompanyId in interface CountryModel
      Specified by:
      setCompanyId in interface ShardedModel
      Specified by:
      setCompanyId in interface StagedModel
      Parameters:
      companyId - the company ID of this country
    • setCountryId

      public void setCountryId(long countryId)
      Sets the country ID of this country.
      Specified by:
      setCountryId in interface CountryModel
      Parameters:
      countryId - the country ID of this country
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this country.
      Specified by:
      setCreateDate in interface AuditedModel
      Specified by:
      setCreateDate in interface CountryModel
      Specified by:
      setCreateDate in interface StagedModel
      Parameters:
      createDate - the create date of this country
    • setCtCollectionId

      public void setCtCollectionId(long ctCollectionId)
      Sets the ct collection ID of this country.
      Specified by:
      setCtCollectionId in interface CountryModel
      Specified by:
      setCtCollectionId in interface CTModel<Country>
      Parameters:
      ctCollectionId - the ct collection ID of this country
    • setDefaultLanguageId

      public void setDefaultLanguageId(String defaultLanguageId)
      Sets the default language ID of this country.
      Specified by:
      setDefaultLanguageId in interface CountryModel
      Parameters:
      defaultLanguageId - the default language ID of this country
    • setGroupFilterEnabled

      public void setGroupFilterEnabled(boolean groupFilterEnabled)
      Sets whether this country is group filter enabled.
      Specified by:
      setGroupFilterEnabled in interface CountryModel
      Parameters:
      groupFilterEnabled - the group filter enabled of this country
    • setIdd

      public void setIdd(String idd)
      Sets the idd of this country.
      Specified by:
      setIdd in interface CountryModel
      Parameters:
      idd - the idd of this country
    • setLastPublishDate

      public void setLastPublishDate(Date lastPublishDate)
      Sets the last publish date of this country.
      Specified by:
      setLastPublishDate in interface CountryModel
      Parameters:
      lastPublishDate - the last publish date of this country
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this country.
      Specified by:
      setModifiedDate in interface AuditedModel
      Specified by:
      setModifiedDate in interface CountryModel
      Specified by:
      setModifiedDate in interface StagedModel
      Parameters:
      modifiedDate - the modified date of this country
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this country.
      Specified by:
      setMvccVersion in interface CountryModel
      Specified by:
      setMvccVersion in interface MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this country
    • setName

      public void setName(String name)
      Sets the name of this country.
      Specified by:
      setName in interface CountryModel
      Parameters:
      name - the name of this country
    • setNameCurrentLanguageId

      public void setNameCurrentLanguageId(String languageId)
      Specified by:
      setNameCurrentLanguageId in interface Country
    • setNumber

      public void setNumber(String number)
      Sets the number of this country.
      Specified by:
      setNumber in interface CountryModel
      Parameters:
      number - the number of this country
    • setPosition

      public void setPosition(double position)
      Sets the position of this country.
      Specified by:
      setPosition in interface CountryModel
      Parameters:
      position - the position of this country
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this country.
      Specified by:
      setPrimaryKey in interface CountryModel
      Specified by:
      setPrimaryKey in interface CTModel<Country>
      Parameters:
      primaryKey - the primary key of this country
    • setShippingAllowed

      public void setShippingAllowed(boolean shippingAllowed)
      Sets whether this country is shipping allowed.
      Specified by:
      setShippingAllowed in interface CountryModel
      Parameters:
      shippingAllowed - the shipping allowed of this country
    • setSubjectToVAT

      public void setSubjectToVAT(boolean subjectToVAT)
      Sets whether this country is subject to vat.
      Specified by:
      setSubjectToVAT in interface CountryModel
      Parameters:
      subjectToVAT - the subject to vat of this country
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this country.
      Specified by:
      setUserId in interface AuditedModel
      Specified by:
      setUserId in interface CountryModel
      Parameters:
      userId - the user ID of this country
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this country.
      Specified by:
      setUserName in interface AuditedModel
      Specified by:
      setUserName in interface CountryModel
      Parameters:
      userName - the user name of this country
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this country.
      Specified by:
      setUserUuid in interface AuditedModel
      Specified by:
      setUserUuid in interface CountryModel
      Parameters:
      userUuid - the user uuid of this country
    • setUuid

      public void setUuid(String uuid)
      Sets the uuid of this country.
      Specified by:
      setUuid in interface CountryModel
      Specified by:
      setUuid in interface StagedModel
      Parameters:
      uuid - the uuid of this country
    • setZipRequired

      public void setZipRequired(boolean zipRequired)
      Sets whether this country is zip required.
      Specified by:
      setZipRequired in interface CountryModel
      Parameters:
      zipRequired - the zip required of this country
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface CountryModel
    • getAttributeGetterFunctions

      public Map<String,Function<Country,Object>> getAttributeGetterFunctions()
      Specified by:
      getAttributeGetterFunctions in interface BaseModel<Country>
    • getAttributeSetterBiConsumers

      public Map<String,BiConsumer<Country,Object>> getAttributeSetterBiConsumers()
      Specified by:
      getAttributeSetterBiConsumers in interface BaseModel<Country>
    • getStagedModelType

      public StagedModelType getStagedModelType()
      Specified by:
      getStagedModelType in interface StagedModel
    • wrap

      protected CountryWrapper wrap(Country country)
      Specified by:
      wrap in class BaseModelWrapper<Country>