Class AddressWrapper

Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Address>
com.liferay.portal.kernel.model.AddressWrapper
All Implemented Interfaces:
Address, AddressModel, AttachedModel, AuditedModel, BaseModel<Address>, CTModel<Address>, ClassedModel, ExternalReferenceCodeModel, ModelWrapper<Address>, MVCCModel, PersistedModel, ShardedModel, StagedAuditedModel, StagedModel, TypedModel, Serializable, Cloneable, Comparable<Address>

public class AddressWrapper extends BaseModelWrapper<Address> implements Address, ModelWrapper<Address>

This class is a wrapper for Address.

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

    • AddressWrapper

      public AddressWrapper(Address address)
  • Method Details

    • getModelAttributes

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

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

      public Address cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface AddressModel
      Specified by:
      cloneWithOriginalValues in interface BaseModel<Address>
    • getAddressId

      public long getAddressId()
      Returns the address ID of this address.
      Specified by:
      getAddressId in interface AddressModel
      Returns:
      the address ID of this address
    • getCity

      public String getCity()
      Returns the city of this address.
      Specified by:
      getCity in interface AddressModel
      Returns:
      the city of this address
    • getClassName

      public String getClassName()
      Returns the fully qualified class name of this address.
      Specified by:
      getClassName in interface AddressModel
      Specified by:
      getClassName in interface TypedModel
      Returns:
      the fully qualified class name of this address
    • getClassNameId

      public long getClassNameId()
      Returns the class name ID of this address.
      Specified by:
      getClassNameId in interface AddressModel
      Specified by:
      getClassNameId in interface TypedModel
      Returns:
      the class name ID of this address
    • getClassPK

      public long getClassPK()
      Returns the class pk of this address.
      Specified by:
      getClassPK in interface AddressModel
      Specified by:
      getClassPK in interface AttachedModel
      Returns:
      the class pk of this address
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this address.
      Specified by:
      getCompanyId in interface AddressModel
      Specified by:
      getCompanyId in interface AuditedModel
      Specified by:
      getCompanyId in interface ShardedModel
      Specified by:
      getCompanyId in interface StagedModel
      Returns:
      the company ID of this address
    • getCountry

      public Country getCountry()
      Specified by:
      getCountry in interface Address
    • getCountryId

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

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

      public long getCtCollectionId()
      Returns the ct collection ID of this address.
      Specified by:
      getCtCollectionId in interface AddressModel
      Specified by:
      getCtCollectionId in interface CTModel<Address>
      Returns:
      the ct collection ID of this address
    • getDescription

      public String getDescription()
      Returns the description of this address.
      Specified by:
      getDescription in interface AddressModel
      Returns:
      the description of this address
    • getExternalReferenceCode

      public String getExternalReferenceCode()
      Returns the external reference code of this address.
      Specified by:
      getExternalReferenceCode in interface AddressModel
      Specified by:
      getExternalReferenceCode in interface ExternalReferenceCodeModel
      Returns:
      the external reference code of this address
    • getLatitude

      public double getLatitude()
      Returns the latitude of this address.
      Specified by:
      getLatitude in interface AddressModel
      Returns:
      the latitude of this address
    • getListType

      public ListType getListType()
      Specified by:
      getListType in interface Address
    • getListTypeId

      public long getListTypeId()
      Returns the list type ID of this address.
      Specified by:
      getListTypeId in interface AddressModel
      Returns:
      the list type ID of this address
    • getLongitude

      public double getLongitude()
      Returns the longitude of this address.
      Specified by:
      getLongitude in interface AddressModel
      Returns:
      the longitude of this address
    • getMailing

      public boolean getMailing()
      Returns the mailing of this address.
      Specified by:
      getMailing in interface AddressModel
      Returns:
      the mailing of this address
    • getModifiedDate

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

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

      public String getName()
      Returns the name of this address.
      Specified by:
      getName in interface AddressModel
      Returns:
      the name of this address
    • getPhoneNumber

      public String getPhoneNumber()
      Specified by:
      getPhoneNumber in interface Address
    • getPrimary

      public boolean getPrimary()
      Returns the primary of this address.
      Specified by:
      getPrimary in interface AddressModel
      Returns:
      the primary of this address
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this address.
      Specified by:
      getPrimaryKey in interface AddressModel
      Specified by:
      getPrimaryKey in interface CTModel<Address>
      Returns:
      the primary key of this address
    • getRegion

      public Region getRegion()
      Specified by:
      getRegion in interface Address
    • getRegionId

      public long getRegionId()
      Returns the region ID of this address.
      Specified by:
      getRegionId in interface AddressModel
      Returns:
      the region ID of this address
    • getStreet1

      public String getStreet1()
      Returns the street1 of this address.
      Specified by:
      getStreet1 in interface AddressModel
      Returns:
      the street1 of this address
    • getStreet2

      public String getStreet2()
      Returns the street2 of this address.
      Specified by:
      getStreet2 in interface AddressModel
      Returns:
      the street2 of this address
    • getStreet3

      public String getStreet3()
      Returns the street3 of this address.
      Specified by:
      getStreet3 in interface AddressModel
      Returns:
      the street3 of this address
    • getUserId

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

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

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

      public String getUuid()
      Returns the uuid of this address.
      Specified by:
      getUuid in interface AddressModel
      Specified by:
      getUuid in interface StagedModel
      Returns:
      the uuid of this address
    • getValidationDate

      public Date getValidationDate()
      Returns the validation date of this address.
      Specified by:
      getValidationDate in interface AddressModel
      Returns:
      the validation date of this address
    • getValidationStatus

      public int getValidationStatus()
      Returns the validation status of this address.
      Specified by:
      getValidationStatus in interface AddressModel
      Returns:
      the validation status of this address
    • getZip

      public String getZip()
      Returns the zip of this address.
      Specified by:
      getZip in interface AddressModel
      Returns:
      the zip of this address
    • isMailing

      public boolean isMailing()
      Returns true if this address is mailing.
      Specified by:
      isMailing in interface AddressModel
      Returns:
      true if this address is mailing; false otherwise
    • isPrimary

      public boolean isPrimary()
      Returns true if this address is primary.
      Specified by:
      isPrimary in interface AddressModel
      Returns:
      true if this address is primary; 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
    • setAddressId

      public void setAddressId(long addressId)
      Sets the address ID of this address.
      Specified by:
      setAddressId in interface AddressModel
      Parameters:
      addressId - the address ID of this address
    • setCity

      public void setCity(String city)
      Sets the city of this address.
      Specified by:
      setCity in interface AddressModel
      Parameters:
      city - the city of this address
    • setClassName

      public void setClassName(String className)
      Specified by:
      setClassName in interface AddressModel
    • setClassNameId

      public void setClassNameId(long classNameId)
      Sets the class name ID of this address.
      Specified by:
      setClassNameId in interface AddressModel
      Specified by:
      setClassNameId in interface TypedModel
      Parameters:
      classNameId - the class name ID of this address
    • setClassPK

      public void setClassPK(long classPK)
      Sets the class pk of this address.
      Specified by:
      setClassPK in interface AddressModel
      Specified by:
      setClassPK in interface AttachedModel
      Parameters:
      classPK - the class pk of this address
    • setCompanyId

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

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

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

      public void setCtCollectionId(long ctCollectionId)
      Sets the ct collection ID of this address.
      Specified by:
      setCtCollectionId in interface AddressModel
      Specified by:
      setCtCollectionId in interface CTModel<Address>
      Parameters:
      ctCollectionId - the ct collection ID of this address
    • setDescription

      public void setDescription(String description)
      Sets the description of this address.
      Specified by:
      setDescription in interface AddressModel
      Parameters:
      description - the description of this address
    • setExternalReferenceCode

      public void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this address.
      Specified by:
      setExternalReferenceCode in interface AddressModel
      Specified by:
      setExternalReferenceCode in interface ExternalReferenceCodeModel
      Parameters:
      externalReferenceCode - the external reference code of this address
    • setLatitude

      public void setLatitude(double latitude)
      Sets the latitude of this address.
      Specified by:
      setLatitude in interface AddressModel
      Parameters:
      latitude - the latitude of this address
    • setListTypeId

      public void setListTypeId(long listTypeId)
      Sets the list type ID of this address.
      Specified by:
      setListTypeId in interface AddressModel
      Parameters:
      listTypeId - the list type ID of this address
    • setLongitude

      public void setLongitude(double longitude)
      Sets the longitude of this address.
      Specified by:
      setLongitude in interface AddressModel
      Parameters:
      longitude - the longitude of this address
    • setMailing

      public void setMailing(boolean mailing)
      Sets whether this address is mailing.
      Specified by:
      setMailing in interface AddressModel
      Parameters:
      mailing - the mailing of this address
    • setModifiedDate

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

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

      public void setName(String name)
      Sets the name of this address.
      Specified by:
      setName in interface AddressModel
      Parameters:
      name - the name of this address
    • setPrimary

      public void setPrimary(boolean primary)
      Sets whether this address is primary.
      Specified by:
      setPrimary in interface AddressModel
      Parameters:
      primary - the primary of this address
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this address.
      Specified by:
      setPrimaryKey in interface AddressModel
      Specified by:
      setPrimaryKey in interface CTModel<Address>
      Parameters:
      primaryKey - the primary key of this address
    • setRegionId

      public void setRegionId(long regionId)
      Sets the region ID of this address.
      Specified by:
      setRegionId in interface AddressModel
      Parameters:
      regionId - the region ID of this address
    • setStreet1

      public void setStreet1(String street1)
      Sets the street1 of this address.
      Specified by:
      setStreet1 in interface AddressModel
      Parameters:
      street1 - the street1 of this address
    • setStreet2

      public void setStreet2(String street2)
      Sets the street2 of this address.
      Specified by:
      setStreet2 in interface AddressModel
      Parameters:
      street2 - the street2 of this address
    • setStreet3

      public void setStreet3(String street3)
      Sets the street3 of this address.
      Specified by:
      setStreet3 in interface AddressModel
      Parameters:
      street3 - the street3 of this address
    • setUserId

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

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

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

      public void setUuid(String uuid)
      Sets the uuid of this address.
      Specified by:
      setUuid in interface AddressModel
      Specified by:
      setUuid in interface StagedModel
      Parameters:
      uuid - the uuid of this address
    • setValidationDate

      public void setValidationDate(Date validationDate)
      Sets the validation date of this address.
      Specified by:
      setValidationDate in interface AddressModel
      Parameters:
      validationDate - the validation date of this address
    • setValidationStatus

      public void setValidationStatus(int validationStatus)
      Sets the validation status of this address.
      Specified by:
      setValidationStatus in interface AddressModel
      Parameters:
      validationStatus - the validation status of this address
    • setZip

      public void setZip(String zip)
      Sets the zip of this address.
      Specified by:
      setZip in interface AddressModel
      Parameters:
      zip - the zip of this address
    • toXmlString

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

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

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

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

      protected AddressWrapper wrap(Address address)
      Specified by:
      wrap in class BaseModelWrapper<Address>