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])
-
PaymentTransfer()
- Constructor
-
PaymentTransfer(PaymentItem)
- Constructor
-
getNRView()
-
-
getObject()
- After the transaction was committed, this
method returns the resulting = received Object.
-
getTXRecord()
- Return a handle to the transaction record (maybe null if the
transaction has not been completed yet)
-
receive()
- Receive the payment item.
-
send()
- Send the payment item.
PaymentTransfer
public PaymentTransfer()
- Constructor
PaymentTransfer
public PaymentTransfer(PaymentItem item)
- Constructor
- Parameters:
- item - the payment item being transferred
send
protected final void send() throws TXContextCommException
- Send the payment item. This consists of two phases:
- Select a purse to receive the payment
- Send the actual payment itself
TODO: we need different types of error/exceptions
- Throws: TXContextCommException
- When there are comm errors... .
- Overrides:
- send in class TransferTransaction
- See Also:
- selectPayingPurse, pay
receive
protected final void receive() throws TXContextCommException
- Receive the payment item. This consists of two phases:
- Select a purse to receive the payment
- Receive the actual payment itself
TODO: we need different types of error/exceptions
- Throws: TXContextCommException
- When there are comm errors... .
- Overrides:
- receive in class TransferTransaction
- See Also:
- selectReceivingPurse, receivePayment
getObject
public Object getObject()
- After the transaction was committed, this
method returns the resulting = received Object.
- Overrides:
- getObject in class TransferTransaction
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
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