java.lang.Object
de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
de.hybris.platform.sap.sapcommonbol.businesspartner.businessobject.impl.AddressImpl
All Implemented Interfaces:
BackendAware, BusinessObject, MessageListHolder, Address, Serializable, Cloneable, Comparable<Address>

public class AddressImpl extends BusinessObjectBase implements Address
BO representation of an address
See Also:
  • Field Details

    • LOG

      protected static final Log4JWrapper LOG
    • X_STR

      public static final String X_STR
      Postfix to create X fields names (indicating change flag) from standard field names
      See Also:
  • Constructor Details

    • AddressImpl

      public AddressImpl()
      simple constructor
  • Method Details

    • setId

      public void setId(String id)
      Set the property id
      Specified by:
      setId in interface Address
      Parameters:
      id - the id
    • getId

      public String getId()
      Returns the property id
      Specified by:
      getId in interface Address
      Returns:
      id
    • setType

      public void setType(String type)
      Set the property type
      Specified by:
      setType in interface Address
      Parameters:
      type - the type
    • getType

      public String getType()
      Returns the property type
      Specified by:
      getType in interface Address
      Returns:
      type
    • setTitleKey

      public void setTitleKey(String titleKey)
      Specified by:
      setTitleKey in interface Address
      Parameters:
      titleKey - short ID of title
    • setFirstName

      public void setFirstName(String firstName)
      Specified by:
      setFirstName in interface Address
      Parameters:
      firstName - the fist name
    • setLastName

      public void setLastName(String lastName)
      Specified by:
      setLastName in interface Address
      Parameters:
      lastName - the last name
    • setName1

      public void setName1(String name1)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setName1 in interface Address
      Parameters:
      name1 - the name 1
    • setName2

      public void setName2(String name2)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setName2 in interface Address
      Parameters:
      name2 - the name 2
    • setCity

      public void setCity(String city)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setCity in interface Address
      Parameters:
      city - the city
    • setDistrict

      public void setDistrict(String district)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setDistrict in interface Address
      Parameters:
      district - geographic entity for tax jurisdiction code determination
    • getDistrictX

      public boolean getDistrictX()
      Specified by:
      getDistrictX in interface Address
      Returns:
      respective bean change attribute
    • setPostlCod1

      public void setPostlCod1(String postlCod1)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setPostlCod1 in interface Address
      Parameters:
      postlCod1 - the postal code 1
    • getPostlCod1X

      public boolean getPostlCod1X()
      Specified by:
      getPostlCod1X in interface Address
      Returns:
      respective bean change attribute
    • setPostlCod2

      public void setPostlCod2(String postlCod2)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setPostlCod2 in interface Address
      Parameters:
      postlCod2 - the postal code 2
    • setStreet

      public void setStreet(String street)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setStreet in interface Address
      Parameters:
      street - The street
    • setHouseNo

      public void setHouseNo(String houseNo)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setHouseNo in interface Address
      Parameters:
      houseNo - The house no
    • setCountry

      public void setCountry(String country)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setCountry in interface Address
      Parameters:
      country - The Country
    • setRegion

      public void setRegion(String region)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setRegion in interface Address
      Parameters:
      region - The region
    • setTaxJurCode

      public void setTaxJurCode(String taxJurCode)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setTaxJurCode in interface Address
      Parameters:
      taxJurCode - tax jurisdiction code. Can be determined from full address or from district
    • setTel1Numbr

      public void setTel1Numbr(String tel1Numbr)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setTel1Numbr in interface Address
      Parameters:
      tel1Numbr - the telephone number
    • setTel1Ext

      public void setTel1Ext(String tel1Ext)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setTel1Ext in interface Address
      Parameters:
      tel1Ext - the telephone extension
    • setFaxNumber

      public void setFaxNumber(String faxNumber)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setFaxNumber in interface Address
      Parameters:
      faxNumber - The fax number
    • getFaxNumberX

      public boolean getFaxNumberX()
      Specified by:
      getFaxNumberX in interface Address
      Returns:
      respective bean change attribute
    • setFaxExtens

      public void setFaxExtens(String faxExtens)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setFaxExtens in interface Address
      Parameters:
      faxExtens - the fax number extension
    • setAddressPartner

      public void setAddressPartner(String partner)
      Description copied from interface: Address
      Setter for bean attribute
      Specified by:
      setAddressPartner in interface Address
      Parameters:
      partner - business partner owning the address
    • getTitleKey

      public String getTitleKey()
      Specified by:
      getTitleKey in interface Address
      Returns:
      respective bean attribute
    • getFirstName

      public String getFirstName()
      Specified by:
      getFirstName in interface Address
      Returns:
      respective bean attribute
    • getLastName

      public String getLastName()
      Specified by:
      getLastName in interface Address
      Returns:
      respective bean attribute
    • getName1

      public String getName1()
      Specified by:
      getName1 in interface Address
      Returns:
      respective bean attribute
    • getName2

      public String getName2()
      Specified by:
      getName2 in interface Address
      Returns:
      respective bean attribute
    • getCity

      public String getCity()
      Specified by:
      getCity in interface Address
      Returns:
      respective bean attribute
    • getDistrict

      public String getDistrict()
      Specified by:
      getDistrict in interface Address
      Returns:
      geographic entity used for tax jurisdiction code determination
    • getPostlCod1

      public String getPostlCod1()
      Specified by:
      getPostlCod1 in interface Address
      Returns:
      respective bean attribute
    • getPostlCod2

      public String getPostlCod2()
      Specified by:
      getPostlCod2 in interface Address
      Returns:
      respective bean attribute
    • getStreet

      public String getStreet()
      Specified by:
      getStreet in interface Address
      Returns:
      respective bean attribute
    • getHouseNo

      public String getHouseNo()
      Specified by:
      getHouseNo in interface Address
      Returns:
      respective bean attribute
    • getCountry

      public String getCountry()
      Specified by:
      getCountry in interface Address
      Returns:
      respective bean attribute
    • getRegion

      public String getRegion()
      Specified by:
      getRegion in interface Address
      Returns:
      respective bean attribute
    • getTaxJurCode

      public String getTaxJurCode()
      Specified by:
      getTaxJurCode in interface Address
      Returns:
      tax jurisdiction which can be derived from complete address or from country, regions city, street and district
    • getTel1Numbr

      public String getTel1Numbr()
      Specified by:
      getTel1Numbr in interface Address
      Returns:
      respective bean attribute
    • getTel1Ext

      public String getTel1Ext()
      Specified by:
      getTel1Ext in interface Address
      Returns:
      respective bean attribute
    • getFaxNumber

      public String getFaxNumber()
      Specified by:
      getFaxNumber in interface Address
      Returns:
      respective bean attribute
    • getFaxExtens

      public String getFaxExtens()
      Specified by:
      getFaxExtens in interface Address
      Returns:
      respective bean attribute
    • getAddressPartner

      public String getAddressPartner()
      Specified by:
      getAddressPartner in interface Address
      Returns:
      partner who owns this address
    • setEmail

      public void setEmail(String email)
      Set the property eMail
      Specified by:
      setEmail in interface Address
      Parameters:
      email - the email address
    • getEmail

      public String getEmail()
      Returns the property email
      Specified by:
      getEmail in interface Address
      Returns:
      email
    • getName

      public String getName()
      Specified by:
      getName in interface Address
      Returns:
      respective bean attribute
    • clone

      public final AddressImpl clone()
      Description copied from class: BusinessObjectBase
      Makes a copy of the object. The MessageList is copied.
      Specified by:
      clone in interface Address
      Overrides:
      clone in class BusinessObjectBase
      Returns:
      a copy of object
    • setOperation

      public void setOperation(Address.Operation operation)
      Description copied from interface: Address
      Sets operation mode on current address
      Specified by:
      setOperation in interface Address
      Parameters:
      operation - the address operation
      See Also:
    • getOperation

      public Address.Operation getOperation()
      Specified by:
      getOperation in interface Address
      Returns:
      current operation
      See Also:
    • getTelmob1

      public String getTelmob1()
      Specified by:
      getTelmob1 in interface Address
      Returns:
      respective bean attribute
    • setTelmob1

      public void setTelmob1(String telmob1)
      Description copied from interface: Address
      Sets first mobile number
      Specified by:
      setTelmob1 in interface Address
      Parameters:
      telmob1 - the telmob1
    • getTelmob1X

      public boolean getTelmob1X()
      Specified by:
      getTelmob1X in interface Address
      Returns:
      respective bean change attribute
    • getEmailX

      public boolean getEmailX()
      Specified by:
      getEmailX in interface Address
      Returns:
      respective bean change attribute
    • getAddrnum

      public String getAddrnum()
      Specified by:
      getAddrnum in interface Address
      Returns:
      address number from CRM or ERP backend if available
    • setAddrnum

      public void setAddrnum(String addrnum)
      Description copied from interface: Address
      Sets address number which is available in the CRM or ERP backend
      Specified by:
      setAddrnum in interface Address
      Parameters:
      addrnum - the address number (BAS)
    • getAddrguid

      public String getAddrguid()
      Specified by:
      getAddrguid in interface Address
      Returns:
      guid of address, only available in CRM case
    • setAddrguid

      public void setAddrguid(String addrguid)
      Description copied from interface: Address
      Sets address guid (only relevant for CRM backend)
      Specified by:
      setAddrguid in interface Address
      Parameters:
      addrguid - the address guid
    • getLastNameX

      public boolean getLastNameX()
      Specified by:
      getLastNameX in interface Address
      Returns:
      respective bean change attribute
    • getCountyList

      public List<County> getCountyList()
      Specified by:
      getCountyList in interface Address
      Returns:
      list of available counties. Relevant for tax jurisdiction code determination
    • setCountyList

      public void setCountyList(List<County> countyList)
      Description copied from interface: Address
      Sets lists of available counties. Relevant for tax jurisdiction code determination
      Specified by:
      setCountyList in interface Address
      Parameters:
      countyList - the county list
    • getFirstNameX

      public boolean getFirstNameX()
      Specified by:
      getFirstNameX in interface Address
      Returns:
      respective bean change attribute
    • getName1X

      public boolean getName1X()
      Specified by:
      getName1X in interface Address
      Returns:
      respective bean change attribute
    • getName2X

      public boolean getName2X()
      Specified by:
      getName2X in interface Address
      Returns:
      respective bean change attribute
    • getCityX

      public boolean getCityX()
      Specified by:
      getCityX in interface Address
      Returns:
      respective bean change attribute
    • getCountryX

      public boolean getCountryX()
      Specified by:
      getCountryX in interface Address
      Returns:
      respective bean change attribute
    • getStreetX

      public boolean getStreetX()
      Specified by:
      getStreetX in interface Address
      Returns:
      respective bean change attribute
    • getRegionX

      public boolean getRegionX()
      Specified by:
      getRegionX in interface Address
      Returns:
      respective bean change attribute
    • getHouseNoX

      public boolean getHouseNoX()
      Specified by:
      getHouseNoX in interface Address
      Returns:
      respective bean change attribute
    • getTel1NumbrX

      public boolean getTel1NumbrX()
      Specified by:
      getTel1NumbrX in interface Address
      Returns:
      respective bean change attribute
    • getTel1ExtX

      public boolean getTel1ExtX()
      Specified by:
      getTel1ExtX in interface Address
      Returns:
      respective bean change attribute
    • getFaxExtensX

      public boolean getFaxExtensX()
      Specified by:
      getFaxExtensX in interface Address
      Returns:
      respective bean change attribute
    • getTaxJurCodeX

      public boolean getTaxJurCodeX()
      Specified by:
      getTaxJurCodeX in interface Address
      Returns:
      respective bean change attribute
    • getTitleKeyX

      public boolean getTitleKeyX()
      Specified by:
      getTitleKeyX in interface Address
      Returns:
      respective bean change attribute
    • setTelmob1Seq

      public void setTelmob1Seq(String telmob1_seq)
      Description copied from interface: Address
      Sets respective bean attribute
      Specified by:
      setTelmob1Seq in interface Address
      Parameters:
      telmob1_seq - the telmob1 sequence number
    • getTelmob1Seq

      public String getTelmob1Seq()
      Specified by:
      getTelmob1Seq in interface Address
      Returns:
      respective bean attribute
    • getCompanyName

      public String getCompanyName()
      Specified by:
      getCompanyName in interface Address
      Returns:
      respective bean attribute
    • setCompanyName

      public void setCompanyName(String companyName)
      Description copied from interface: Address
      Sets company name
      Specified by:
      setCompanyName in interface Address
      Parameters:
      companyName - the company name
    • getCompanyNameX

      public boolean getCompanyNameX()
      Specified by:
      getCompanyNameX in interface Address
      Returns:
      respective bean change attribute
    • getAddressString

      public String getAddressString()
      Specified by:
      getAddressString in interface Address
      Returns:
      address in string format
    • setAddressString

      public void setAddressString(String addressString)
      Description copied from interface: Address
      Sets address in short format
      Specified by:
      setAddressString in interface Address
      Parameters:
      addressString - the address string
    • getAddressStringC

      public String getAddressStringC()
      Specified by:
      getAddressStringC in interface Address
      Returns:
      address string including name
    • setAddressStringC

      public void setAddressStringC(String addressStringC)
      Description copied from interface: Address
      Sets address string including name
      Specified by:
      setAddressStringC in interface Address
      Parameters:
      addressStringC - address in string format, including name
    • clearX

      public void clearX()
      clearX This method is to clear the values of all the "X" variables
      Specified by:
      clearX in interface Address
    • isChanged

      public boolean isChanged()
      getIs_changed This method will check all the "X" fields and see if the address has changed or not
      Specified by:
      isChanged in interface Address
      Returns:
      boolean - changed or not
    • setAllXFields

      public void setAllXFields()
      Description copied from interface: Address
      All (delta) attributes indicating that bean attributes have been changed are set to true
      Specified by:
      setAllXFields in interface Address
    • getPostlCod2X

      public boolean getPostlCod2X()
      Specified by:
      getPostlCod2X in interface Address
      Returns:
      respective bean change attribute
    • get

      public String get(String fieldName)
      Description copied from interface: Address
      Returns the attribute value for a given bean attribute
      Specified by:
      get in interface Address
      Parameters:
      fieldName - Name of the field that should be returned
      Returns:
      attribute value
    • isAddressfieldsEqualTo

      public boolean isAddressfieldsEqualTo(Address a)
      Description copied from interface: Address
      Compares all address content fields
      Specified by:
      isAddressfieldsEqualTo in interface Address
      Parameters:
      a - the address to be compared
      Returns:
      true, if all address content fields are equal
    • compareTo

      public int compareTo(Address o)
      Specified by:
      compareTo in interface Comparable<Address>