com.retek.component.customer.integration.impl
Class CustomerIntegrationCustomerImportResultImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.SecondClassObjectImpl
          extended bycom.retek.component.customer.integration.impl.CustomerIntegrationCustomerImportResultImpl
All Implemented Interfaces:
BusinessObject, CustomerIntegrationCustomerImportResult, SecondClassObject

public class CustomerIntegrationCustomerImportResultImpl
extends SecondClassObjectImpl
implements CustomerIntegrationCustomerImportResult

Class which encapsulates common data and behavior for customer integration import result object.


Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Fields inherited from interface com.retek.component.customer.integration.CustomerIntegrationCustomerImportResult
CONCURRENCY_CONFLICT, DUPLICATE_REQUEST, FAILURE, SUCCESSFUL_IMPORT
 
Constructor Summary
CustomerIntegrationCustomerImportResultImpl(DistributedContext context, CustomerIntegrationCustomerImportResultDto dto)
           
CustomerIntegrationCustomerImportResultImpl(DistributedContext context, int status, java.lang.String requestId)
           
 
Method Summary
 CustomerIntegrationCustomerImportResultDto getDto()
           
 java.lang.Exception getException()
          Return the exception for the import result, null if result is not a failure.
 java.lang.String getRequestId()
          Return the import request identifier.
 int getStatus()
          Return the import result status code.
 boolean isConcurrencyConflict()
          Return a boolean if the result was a concurrency conflict (RCOM customer was updated more recently than import request).
 boolean isDuplicateImport()
          Return a boolean if the result was a duplicate request.
 boolean isFailure()
          Return a boolean if the result was failure.
 boolean isSuccessfulImport()
          Return a boolean if the result was successful.
 void setException(java.lang.Exception e)
           
 
Methods inherited from class com.retek.commons.component.impl.SecondClassObjectImpl
equals, getGenericDto, hashCode, setGenericDto, 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.BusinessObject
getBusinessInterface
 

Constructor Detail

CustomerIntegrationCustomerImportResultImpl

public CustomerIntegrationCustomerImportResultImpl(DistributedContext context,
                                                   CustomerIntegrationCustomerImportResultDto dto)

CustomerIntegrationCustomerImportResultImpl

public CustomerIntegrationCustomerImportResultImpl(DistributedContext context,
                                                   int status,
                                                   java.lang.String requestId)
Method Detail

getDto

public CustomerIntegrationCustomerImportResultDto getDto()

getRequestId

public java.lang.String getRequestId()
Description copied from interface: CustomerIntegrationCustomerImportResult
Return the import request identifier.

Specified by:
getRequestId in interface CustomerIntegrationCustomerImportResult

getStatus

public int getStatus()
Description copied from interface: CustomerIntegrationCustomerImportResult
Return the import result status code.

Specified by:
getStatus in interface CustomerIntegrationCustomerImportResult

isSuccessfulImport

public boolean isSuccessfulImport()
Description copied from interface: CustomerIntegrationCustomerImportResult
Return a boolean if the result was successful.

Specified by:
isSuccessfulImport in interface CustomerIntegrationCustomerImportResult
Returns:
true if import was successful

isDuplicateImport

public boolean isDuplicateImport()
Description copied from interface: CustomerIntegrationCustomerImportResult
Return a boolean if the result was a duplicate request.

Specified by:
isDuplicateImport in interface CustomerIntegrationCustomerImportResult
Returns:
true if import was already processed

isConcurrencyConflict

public boolean isConcurrencyConflict()
Description copied from interface: CustomerIntegrationCustomerImportResult
Return a boolean if the result was a concurrency conflict (RCOM customer was updated more recently than import request).

Specified by:
isConcurrencyConflict in interface CustomerIntegrationCustomerImportResult
Returns:
true if result was concurrency conflict

isFailure

public boolean isFailure()
Description copied from interface: CustomerIntegrationCustomerImportResult
Return a boolean if the result was failure.

Specified by:
isFailure in interface CustomerIntegrationCustomerImportResult
Returns:
true if import was failure

getException

public java.lang.Exception getException()
Description copied from interface: CustomerIntegrationCustomerImportResult
Return the exception for the import result, null if result is not a failure.

Specified by:
getException in interface CustomerIntegrationCustomerImportResult
Returns:
Exception failure exception

setException

public void setException(java.lang.Exception e)


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