Class AddressImpl
- 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
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<Address>
public class AddressImpl extends BusinessObjectBase implements Address
BO representation of an address- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.hybris.platform.sap.sapcommonbol.businesspartner.businessobject.interf.Address
Address.Operation
-
-
Field Summary
Fields Modifier and Type Field Description protected static Log4JWrapper
LOG
static java.lang.String
X_STR
Postfix to create X fields names (indicating change flag) from standard field names-
Fields inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
backendObject, backendType, bobMessages, bobState, extensionData, genericFactory, handle, moduleConfigurationAccess, techKey
-
Fields inherited from interface de.hybris.platform.sap.sapcommonbol.businesspartner.businessobject.interf.Address
TYPE_ORGANISATION, TYPE_PERSON
-
Fields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID
-
-
Constructor Summary
Constructors Constructor Description AddressImpl()
simple constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearX()
clearX This method is to clear the values of all the "X" variablesAddressImpl
clone()
Makes a copy of the object.int
compareTo(Address o)
java.lang.String
get(java.lang.String fieldName)
Returns the attribute value for a given bean attributejava.lang.String
getAddressPartner()
java.lang.String
getAddressString()
java.lang.String
getAddressStringC()
java.lang.String
getAddrguid()
java.lang.String
getAddrnum()
java.lang.String
getCity()
boolean
getCityX()
java.lang.String
getCompanyName()
boolean
getCompanyNameX()
java.lang.String
getCountry()
boolean
getCountryX()
java.util.List<County>
getCountyList()
java.lang.String
getDistrict()
boolean
getDistrictX()
java.lang.String
getEmail()
Returns the property emailboolean
getEmailX()
java.lang.String
getFaxExtens()
boolean
getFaxExtensX()
java.lang.String
getFaxNumber()
boolean
getFaxNumberX()
java.lang.String
getFirstName()
boolean
getFirstNameX()
java.lang.String
getHouseNo()
boolean
getHouseNoX()
java.lang.String
getId()
Returns the property idjava.lang.String
getLastName()
boolean
getLastNameX()
java.lang.String
getName()
java.lang.String
getName1()
boolean
getName1X()
java.lang.String
getName2()
boolean
getName2X()
Address.Operation
getOperation()
java.lang.String
getPostlCod1()
boolean
getPostlCod1X()
java.lang.String
getPostlCod2()
boolean
getPostlCod2X()
java.lang.String
getRegion()
boolean
getRegionX()
java.lang.String
getStreet()
boolean
getStreetX()
java.lang.String
getTaxJurCode()
boolean
getTaxJurCodeX()
java.lang.String
getTel1Ext()
boolean
getTel1ExtX()
java.lang.String
getTel1Numbr()
boolean
getTel1NumbrX()
java.lang.String
getTelmob1()
java.lang.String
getTelmob1Seq()
boolean
getTelmob1X()
java.lang.String
getTitleKey()
boolean
getTitleKeyX()
java.lang.String
getType()
Returns the property typeboolean
isAddressfieldsEqualTo(Address a)
Compares all address content fieldsboolean
isChanged()
getIs_changed This method will check all the "X" fields and see if the address has changed or notvoid
setAddressPartner(java.lang.String partner)
Setter for bean attributevoid
setAddressString(java.lang.String addressString)
Sets address in short formatvoid
setAddressStringC(java.lang.String addressStringC)
Sets address string including namevoid
setAddrguid(java.lang.String addrguid)
Sets address guid (only relevant for CRM backend)void
setAddrnum(java.lang.String addrnum)
Sets address number which is available in the CRM or ERP backendvoid
setAllXFields()
All (delta) attributes indicating that bean attributes have been changed are set to truevoid
setCity(java.lang.String city)
Setter for bean attributevoid
setCompanyName(java.lang.String companyName)
Sets company namevoid
setCountry(java.lang.String country)
Setter for bean attributevoid
setCountyList(java.util.List<County> countyList)
Sets lists of available counties.void
setDistrict(java.lang.String district)
Setter for bean attributevoid
setEmail(java.lang.String email)
Set the property eMailvoid
setFaxExtens(java.lang.String faxExtens)
Setter for bean attributevoid
setFaxNumber(java.lang.String faxNumber)
Setter for bean attributevoid
setFirstName(java.lang.String firstName)
void
setHouseNo(java.lang.String houseNo)
Setter for bean attributevoid
setId(java.lang.String id)
Set the property idvoid
setLastName(java.lang.String lastName)
void
setName1(java.lang.String name1)
Setter for bean attributevoid
setName2(java.lang.String name2)
Setter for bean attributevoid
setOperation(Address.Operation operation)
Sets operation mode on current addressvoid
setPostlCod1(java.lang.String postlCod1)
Setter for bean attributevoid
setPostlCod2(java.lang.String postlCod2)
Setter for bean attributevoid
setRegion(java.lang.String region)
Setter for bean attributevoid
setStreet(java.lang.String street)
Setter for bean attributevoid
setTaxJurCode(java.lang.String taxJurCode)
Setter for bean attributevoid
setTel1Ext(java.lang.String tel1Ext)
Setter for bean attributevoid
setTel1Numbr(java.lang.String tel1Numbr)
Setter for bean attributevoid
setTelmob1(java.lang.String telmob1)
Sets first mobile numbervoid
setTelmob1Seq(java.lang.String telmob1_seq)
Sets respective bean attributevoid
setTitleKey(java.lang.String titleKey)
void
setType(java.lang.String type)
Set the property type-
Methods inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
addExtensionData, addMessage, clearMessages, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, determineBackendObject, equals, getBackendBusinessObject, getBackendBusinessObject, getBackendType, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getMessageList, getModuleConfigurationAccess, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hashCode, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setBackendObject, setBackendType, setExtensionMap, setGenericFactory, setHandle, setInvalid, setModuleConfigurationAccess, setTechKey, setValid, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.sap.core.bol.businessobject.BusinessObject
addExtensionData, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setExtensionMap, setHandle, setInvalid, setTechKey, setValid
-
Methods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageList
-
-
-
-
Field Detail
-
LOG
protected static final Log4JWrapper LOG
-
X_STR
public static final java.lang.String X_STR
Postfix to create X fields names (indicating change flag) from standard field names- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(java.lang.String id)
Set the property id
-
getId
public java.lang.String getId()
Returns the property id
-
setType
public void setType(java.lang.String type)
Set the property type
-
getType
public java.lang.String getType()
Returns the property type
-
setTitleKey
public void setTitleKey(java.lang.String titleKey)
- Specified by:
setTitleKey
in interfaceAddress
- Parameters:
titleKey
- short ID of title
-
setFirstName
public void setFirstName(java.lang.String firstName)
- Specified by:
setFirstName
in interfaceAddress
- Parameters:
firstName
- the fist name
-
setLastName
public void setLastName(java.lang.String lastName)
- Specified by:
setLastName
in interfaceAddress
- Parameters:
lastName
- the last name
-
setName1
public void setName1(java.lang.String name1)
Description copied from interface:Address
Setter for bean attribute
-
setName2
public void setName2(java.lang.String name2)
Description copied from interface:Address
Setter for bean attribute
-
setCity
public void setCity(java.lang.String city)
Description copied from interface:Address
Setter for bean attribute
-
setDistrict
public void setDistrict(java.lang.String district)
Description copied from interface:Address
Setter for bean attribute- Specified by:
setDistrict
in interfaceAddress
- Parameters:
district
- geographic entity for tax jurisdiction code determination
-
getDistrictX
public boolean getDistrictX()
- Specified by:
getDistrictX
in interfaceAddress
- Returns:
- respective bean change attribute
-
setPostlCod1
public void setPostlCod1(java.lang.String postlCod1)
Description copied from interface:Address
Setter for bean attribute- Specified by:
setPostlCod1
in interfaceAddress
- Parameters:
postlCod1
- the postal code 1
-
getPostlCod1X
public boolean getPostlCod1X()
- Specified by:
getPostlCod1X
in interfaceAddress
- Returns:
- respective bean change attribute
-
setPostlCod2
public void setPostlCod2(java.lang.String postlCod2)
Description copied from interface:Address
Setter for bean attribute- Specified by:
setPostlCod2
in interfaceAddress
- Parameters:
postlCod2
- the postal code 2
-
setStreet
public void setStreet(java.lang.String street)
Description copied from interface:Address
Setter for bean attribute
-
setHouseNo
public void setHouseNo(java.lang.String houseNo)
Description copied from interface:Address
Setter for bean attribute- Specified by:
setHouseNo
in interfaceAddress
- Parameters:
houseNo
- The house no
-
setCountry
public void setCountry(java.lang.String country)
Description copied from interface:Address
Setter for bean attribute- Specified by:
setCountry
in interfaceAddress
- Parameters:
country
- The Country
-
setRegion
public void setRegion(java.lang.String region)
Description copied from interface:Address
Setter for bean attribute
-
setTaxJurCode
public void setTaxJurCode(java.lang.String taxJurCode)
Description copied from interface:Address
Setter for bean attribute- Specified by:
setTaxJurCode
in interfaceAddress
- Parameters:
taxJurCode
- tax jurisdiction code. Can be determined from full address or from district
-
setTel1Numbr
public void setTel1Numbr(java.lang.String tel1Numbr)
Description copied from interface:Address
Setter for bean attribute- Specified by:
setTel1Numbr
in interfaceAddress
- Parameters:
tel1Numbr
- the telephone number
-
setTel1Ext
public void setTel1Ext(java.lang.String tel1Ext)
Description copied from interface:Address
Setter for bean attribute- Specified by:
setTel1Ext
in interfaceAddress
- Parameters:
tel1Ext
- the telephone extension
-
setFaxNumber
public void setFaxNumber(java.lang.String faxNumber)
Description copied from interface:Address
Setter for bean attribute- Specified by:
setFaxNumber
in interfaceAddress
- Parameters:
faxNumber
- The fax number
-
getFaxNumberX
public boolean getFaxNumberX()
- Specified by:
getFaxNumberX
in interfaceAddress
- Returns:
- respective bean change attribute
-
setFaxExtens
public void setFaxExtens(java.lang.String faxExtens)
Description copied from interface:Address
Setter for bean attribute- Specified by:
setFaxExtens
in interfaceAddress
- Parameters:
faxExtens
- the fax number extension
-
setAddressPartner
public void setAddressPartner(java.lang.String partner)
Description copied from interface:Address
Setter for bean attribute- Specified by:
setAddressPartner
in interfaceAddress
- Parameters:
partner
- business partner owning the address
-
getTitleKey
public java.lang.String getTitleKey()
- Specified by:
getTitleKey
in interfaceAddress
- Returns:
- respective bean attribute
-
getFirstName
public java.lang.String getFirstName()
- Specified by:
getFirstName
in interfaceAddress
- Returns:
- respective bean attribute
-
getLastName
public java.lang.String getLastName()
- Specified by:
getLastName
in interfaceAddress
- Returns:
- respective bean attribute
-
getName1
public java.lang.String getName1()
-
getName2
public java.lang.String getName2()
-
getCity
public java.lang.String getCity()
-
getDistrict
public java.lang.String getDistrict()
- Specified by:
getDistrict
in interfaceAddress
- Returns:
- geographic entity used for tax jurisdiction code determination
-
getPostlCod1
public java.lang.String getPostlCod1()
- Specified by:
getPostlCod1
in interfaceAddress
- Returns:
- respective bean attribute
-
getPostlCod2
public java.lang.String getPostlCod2()
- Specified by:
getPostlCod2
in interfaceAddress
- Returns:
- respective bean attribute
-
getStreet
public java.lang.String getStreet()
-
getHouseNo
public java.lang.String getHouseNo()
- Specified by:
getHouseNo
in interfaceAddress
- Returns:
- respective bean attribute
-
getCountry
public java.lang.String getCountry()
- Specified by:
getCountry
in interfaceAddress
- Returns:
- respective bean attribute
-
getRegion
public java.lang.String getRegion()
-
getTaxJurCode
public java.lang.String getTaxJurCode()
- Specified by:
getTaxJurCode
in interfaceAddress
- Returns:
- tax jurisdiction which can be derived from complete address or from country, regions city, street and district
-
getTel1Numbr
public java.lang.String getTel1Numbr()
- Specified by:
getTel1Numbr
in interfaceAddress
- Returns:
- respective bean attribute
-
getTel1Ext
public java.lang.String getTel1Ext()
- Specified by:
getTel1Ext
in interfaceAddress
- Returns:
- respective bean attribute
-
getFaxNumber
public java.lang.String getFaxNumber()
- Specified by:
getFaxNumber
in interfaceAddress
- Returns:
- respective bean attribute
-
getFaxExtens
public java.lang.String getFaxExtens()
- Specified by:
getFaxExtens
in interfaceAddress
- Returns:
- respective bean attribute
-
getAddressPartner
public java.lang.String getAddressPartner()
- Specified by:
getAddressPartner
in interfaceAddress
- Returns:
- partner who owns this address
-
setEmail
public void setEmail(java.lang.String email)
Set the property eMail
-
getEmail
public java.lang.String getEmail()
Returns the property email
-
getName
public java.lang.String getName()
-
clone
public final AddressImpl clone()
Description copied from class:BusinessObjectBase
Makes a copy of the object. The MessageList is copied.- Specified by:
clone
in interfaceAddress
- Overrides:
clone
in classBusinessObjectBase
- 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 interfaceAddress
- Parameters:
operation
- the address operation- See Also:
Address.Operation
-
getOperation
public Address.Operation getOperation()
- Specified by:
getOperation
in interfaceAddress
- Returns:
- current operation
- See Also:
Address.Operation
-
getTelmob1
public java.lang.String getTelmob1()
- Specified by:
getTelmob1
in interfaceAddress
- Returns:
- respective bean attribute
-
setTelmob1
public void setTelmob1(java.lang.String telmob1)
Description copied from interface:Address
Sets first mobile number- Specified by:
setTelmob1
in interfaceAddress
- Parameters:
telmob1
- the telmob1
-
getTelmob1X
public boolean getTelmob1X()
- Specified by:
getTelmob1X
in interfaceAddress
- Returns:
- respective bean change attribute
-
getEmailX
public boolean getEmailX()
-
getAddrnum
public java.lang.String getAddrnum()
- Specified by:
getAddrnum
in interfaceAddress
- Returns:
- address number from CRM or ERP backend if available
-
setAddrnum
public void setAddrnum(java.lang.String addrnum)
Description copied from interface:Address
Sets address number which is available in the CRM or ERP backend- Specified by:
setAddrnum
in interfaceAddress
- Parameters:
addrnum
- the address number (BAS)
-
getAddrguid
public java.lang.String getAddrguid()
- Specified by:
getAddrguid
in interfaceAddress
- Returns:
- guid of address, only available in CRM case
-
setAddrguid
public void setAddrguid(java.lang.String addrguid)
Description copied from interface:Address
Sets address guid (only relevant for CRM backend)- Specified by:
setAddrguid
in interfaceAddress
- Parameters:
addrguid
- the address guid
-
getLastNameX
public boolean getLastNameX()
- Specified by:
getLastNameX
in interfaceAddress
- Returns:
- respective bean change attribute
-
getCountyList
public java.util.List<County> getCountyList()
- Specified by:
getCountyList
in interfaceAddress
- Returns:
- list of available counties. Relevant for tax jurisdiction code determination
-
setCountyList
public void setCountyList(java.util.List<County> countyList)
Description copied from interface:Address
Sets lists of available counties. Relevant for tax jurisdiction code determination- Specified by:
setCountyList
in interfaceAddress
- Parameters:
countyList
- the county list
-
getFirstNameX
public boolean getFirstNameX()
- Specified by:
getFirstNameX
in interfaceAddress
- Returns:
- respective bean change attribute
-
getName1X
public boolean getName1X()
-
getName2X
public boolean getName2X()
-
getCityX
public boolean getCityX()
-
getCountryX
public boolean getCountryX()
- Specified by:
getCountryX
in interfaceAddress
- Returns:
- respective bean change attribute
-
getStreetX
public boolean getStreetX()
- Specified by:
getStreetX
in interfaceAddress
- Returns:
- respective bean change attribute
-
getRegionX
public boolean getRegionX()
- Specified by:
getRegionX
in interfaceAddress
- Returns:
- respective bean change attribute
-
getHouseNoX
public boolean getHouseNoX()
- Specified by:
getHouseNoX
in interfaceAddress
- Returns:
- respective bean change attribute
-
getTel1NumbrX
public boolean getTel1NumbrX()
- Specified by:
getTel1NumbrX
in interfaceAddress
- Returns:
- respective bean change attribute
-
getTel1ExtX
public boolean getTel1ExtX()
- Specified by:
getTel1ExtX
in interfaceAddress
- Returns:
- respective bean change attribute
-
getFaxExtensX
public boolean getFaxExtensX()
- Specified by:
getFaxExtensX
in interfaceAddress
- Returns:
- respective bean change attribute
-
getTaxJurCodeX
public boolean getTaxJurCodeX()
- Specified by:
getTaxJurCodeX
in interfaceAddress
- Returns:
- respective bean change attribute
-
getTitleKeyX
public boolean getTitleKeyX()
- Specified by:
getTitleKeyX
in interfaceAddress
- Returns:
- respective bean change attribute
-
setTelmob1Seq
public void setTelmob1Seq(java.lang.String telmob1_seq)
Description copied from interface:Address
Sets respective bean attribute- Specified by:
setTelmob1Seq
in interfaceAddress
- Parameters:
telmob1_seq
- the telmob1 sequence number
-
getTelmob1Seq
public java.lang.String getTelmob1Seq()
- Specified by:
getTelmob1Seq
in interfaceAddress
- Returns:
- respective bean attribute
-
getCompanyName
public java.lang.String getCompanyName()
- Specified by:
getCompanyName
in interfaceAddress
- Returns:
- respective bean attribute
-
setCompanyName
public void setCompanyName(java.lang.String companyName)
Description copied from interface:Address
Sets company name- Specified by:
setCompanyName
in interfaceAddress
- Parameters:
companyName
- the company name
-
getCompanyNameX
public boolean getCompanyNameX()
- Specified by:
getCompanyNameX
in interfaceAddress
- Returns:
- respective bean change attribute
-
getAddressString
public java.lang.String getAddressString()
- Specified by:
getAddressString
in interfaceAddress
- Returns:
- address in string format
-
setAddressString
public void setAddressString(java.lang.String addressString)
Description copied from interface:Address
Sets address in short format- Specified by:
setAddressString
in interfaceAddress
- Parameters:
addressString
- the address string
-
getAddressStringC
public java.lang.String getAddressStringC()
- Specified by:
getAddressStringC
in interfaceAddress
- Returns:
- address string including name
-
setAddressStringC
public void setAddressStringC(java.lang.String addressStringC)
Description copied from interface:Address
Sets address string including name- Specified by:
setAddressStringC
in interfaceAddress
- 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
-
isChanged
public boolean isChanged()
getIs_changed This method will check all the "X" fields and see if the address has 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 interfaceAddress
-
getPostlCod2X
public boolean getPostlCod2X()
- Specified by:
getPostlCod2X
in interfaceAddress
- Returns:
- respective bean change attribute
-
get
public java.lang.String get(java.lang.String fieldName)
Description copied from interface:Address
Returns the attribute value for a given bean attribute
-
isAddressfieldsEqualTo
public boolean isAddressfieldsEqualTo(Address a)
Description copied from interface:Address
Compares all address content fields- Specified by:
isAddressfieldsEqualTo
in interfaceAddress
- Parameters:
a
- the address to be compared- Returns:
- true, if all address content fields are equal
-
-