Class semper.payment.PaymentTransactionRecord
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.payment.PaymentTransactionRecord

java.lang.Object
   |
   +----semper.payment.PaymentTransactionRecord

public class PaymentTransactionRecord
extends Object
Repository of information related to a PaymentTransaction A PaymentTransactionRecord is the record of purse transactions. It has all the legally relevant information related to the transaction (in the form of of an Evidence object) as well as simple logging information that is required in excess of what is possible via the standard SEMPER logging mechanism.
Version:
$Revision: 1.6 $ $Date: 1996/08/20 12:14:08 $
Author:
N. Asokan (aso@zurich.ibm.com)
See Also:
PaymentTransaction, Evidence

Variable Index

 o _completed
Flag indicating if the Transaction is completed or active.
 o _endTime
Timestamp indicating the end of Transaction.
 o _evidence
Pointer to the Evidence object corresponding to this transaction.
 o _listOfPurses
A list of PurseReference objects representing the purses associated with this Transaction.
 o _startTime
Timestamp indicating the start of Transaction.
 o _status
Current or final status of the Transactionn.
 o _transactionID
A unique numberic ID for this record.

Constructor Index

 o PaymentTransactionRecord()
 o PaymentTransactionRecord(long, Vector)
Create an transaction record with a given transaction_id and list of purses.

Method Index

 o endTransaction()
Indicate end of transaction.
 o getEndTime()
Get the end time of the Transaction (or the last update)
 o getFirstPurseRef()
Get the first purse from our list of purses.
 o getListOfPurses()
Get the list of purses involved in this transaction.
 o getStartTime()
Get the start time of the Transaction.
 o getStatus()
Get the current status of the transaction.
 o setEndTime()
Set the end time to the current time.
 o setListOfPurses(Vector)
Set the list of purses corresponding to this transaction.
 o setPurseName(String)
Set the purse name corresponding to this transaction.
 o setStatus(int)
Set the status of the transaction.

Variables

 o _listOfPurses
  protected Vector _listOfPurses
A list of PurseReference objects representing the purses associated with this Transaction. Typically (always?) there is exactly one purse.
See Also:
PurseReference, Vector
 o _transactionID
  protected long _transactionID
A unique numberic ID for this record. Uniqueness is guaranteed by the creator (a Purse object).
 o _startTime
  protected Date _startTime
Timestamp indicating the start of Transaction.
See Also:
Date
 o _endTime
  protected Date _endTime
Timestamp indicating the end of Transaction.
See Also:
Date
 o _status
  protected int _status
Current or final status of the Transactionn.
 o _completed
  protected boolean _completed
Flag indicating if the Transaction is completed or active.
 o _evidence
  protected Evidence _evidence
Pointer to the Evidence object corresponding to this transaction.

Constructors

 o PaymentTransactionRecord
  public PaymentTransactionRecord()
 o PaymentTransactionRecord
  public PaymentTransactionRecord(long transaction_id,
                                  Vector list_of_purses)
Create an transaction record with a given transaction_id and list of purses.
Parameters:
transaction_id - unique transaction_id (generated by the purse)
list_of_purses - a vector of PurseReference Objects the list of purses involved (usually one).
See Also:
PurseReference

Methods

 o setPurseName
  public void setPurseName(String purse_name) throws PaymentServiceException
Set the purse name corresponding to this transaction.
Parameters:
purse_name - distinguished name of purse
Returns:
nothing
Throws: PaymentServiceException
if the list of purses was already set.
See Also:
Purse
 o setListOfPurses
  public synchronized void setListOfPurses(Vector list_of_purses) throws PaymentServiceException
Set the list of purses corresponding to this transaction.
Parameters:
list_of_purses - a Vector of PurseReference objects
Returns:
nothing
Throws: PaymentServiceException
if the list of purses was already set.
 o getStartTime
  public Date getStartTime()
Get the start time of the Transaction.
Returns:
start time of the transaction
See Also:
Date
 o setEndTime
  public synchronized void setEndTime()
Set the end time to the current time.
Returns:
nothing
See Also:
Date
 o endTransaction
  public synchronized void endTransaction()
Indicate end of transaction.
 o getEndTime
  public Date getEndTime()
Get the end time of the Transaction (or the last update)
Returns:
end time of the transaction
 o setStatus
  public synchronized void setStatus(int status)
Set the status of the transaction.
Parameters:
status - new status value
Returns:
none
 o getStatus
  public int getStatus()
Get the current status of the transaction.
Returns:
status value
 o getListOfPurses
  public Vector getListOfPurses()
Get the list of purses involved in this transaction.
Returns:
a vector of PurseReference objects corresponding to the list of purses.
 o getFirstPurseRef
  public PurseReference getFirstPurseRef() throws PaymentServiceException
Get the first purse from our list of purses.
Returns:
PurseReference object corresponding to the first purse
Throws: PaymentServiceException
on all errros

All Packages  Class Hierarchy  This Package  Previous  Next  Index