com.retek.component.customer.impl
Class CustomerMergeRequestImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.customer.impl.CustomerMergeRequestImpl
All Implemented Interfaces:
BusinessObject, CustomerMergeRequest, DistributedObject

public class CustomerMergeRequestImpl
extends DistributedObjectImpl
implements CustomerMergeRequest


Nested Class Summary
 
Nested classes inherited from class com.retek.commons.component.impl.DistributedObjectImpl
DistributedObjectImpl.DtoBurgular
 
Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Fields inherited from interface com.retek.component.customer.CustomerMergeRequest
DISPLAY_CODE, MERGE_CUSTOMERS, REQUEST_TYPE
 
Constructor Summary
CustomerMergeRequestImpl(DistributedContext context, DistributedReference reference)
           
CustomerMergeRequestImpl(DistributedContext context, DistributedReference reference, boolean createHollow)
           
 
Method Summary
 void addMergeCustomer(Customer mergeCustomer)
          Add a merge customer to the merge request.
 void addMergeCustomerRef(DistributedReference customerRef)
           
 Customer getActiveCustomer()
          Return the active (primary) customer for the merge request.
 RDate getCreateDate()
          Return the date the merge request was created.
 User getCreatedByUser()
          Return the user that created the merge request.
 java.lang.String getDisplayCode()
          Return the display code (external identifier) for the customer merge request.
 CustomerMergeRequestDto getDto()
           
 java.util.Set getMergeCustomers()
          Return the merge customers for the merge request.
 RDate getProcessedDate()
          Return the date the request was processed (either the date it was exported if it is an 'Export' request OR the date the merge was processed if it is an 'Import' request).
 CustomerMergeRequestType getRequestType()
          Return the type for the customer merge request.
 boolean isProcessed()
          Return boolean indicating if the request was processed (either exported or imported).
 void markProcessed()
          Mark the merge request as processed.
protected  Dto readLatest()
           
 void setActiveCustomer(Customer activeCustomer)
           
 void setActiveCustomerRef(DistributedReference activeCustomerRef)
           
 void setCreateDate(RDate createDate)
           
 void setCreatedByUser(User createdByUser)
           
 void setDisplayCode(java.lang.String displayCode)
           
 void setRequestType(CustomerMergeRequestType requestType)
           
 void submit()
          Submit the customer merge request.
 
Methods inherited from class com.retek.commons.component.impl.DistributedObjectImpl
attributesToString, 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 com.retek.commons.component.impl.BusinessObjectImpl
checkRelation, checkRelation, getBusinessInterface, getContext
 
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
 
Methods inherited from interface com.retek.commons.component.BusinessObject
getBusinessInterface
 

Constructor Detail

CustomerMergeRequestImpl

public CustomerMergeRequestImpl(DistributedContext context,
                                DistributedReference reference,
                                boolean createHollow)
                         throws SystemException

CustomerMergeRequestImpl

public CustomerMergeRequestImpl(DistributedContext context,
                                DistributedReference reference)
                         throws SystemException
Method Detail

readLatest

protected Dto readLatest()
                  throws SystemException
Overrides:
readLatest in class DistributedObjectImpl
Throws:
SystemException

getDto

public CustomerMergeRequestDto getDto()
                               throws SystemException
Throws:
SystemException

getDisplayCode

public java.lang.String getDisplayCode()
                                throws SystemException
Description copied from interface: CustomerMergeRequest
Return the display code (external identifier) for the customer merge request.

Specified by:
getDisplayCode in interface CustomerMergeRequest
Returns:
String external display code
Throws:
SystemException

setDisplayCode

public void setDisplayCode(java.lang.String displayCode)
                    throws SystemException
Throws:
SystemException

getActiveCustomer

public Customer getActiveCustomer()
                           throws SystemException
Description copied from interface: CustomerMergeRequest
Return the active (primary) customer for the merge request. The customer that will be kept in the system.

Specified by:
getActiveCustomer in interface CustomerMergeRequest
Returns:
Customer active customer
Throws:
SystemException

setActiveCustomer

public void setActiveCustomer(Customer activeCustomer)
                       throws SystemException
Throws:
SystemException

setActiveCustomerRef

public void setActiveCustomerRef(DistributedReference activeCustomerRef)
                          throws SystemException
Throws:
SystemException

getRequestType

public CustomerMergeRequestType getRequestType()
                                        throws SystemException
Description copied from interface: CustomerMergeRequest
Return the type for the customer merge request. Can be an 'Import' merge request from an external system or an 'Export' merge request.

Specified by:
getRequestType in interface CustomerMergeRequest
Returns:
CustomerMergeRequestType request type
Throws:
SystemException

setRequestType

public void setRequestType(CustomerMergeRequestType requestType)
                    throws SystemException
Throws:
SystemException

getMergeCustomers

public java.util.Set getMergeCustomers()
                                throws SystemException
Description copied from interface: CustomerMergeRequest
Return the merge customers for the merge request. The customs that will be merged into the active (primary) customer.

Specified by:
getMergeCustomers in interface CustomerMergeRequest
Returns:
Set merge customers
Throws:
SystemException

addMergeCustomer

public void addMergeCustomer(Customer mergeCustomer)
                      throws SystemException
Description copied from interface: CustomerMergeRequest
Add a merge customer to the merge request.

Specified by:
addMergeCustomer in interface CustomerMergeRequest
Parameters:
mergeCustomer - customer to be merged
Throws:
SystemException

addMergeCustomerRef

public void addMergeCustomerRef(DistributedReference customerRef)
                         throws SystemException
Throws:
SystemException

submit

public void submit()
            throws SystemException,
                   BusinessException
Description copied from interface: CustomerMergeRequest
Submit the customer merge request.

Specified by:
submit in interface CustomerMergeRequest
Throws:
SystemException
BusinessException

getProcessedDate

public RDate getProcessedDate()
                       throws SystemException
Description copied from interface: CustomerMergeRequest
Return the date the request was processed (either the date it was exported if it is an 'Export' request OR the date the merge was processed if it is an 'Import' request).

Specified by:
getProcessedDate in interface CustomerMergeRequest
Returns:
RDate processed date
Throws:
SystemException

isProcessed

public boolean isProcessed()
                    throws SystemException
Description copied from interface: CustomerMergeRequest
Return boolean indicating if the request was processed (either exported or imported).

Specified by:
isProcessed in interface CustomerMergeRequest
Returns:
boolean true if request was processed
Throws:
SystemException

markProcessed

public void markProcessed()
                   throws SystemException
Description copied from interface: CustomerMergeRequest
Mark the merge request as processed.

Specified by:
markProcessed in interface CustomerMergeRequest
Throws:
SystemException

getCreateDate

public RDate getCreateDate()
                    throws SystemException
Description copied from interface: CustomerMergeRequest
Return the date the merge request was created.

Specified by:
getCreateDate in interface CustomerMergeRequest
Returns:
RDate create date
Throws:
SystemException

setCreateDate

public void setCreateDate(RDate createDate)
                   throws SystemException
Throws:
SystemException

getCreatedByUser

public User getCreatedByUser()
                      throws SystemException
Description copied from interface: CustomerMergeRequest
Return the user that created the merge request.

Specified by:
getCreatedByUser in interface CustomerMergeRequest
Returns:
User created by user
Throws:
SystemException

setCreatedByUser

public void setCreatedByUser(User createdByUser)
                      throws SystemException
Throws:
SystemException


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28