com.retek.component.customerorder.batch
Class BaseCustomerOrderBatchSubprocess

java.lang.Object
  extended bycom.retek.component.customerorder.batch.BaseCustomerOrderBatchSubprocess
All Implemented Interfaces:
CustomerOrderBatchSubprocess
Direct Known Subclasses:
BaseCreditCardReauthorizeSubprocess, CreditCardAuthorizeWaitingAuthSubprocess, CreditCardExpireAuthorizationsSubprocess

public abstract class BaseCustomerOrderBatchSubprocess
extends java.lang.Object
implements CustomerOrderBatchSubprocess


Constructor Summary
protected BaseCustomerOrderBatchSubprocess(RcomAbstractBatchProgram parentBatch, DistributedContext batchContext)
           
 
Method Summary
protected abstract  OrderSearchCriteria createOrderSearchCriteria()
           
protected abstract  boolean doProcessOrder(CustomerOrder order)
           
protected  void doSubprocess(java.util.Map args)
           
protected  void doWorkOnOrders(java.util.Set orderRefs, java.lang.String userId, int workUnitNumber)
           
 void executeSubprocess(java.util.Map args)
          Execute the batch subprocess.
protected  RcomAbstractBatchProgram getBatch()
           
protected  DistributedContext getBatchContext()
           
 BatchResult getBatchResult()
          Return the batch result (success, partial failure, complete failure) for the batch subprocess.
protected  User getBatchUser(DistributedContext context, java.lang.String userId)
           
protected  CustomerOrderStateModel getCustomerOrderStateModel()
           
protected abstract  RetekLogger getLogger()
           
 java.lang.String getSubprocessName()
          Return the subprocess name for logging information.
protected  int getWorkUnitSize(java.util.Map args)
           
protected  void promoteToCompleteFailure()
           
protected  void promoteToPartialFailure()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseCustomerOrderBatchSubprocess

protected BaseCustomerOrderBatchSubprocess(RcomAbstractBatchProgram parentBatch,
                                           DistributedContext batchContext)
Method Detail

getSubprocessName

public final java.lang.String getSubprocessName()
Description copied from interface: CustomerOrderBatchSubprocess
Return the subprocess name for logging information.

Specified by:
getSubprocessName in interface CustomerOrderBatchSubprocess
Returns:
String subprocess name

executeSubprocess

public final void executeSubprocess(java.util.Map args)
Description copied from interface: CustomerOrderBatchSubprocess
Execute the batch subprocess.

Specified by:
executeSubprocess in interface CustomerOrderBatchSubprocess
Parameters:
args -

getBatchResult

public final BatchResult getBatchResult()
Description copied from interface: CustomerOrderBatchSubprocess
Return the batch result (success, partial failure, complete failure) for the batch subprocess.

Specified by:
getBatchResult in interface CustomerOrderBatchSubprocess
Returns:
BatchResult subprocess batch result

doSubprocess

protected void doSubprocess(java.util.Map args)
                     throws SystemException
Throws:
SystemException

doWorkOnOrders

protected final void doWorkOnOrders(java.util.Set orderRefs,
                                    java.lang.String userId,
                                    int workUnitNumber)
                             throws SystemException
Throws:
SystemException

getBatch

protected final RcomAbstractBatchProgram getBatch()

getBatchContext

protected final DistributedContext getBatchContext()

promoteToPartialFailure

protected final void promoteToPartialFailure()

promoteToCompleteFailure

protected final void promoteToCompleteFailure()

getBatchUser

protected final User getBatchUser(DistributedContext context,
                                  java.lang.String userId)
                           throws SystemException
Throws:
SystemException

getWorkUnitSize

protected final int getWorkUnitSize(java.util.Map args)

getCustomerOrderStateModel

protected final CustomerOrderStateModel getCustomerOrderStateModel()

createOrderSearchCriteria

protected abstract OrderSearchCriteria createOrderSearchCriteria()
                                                          throws SystemException
Throws:
SystemException

doProcessOrder

protected abstract boolean doProcessOrder(CustomerOrder order)
                                   throws SystemException
Throws:
SystemException

getLogger

protected abstract RetekLogger getLogger()


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