com.retek.component.customer.impl
Class CustomerImpl
java.lang.Object
com.retek.commons.component.impl.BusinessObjectImpl
com.retek.commons.component.impl.DistributedObjectImpl
com.retek.component.customer.impl.CustomerImpl
- All Implemented Interfaces:
- BusinessObject, Customer, DistributedObject
- public class CustomerImpl
- extends DistributedObjectImpl
- implements Customer
Methods inherited from class com.retek.commons.component.impl.DistributedObjectImpl |
createEmptyDto, debugToString, discardChanges, discardChangesShallow, equals, getGenericDto, getId, getReference, getReference, getVersion, hashCode, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isHollow, isPersisted, markAllDeleted, refresh, toString, wrap, wrap, wrap, wrap |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.retek.commons.component.DistributedObject |
debugToString, discardChanges, getContext, getId, getReference, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isPersisted, refresh |
CustomerImpl
public CustomerImpl(DistributedContext context,
DistributedReference reference,
boolean createHollow)
throws SystemException
CustomerImpl
public CustomerImpl(DistributedContext context,
DistributedReference reference)
throws SystemException
getDto
public CustomerDto getDto()
throws SystemException
- Throws:
SystemException
readLatest
protected Dto readLatest()
throws SystemException
- Overrides:
readLatest
in class DistributedObjectImpl
- Throws:
SystemException
getDisplayCode
public java.lang.String getDisplayCode()
- Specified by:
getDisplayCode
in interface Customer
getSalutation
public CustomerSalutation getSalutation()
throws SystemException
- Specified by:
getSalutation
in interface Customer
- Throws:
SystemException
getFirstName
public java.lang.String getFirstName()
throws SystemException
- Specified by:
getFirstName
in interface Customer
- Throws:
SystemException
getMiddleInitial
public java.lang.String getMiddleInitial()
throws SystemException
- Specified by:
getMiddleInitial
in interface Customer
- Throws:
SystemException
getLastName
public java.lang.String getLastName()
throws SystemException
- Specified by:
getLastName
in interface Customer
- Throws:
SystemException
getFullName
public java.lang.String getFullName()
throws SystemException
- Specified by:
getFullName
in interface Customer
- Throws:
SystemException
getSuffix
public CustomerSuffix getSuffix()
throws SystemException
- Specified by:
getSuffix
in interface Customer
- Throws:
SystemException
getPrimaryDayTelephoneNumber
public CustomerTelephone getPrimaryDayTelephoneNumber()
throws SystemException
- Specified by:
getPrimaryDayTelephoneNumber
in interface Customer
- Throws:
SystemException
getPrimaryEveningTelephoneNumber
public CustomerTelephone getPrimaryEveningTelephoneNumber()
throws SystemException
- Specified by:
getPrimaryEveningTelephoneNumber
in interface Customer
- Throws:
SystemException
getPrimaryCustomerEmailAddress
public CustomerEmailAddress getPrimaryCustomerEmailAddress()
throws SystemException
- Specified by:
getPrimaryCustomerEmailAddress
in interface Customer
- Throws:
SystemException
getPrimaryShipToAddress
public CustomerAddress getPrimaryShipToAddress()
throws SystemException
- Specified by:
getPrimaryShipToAddress
in interface Customer
- Throws:
SystemException
getPrimaryBillToAddress
public CustomerAddress getPrimaryBillToAddress()
throws SystemException
- Specified by:
getPrimaryBillToAddress
in interface Customer
- Throws:
SystemException
getAllAddresses
public java.util.List getAllAddresses()
throws SystemException
- Specified by:
getAllAddresses
in interface Customer
- Throws:
SystemException
getActiveAddresses
public java.util.List getActiveAddresses()
throws SystemException
- Specified by:
getActiveAddresses
in interface Customer
- Throws:
SystemException
getActiveShipToAddresses
public java.util.List getActiveShipToAddresses()
throws SystemException
- Specified by:
getActiveShipToAddresses
in interface Customer
- Throws:
SystemException
getActiveBillToAddresses
public java.util.List getActiveBillToAddresses()
throws SystemException
- Specified by:
getActiveBillToAddresses
in interface Customer
- Throws:
SystemException
getAllEmailAddresses
public java.util.List getAllEmailAddresses()
throws SystemException
- Specified by:
getAllEmailAddresses
in interface Customer
- Throws:
SystemException
getActiveEmailAddresses
public java.util.List getActiveEmailAddresses()
throws SystemException
- Specified by:
getActiveEmailAddresses
in interface Customer
- Throws:
SystemException
getAllTelephoneNumbers
public java.util.List getAllTelephoneNumbers()
throws SystemException
- Specified by:
getAllTelephoneNumbers
in interface Customer
- Throws:
SystemException
getActiveTelephoneNumbers
public java.util.List getActiveTelephoneNumbers()
throws SystemException
- Specified by:
getActiveTelephoneNumbers
in interface Customer
- Throws:
SystemException
getAlternateHouseholdNumbers
public java.util.Set getAlternateHouseholdNumbers()
throws SystemException
- Specified by:
getAlternateHouseholdNumbers
in interface Customer
- Throws:
SystemException
getAlternateCustomerIDs
public java.util.Set getAlternateCustomerIDs()
throws SystemException
- Specified by:
getAlternateCustomerIDs
in interface Customer
- Throws:
SystemException
getPreferences
public java.util.List getPreferences()
throws SystemException
- Specified by:
getPreferences
in interface Customer
- Throws:
SystemException
getPreference
public CustomerPreference getPreference(Banner banner)
throws SystemException
- Specified by:
getPreference
in interface Customer
- Throws:
SystemException
addPreference
public void addPreference(CustomerPreference preference)
throws SystemException
- Specified by:
addPreference
in interface Customer
- Throws:
SystemException
getCreateDate
public RDate getCreateDate()
throws SystemException
- Specified by:
getCreateDate
in interface Customer
- Throws:
SystemException
getLastUpdateDate
public RDate getLastUpdateDate()
throws SystemException
- Throws:
SystemException
getLastImportDate
public RDate getLastImportDate()
throws SystemException
- Description copied from interface:
Customer
- Return the last import datetime that an import request was
processed for this customer.
- Specified by:
getLastImportDate
in interface Customer
- Returns:
- RDate last import datetime
- Throws:
SystemException
getLastImportRequestId
public java.lang.String getLastImportRequestId()
throws SystemException
- Description copied from interface:
Customer
- Return the last import request processed for this customer.
- Specified by:
getLastImportRequestId
in interface Customer
- Returns:
- String last import request identifier
- Throws:
SystemException
getCreditCards
public java.util.List getCreditCards(Banner banner)
throws SystemException,
BusinessException
- Specified by:
getCreditCards
in interface Customer
- Throws:
SystemException
BusinessException
getActiveCreditCards
public java.util.List getActiveCreditCards(Banner banner)
throws SystemException,
BusinessException
- Specified by:
getActiveCreditCards
in interface Customer
- Throws:
SystemException
BusinessException
getAllActiveCreditCards
public java.util.List getAllActiveCreditCards()
throws SystemException
- Specified by:
getAllActiveCreditCards
in interface Customer
- Throws:
SystemException
setFirstName
public void setFirstName(java.lang.String firstName)
throws SystemException
- Specified by:
setFirstName
in interface Customer
- Throws:
SystemException
setLastName
public void setLastName(java.lang.String lastName)
throws SystemException
- Specified by:
setLastName
in interface Customer
- Throws:
SystemException
setMiddleInitial
public void setMiddleInitial(java.lang.String middleInitial)
throws SystemException
- Specified by:
setMiddleInitial
in interface Customer
- Throws:
SystemException
setSalutation
public void setSalutation(CustomerSalutation newSalutation)
throws SystemException
- Specified by:
setSalutation
in interface Customer
- Throws:
SystemException
setSuffix
public void setSuffix(CustomerSuffix newSuffix)
throws SystemException
- Specified by:
setSuffix
in interface Customer
- Throws:
SystemException
applyActiveAddress
public CustomerAddress applyActiveAddress(CustomerAddress address)
throws SystemException,
BusinessException
- Description copied from interface:
Customer
- Ensures that a CustomerAddress with the same address text
as the address parameter exists in this Customer's active address list.
The correct usage is: myAddr = applyActiveAddress(myAddr);
If you forget to assign the return to your reference, then your reference (e.g. myAddr)
may not refer to an addr in the customer's list.
- Specified by:
applyActiveAddress
in interface Customer
- Returns:
- a reference to a CustomerAddress in the active address list. If the address
parameter represents a new address, it will have been added to the list and returned.
On the other hand, if an existing address in the active address list matches the parameter's
address text (i.e. has the same line1, line2, etec.), then the existing
address object is returned.
- Throws:
SystemException
BusinessException
setPrimaryBillToAddress
public void setPrimaryBillToAddress(CustomerAddress billToAddress)
throws SystemException,
BusinessException
- Specified by:
setPrimaryBillToAddress
in interface Customer
- Throws:
SystemException
BusinessException
setAddressInactive
public void setAddressInactive(CustomerAddress customerAddress)
throws SystemException,
BusinessException
- Specified by:
setAddressInactive
in interface Customer
- Throws:
SystemException
BusinessException
setPrimaryShipToAddress
public void setPrimaryShipToAddress(CustomerAddress shipToAddress)
throws SystemException,
BusinessException
- Specified by:
setPrimaryShipToAddress
in interface Customer
- Throws:
SystemException
BusinessException
applyActiveEmail
public CustomerEmailAddress applyActiveEmail(CustomerEmailAddress email)
throws InvalidCustomerEmailException,
SystemException
- Description copied from interface:
Customer
- Ensures that a CustomerEmail with the same email address text
as the email parameter exists in this Customer's active email list.
The correct usage is: myEmail = applyActiveEmail(myEmail);
If you forget to assign the return to your reference, then your reference (e.g. myEmail)
may not refer to an email in the customer's list.
- Specified by:
applyActiveEmail
in interface Customer
- Returns:
- a reference to a CustomerEmail in the active email list. If the email
parameter represents a new email, it will have been added to the list and returned.
On the other hand, if an existing email in the active email list matches the parameter's
email (i.e. has the same email string, but perhaps a different id), then the existing
email object is returned.
- Throws:
InvalidCustomerEmailException
SystemException
setPrimaryCustomerEmailAddress
public void setPrimaryCustomerEmailAddress(CustomerEmailAddress emailAddress)
throws SystemException
- Specified by:
setPrimaryCustomerEmailAddress
in interface Customer
- Throws:
SystemException
setEmailInactive
public void setEmailInactive(CustomerEmailAddress email,
boolean inactive)
throws SystemException
- Specified by:
setEmailInactive
in interface Customer
- Throws:
SystemException
setPrimaryDayTelephoneNumber
public void setPrimaryDayTelephoneNumber(CustomerTelephone telephone)
throws SystemException
- Specified by:
setPrimaryDayTelephoneNumber
in interface Customer
- Throws:
SystemException
setPrimaryEveningTelephoneNumber
public void setPrimaryEveningTelephoneNumber(CustomerTelephone telephone)
throws SystemException
- Specified by:
setPrimaryEveningTelephoneNumber
in interface Customer
- Throws:
SystemException
applyActiveTelephone
public CustomerTelephone applyActiveTelephone(CustomerTelephone telephone)
throws InvalidCustomerTelephoneException,
SystemException
- Description copied from interface:
Customer
- Ensures that a CustomerTelephone with the same number and extension
as the telephone parameter exists in this Customer's active telephone list.
The correct usage is: myTelephone = applyActiveTelephone(myTelephone);
If you forget to assign the return to your reference, then your reference (e.g. myTelephone)
may not refer to a telephone in the customer's list.
- Specified by:
applyActiveTelephone
in interface Customer
- Returns:
- a reference to a CustomerTelephone in the active telephone list. If the telephone
parameter represents a new telephone, it will have been added to the list and returned.
On the other hand, if an existing telephone in the active telephone list matches the parameter's
telephone (i.e. has the same number and extension, but perhaps a different id), then the existing
telephone object is returned.
- Throws:
InvalidCustomerTelephoneException
SystemException
setTelephoneInactive
public void setTelephoneInactive(CustomerTelephone telephone,
boolean inactive)
throws SystemException,
BusinessException
- Specified by:
setTelephoneInactive
in interface Customer
- Throws:
SystemException
BusinessException
addCreditCard
public void addCreditCard(CustomerCreditCard newCard)
throws SystemException,
BusinessException
- Specified by:
addCreditCard
in interface Customer
- Throws:
SystemException
BusinessException
submit
public void submit(User user)
throws SystemException,
BusinessException
- Specified by:
submit
in interface Customer
- Throws:
SystemException
BusinessException
merge
public void merge(java.util.Set customersToMerge)
throws BusinessException,
SystemException
- Specified by:
merge
in interface Customer
- Throws:
BusinessException
SystemException
getAcquisitionMethod
public AcquisitionMethod getAcquisitionMethod()
throws SystemException
- Specified by:
getAcquisitionMethod
in interface Customer
- Throws:
SystemException
getInitialBanner
public Banner getInitialBanner()
throws SystemException
- Specified by:
getInitialBanner
in interface Customer
- Throws:
SystemException
getInitialSourceCode
public SourceCode getInitialSourceCode()
throws SystemException
- Specified by:
getInitialSourceCode
in interface Customer
- Throws:
SystemException
setAcquisitionMethod
public void setAcquisitionMethod(AcquisitionMethod acquisitionMethod)
throws SystemException
- Specified by:
setAcquisitionMethod
in interface Customer
- Throws:
SystemException
setInitialBanner
public void setInitialBanner(Banner banner)
throws SystemException
- Specified by:
setInitialBanner
in interface Customer
- Throws:
SystemException
setInitialSourceCode
public void setInitialSourceCode(SourceCode sourceCode)
throws SystemException
- Specified by:
setInitialSourceCode
in interface Customer
- Throws:
SystemException
isModified
public boolean isModified()
throws SystemException
- Specified by:
isModified
in interface Customer
- Throws:
SystemException
setOriginalOrderDate
public void setOriginalOrderDate(RDate originalOrderDate)
throws SystemException
- Specified by:
setOriginalOrderDate
in interface Customer
- Throws:
SystemException
getOriginalOrderDate
public RDate getOriginalOrderDate()
throws SystemException
- Specified by:
getOriginalOrderDate
in interface Customer
- Throws:
SystemException
isNameChanged
public boolean isNameChanged()
throws SystemException
- Throws:
SystemException
attributesToString
public java.lang.String attributesToString()
throws SystemException
- Overrides:
attributesToString
in class DistributedObjectImpl
- Throws:
SystemException
getHouseholdNumber
public java.lang.String getHouseholdNumber()
throws SystemException
- Specified by:
getHouseholdNumber
in interface Customer
- Throws:
SystemException
getSubAccountNumber
public java.lang.String getSubAccountNumber()
throws SystemException
- Specified by:
getSubAccountNumber
in interface Customer
- Throws:
SystemException
setHouseholdNumber
public void setHouseholdNumber(java.lang.String householdNumber)
throws SystemException
- Specified by:
setHouseholdNumber
in interface Customer
- Throws:
SystemException
setSubAccountNumber
public void setSubAccountNumber(java.lang.String subAccountNumber)
throws SystemException
- Specified by:
setSubAccountNumber
in interface Customer
- Throws:
SystemException
isActive
public boolean isActive()
throws SystemException
- Specified by:
isActive
in interface Customer
- Throws:
SystemException
setActive
public void setActive(boolean isActive)
throws SystemException
- Specified by:
setActive
in interface Customer
- Throws:
SystemException
addAlternateHouseholdNumber
public void addAlternateHouseholdNumber(java.lang.String householdNumber)
throws SystemException
- Specified by:
addAlternateHouseholdNumber
in interface Customer
- Throws:
SystemException
addAlternateCustomerID
public void addAlternateCustomerID(java.lang.String customerID)
throws SystemException
- Specified by:
addAlternateCustomerID
in interface Customer
- Throws:
SystemException
getCreditPreApproval
public CustomerCreditPreApproval getCreditPreApproval(Banner banner)
throws SystemException,
BusinessException
- Specified by:
getCreditPreApproval
in interface Customer
- Throws:
SystemException
BusinessException
getCreditPreApproval
public CustomerCreditPreApproval getCreditPreApproval(Banner banner,
boolean quickCredit)
throws SystemException,
BusinessException
- Specified by:
getCreditPreApproval
in interface Customer
- Throws:
SystemException
BusinessException
getStoredValueCardCashouts
public java.util.List getStoredValueCardCashouts()
throws SystemException
- Specified by:
getStoredValueCardCashouts
in interface Customer
- Throws:
SystemException
addStoredValueCardCashout
public void addStoredValueCardCashout(StoredValueCardCashout cashout)
throws SystemException
- Specified by:
addStoredValueCardCashout
in interface Customer
- Throws:
SystemException
setStoredValueCardCashouts
public void setStoredValueCardCashouts(java.util.List cashouts)
throws SystemException
- Specified by:
setStoredValueCardCashouts
in interface Customer
- Throws:
SystemException
getCustomerInactiveReason
public CustomerInactiveReason getCustomerInactiveReason()
throws SystemException
- Specified by:
getCustomerInactiveReason
in interface Customer
- Throws:
SystemException
setCustomerInactiveReason
public void setCustomerInactiveReason(CustomerInactiveReason customerInactiveReason)
throws SystemException
- Specified by:
setCustomerInactiveReason
in interface Customer
- Throws:
SystemException
Copyright © 2004 Retek Inc. All Rights Reserved.
- Generated at Fri, 10/22/2004 07:28