com.ibm.etill.framework.cassette
Class BatchCloseRequest
java.lang.Object
|
+--com.ibm.etill.framework.cassette.CassetteRequest
|
+--com.ibm.etill.framework.cassette.APIRequest
|
+--com.ibm.etill.framework.cassette.BatchRequest
|
+--com.ibm.etill.framework.cassette.BatchCloseRequest
- All Implemented Interfaces:
- FrameworkReturnCodes, PaymentAPIConstants, Serializable
- public class BatchCloseRequest
- extends BatchRequest
BatchCloseRequest objects hold all the information necessary for a
cassette to process a given BATCHCLOSE API command.
Since the BATCHCLOSE API command operates on a Batch,
BatchCloseRequest extends BatchRequest.
In addition to the locks obtained under the auspices of the ancestor
BatchRequest
class, the Framework also obtains the following
lock on every Order object that owns a transaction in the batch to be
closed:
Object | Lock Type | Effect |
Order
| Write
| Prevents any other activity for the given order
|
- See Also:
APIResponse
, Serialized Form
BatchCloseRequest
public BatchCloseRequest(ETillConnection connection,
Batch batch,
ParameterTable frameworkKeywords,
ParameterTable protocolData)
throws ETillAbortOperation
- Constructs a BatchCloseRequest object which references or contains all of
the specified input parameters.
The Framework invokes this constructor every time a new BATCHCLOSE command
is received from a merchant application.
- Parameters:
connection
- the ETillConnection object over which the
BATCHCLOSE command was sent from the
merchant application to Commerce Payments.batch
- the Batch object at which this request is directed.frameworkKeywords
- a ParameterTable that contains the framework command
parameters that were specified on the command
string.protocolData
- a ParameterTable that contains the protocol data
parameters that were specified on the command
string. If no such parameters were specified,
then this value will be null.- Throws:
ETillAbortOperation
- may be thrown by one of the ancestor classes'
constructors.