All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.txlayer.extensions.payment.PaymentTransfer

java.lang.Object
   |
   +----semper.txlayer.transaction.Transaction
           |
           +----semper.txlayer.transfer.TransferTransaction
                   |
                   +----semper.txlayer.extensions.payment.PaymentTransfer

public class PaymentTransfer
extends TransferTransaction
Transfer a payment. This class provides the services to transfer a payment. The only methods we can override from the super class are send and receive. This means that we have to do both purse selection and the actual payment within these methods.

Version:
$Revision: 1.15 $ $Date: 1998/07/15 13:12:06 $
Author:
N. Asokan ([email protected])

Constructor Index

 o PaymentTransfer()
Constructor
 o PaymentTransfer(PaymentItem)
Constructor

Method Index

 o getNRView()
 o getObject()
After the transaction was committed, this method returns the resulting = received Object.
 o getTXRecord()
Return a handle to the transaction record (maybe null if the transaction has not been completed yet)
 o receive()
Receive the payment item.
 o send()
Send the payment item.

Constructors

 o PaymentTransfer
 public PaymentTransfer()
Constructor

 o PaymentTransfer
 public PaymentTransfer(PaymentItem item)
Constructor

Parameters:
item - the payment item being transferred

Methods

 o send
 protected final void send() throws TXContextCommException
Send the payment item. This consists of two phases: TODO: we need different types of error/exceptions

Throws: TXContextCommException
When there are comm errors... .
Overrides:
send in class TransferTransaction
See Also:
selectPayingPurse, pay
 o receive
 protected final void receive() throws TXContextCommException
Receive the payment item. This consists of two phases: TODO: we need different types of error/exceptions

Throws: TXContextCommException
When there are comm errors... .
Overrides:
receive in class TransferTransaction
See Also:
selectReceivingPurse, receivePayment
 o getObject
 public Object getObject()
After the transaction was committed, this method returns the resulting = received Object.

Overrides:
getObject in class TransferTransaction
 o getTXRecord
 public PaymentTransactionRecord getTXRecord()
Return a handle to the transaction record (maybe null if the transaction has not been completed yet)

Returns:
a payment transaction record
 o getNRView
 public NRView getNRView()
Returns:
An NRView of ourselves. This is just the PaymentTransactionRecord. In case of failure a string "Failed transfer..." is returned.
Overrides:
getNRView in class TransferTransaction

All Packages  Class Hierarchy  This Package  Previous  Next  Index