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 ([email protected])
- See Also:
- PaymentTransaction, Evidence
-
_completed
- Flag indicating if the Transaction is completed or active.
-
_endTime
- Timestamp indicating the end of Transaction.
-
_evidence
- Pointer to the Evidence object corresponding to this transaction.
-
_listOfPurses
- A list of PurseReference objects representing the purses
associated with this Transaction.
-
_startTime
- Timestamp indicating the start of Transaction.
-
_status
- Current or final status of the Transactionn.
-
_transactionID
- A unique numberic ID for this record.
-
PaymentTransactionRecord()
-
-
PaymentTransactionRecord(long, Vector)
- Create an transaction record with a given transaction_id and list
of purses.
-
endTransaction()
- Indicate end of transaction.
-
getEndTime()
- Get the end time of the Transaction (or the last update)
-
getFirstPurseRef()
- Get the first purse from our list of purses.
-
getListOfPurses()
- Get the list of purses involved in this transaction.
-
getStartTime()
- Get the start time of the Transaction.
-
getStatus()
- Get the current status of the transaction.
-
setEndTime()
- Set the end time to the current time.
-
setListOfPurses(Vector)
- Set the list of purses corresponding to this transaction.
-
setPurseName(String)
- Set the purse name corresponding to this transaction.
-
setStatus(int)
- Set the status of the transaction.
_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
_transactionID
protected long _transactionID
- A unique numberic ID for this record. Uniqueness is guaranteed
by the creator (a Purse object).
_startTime
protected Date _startTime
- Timestamp indicating the start of Transaction.
- See Also:
- Date
_endTime
protected Date _endTime
- Timestamp indicating the end of Transaction.
- See Also:
- Date
_status
protected int _status
- Current or final status of the Transactionn.
_completed
protected boolean _completed
- Flag indicating if the Transaction is completed or active.
_evidence
protected Evidence _evidence
- Pointer to the Evidence object corresponding to this transaction.
PaymentTransactionRecord
public PaymentTransactionRecord()
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
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
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.
getStartTime
public Date getStartTime()
- Get the start time of the Transaction.
- Returns:
- start time of the transaction
- See Also:
- Date
setEndTime
public synchronized void setEndTime()
- Set the end time to the current time.
- Returns:
- nothing
- See Also:
- Date
endTransaction
public synchronized void endTransaction()
- Indicate end of transaction.
getEndTime
public Date getEndTime()
- Get the end time of the Transaction (or the last update)
- Returns:
- end time of the transaction
setStatus
public synchronized void setStatus(int status)
- Set the status of the transaction.
- Parameters:
- status - new status value
- Returns:
- none
getStatus
public int getStatus()
- Get the current status of the transaction.
- Returns:
- status value
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.
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