|
© 2002 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.beasys.commerce.ebusiness.payment.TransactionResponse
A TransactionResponse is returned by the business methods of the CreditCardService.
It provides convenient access to the date, identifier, and status of the payment as well as a handle
to the persistent PaymentTransaction associated with the transaction identifier. Additionally,
it contains all service provider results in the form of a hash table of name value pairs.
PaymentTransaction,
com.beasys.commerce.ebusiness.payment.CreditCardService, Serialized Form| Field Summary | |
javax.ejb.Handle |
paymentTransactionHandle
Handle to the PaymentTransaction for which this response was generated. |
Price |
transactionAmount
The amount of the transaction associated with this response. |
java.sql.Date |
transactionDate
The date of the transaction associated with this response. |
java.lang.String |
transactionId
The unique identifier for the transaction associated with this response. |
int |
transactionStatus
The state of the transaction associated with this response. |
| Constructor Summary | |
TransactionResponse()
Default constructor. |
|
| Method Summary | |
java.util.Hashtable |
getAllResults()
Returns a hash table containing all service provider-specific results. |
javax.ejb.Handle |
getPaymentTransactionHandle()
Get the value of paymentTransactionHandle |
java.lang.String |
getStatusString(int i)
Converts a status code into a String representation. |
Price |
getTransactionAmount()
Get the value of transactionAmount |
java.sql.Date |
getTransactionDate()
Get the value of transactionDate |
java.lang.String |
getTransactionId()
Get the value of transactionId |
java.lang.String |
getTransactionResult(java.lang.String hashKey)
Get a value from results given the key |
int |
getTransactionStatus()
Get the value of transactionStatus |
void |
putTransactionResult(java.lang.String hashKey,
java.lang.String value)
Set a value on results |
void |
setAllResults(java.util.Hashtable newResults)
|
void |
setPaymentTransactionHandle(javax.ejb.Handle paymentTransactionHandle)
Set the value of paymentTransactionHandle |
void |
setTransactionAmount(Price transactionAmount)
Set the value of transactionAmount |
void |
setTransactionDate(java.sql.Date transactionDate)
Set the value of transactionDate |
void |
setTransactionId(java.lang.String transactionId)
Set the value of transactionId |
void |
setTransactionStatus(int transactionStatus)
Set the value of transactionStatus |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public java.sql.Date transactionDate
public java.lang.String transactionId
public int transactionStatus
public Price transactionAmount
public javax.ejb.Handle paymentTransactionHandle
PaymentTransaction for which this response was generated.| Constructor Detail |
public TransactionResponse()
| Method Detail |
public java.sql.Date getTransactionDate()
public void setTransactionDate(java.sql.Date transactionDate)
transactionDate - transactionDate to be addedpublic java.lang.String getTransactionId()
public void setTransactionId(java.lang.String transactionId)
transactionId - transactionId to be addedpublic int getTransactionStatus()
public void setTransactionStatus(int transactionStatus)
transactionStatus - transactionStatus to be addedpublic Price getTransactionAmount()
public void setTransactionAmount(Price transactionAmount)
transactionAmount - transactionAmount to be addedpublic javax.ejb.Handle getPaymentTransactionHandle()
public void setPaymentTransactionHandle(javax.ejb.Handle paymentTransactionHandle)
paymentTransactionHandle - paymentTransactionHandle to be addedpublic java.lang.String getTransactionResult(java.lang.String hashKey)
public void putTransactionResult(java.lang.String hashKey,
java.lang.String value)
hashKey - hashKey to be added to resultsvalue - value to be added to resultspublic java.util.Hashtable getAllResults()
public void setAllResults(java.util.Hashtable newResults)
public java.lang.String getStatusString(int i)
i - The status code.
|
© 2002 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||