|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.beasys.commerce.foundation.EntityImpl
com.beasys.commerce.ebusiness.payment.PaymentTransactionImpl
public class PaymentTransactionImpl
This class holds data common to all the transaction types. The PaymentTransactionManager uses this class to pass along to the payment service provider - reqeusts made by the client.
Primary Key = com.beasys.commerce.ebusiness.payment.PaymentTransactionPk
PaymentTransaction
,
PaymentTransactionHome
,
PaymentTransactionValue
Field Summary | |
---|---|
String |
batchId
The batchId attribute is populated after a batch-commit request for the transaction has returned successfully. |
com.beasys.commerce.axiom.contact.CreditCard |
creditCard
Containment: By Value Multiplicity: 1:1 |
WorkflowContext |
status
Containment: By Value Multiplicity: 1:1 WORKFLOW |
Workflow |
statusWorkflow
|
Price |
transactionAmount
In case of partial transcation(ie. |
Date |
transactionDate
The date of the transaction. |
SmartCollectionReference |
transactionEntry
Containment: By Value Multiplicity: 0:N Interface: java.util.Collection |
String |
transactionId
The order of which this transaction is a part. |
Fields inherited from class com.beasys.commerce.foundation.EntityImpl |
---|
__classIdentifier, __containingEntity, __mapKey, __sequenceNumber, _ctx, _environmentNamingContext, _environmentPropertyCache, _isDirty, _smartBMP |
Constructor Summary | |
---|---|
PaymentTransactionImpl()
|
Method Summary | |
---|---|
boolean |
addTransactionEntry(TransactionEntry element)
Ensures that this collection contains the specified element (optional operation). |
boolean |
addTransactionEntryCollection(Collection collection)
Adds all of the elements in the specified collection to this collection (optional operation). |
void |
authorize()
|
protected void |
bscInitializeAttributes(PaymentTransactionPk paymentTransactionPk)
|
void |
clearTransactionEntryCollection()
Removes all of the elements from this collection (optional operation). |
boolean |
containsTransactionEntry(TransactionEntry element)
Returns true if this collection contains the specified element. |
boolean |
containsTransactionEntryCollection(Collection collection)
Returns true if this collection contains all of the elements in the specified collection. |
void |
ejbActivate()
ejbActivate method. |
PaymentTransactionPk |
ejbCreate(PaymentTransactionPk paymentTransactionPk)
|
PaymentTransactionPk |
ejbFindByPrimaryKey(PaymentTransactionPk pk)
|
Collection |
ejbFindByStatus(String status)
Finds transactions by status. |
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(PaymentTransactionPk paymentTransactionPk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
boolean |
equalsTransactionEntryCollection(Object object)
Compares the specified object with this collection for equality. |
void |
failRetry()
|
void |
failSettle()
|
String |
getBatchId()
Get the value of batchId |
com.beasys.commerce.axiom.contact.CreditCard |
getCreditCard()
Get the value of creditCard |
PaymentTransactionValue |
getPaymentTransactionByValue()
Get all of PaymentTransaction's attributes. |
String |
getStatus()
Returns the current state name of the com.beasys.commerce.ebusiness.payment.PaymentWorkflow workflow |
protected Workflow |
getStatusWorkflow()
returns the Workflow status. |
String |
getStatusWorkflowName()
Returns the workflow classname that status uses. |
Price |
getTransactionAmount()
Get the value of transactionAmount |
Date |
getTransactionDate()
Get the value of transactionDate |
Collection |
getTransactionEntryCollection()
Returns a deep copy of the entire collection |
SmartCollectionReference |
getTransactionEntryCollectionReference()
Get the SmartCollectionReference for transactionEntry |
String |
getTransactionId()
|
boolean |
isTransactionEntryCollectionEmpty()
Returns true if this collection contains no elements. |
void |
markForSettle()
|
void |
pendingSettle()
|
void |
queryFail()
|
void |
querySuccess()
|
void |
reject()
|
boolean |
removeTransactionEntry(TransactionEntry element)
Removes a single instance of the specified element from this collection, if it is present (optional operation). |
boolean |
removeTransactionEntryCollection(Collection collection)
Removes all this collection's elements that are also contained in the specified collection (optional operation). |
boolean |
retainTransactionEntryCollection(Collection collection)
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
void |
setBatchId(String batchId)
Set the value of batchId |
void |
setCreditCard(com.beasys.commerce.axiom.contact.CreditCard creditCard)
Set the value of creditCard |
void |
setEntityContext(EntityContext ctx)
setEntityContext method. |
void |
setPaymentTransactionByValue(PaymentTransactionValue value)
Set all of PaymentTransaction's attributes to the passed in value. |
void |
settle()
|
void |
setTransactionAmount(Price transactionAmount)
Set the value of transactionAmount |
void |
setTransactionDate(Date transactionDate)
Set the value of transactionDate |
void |
setTransactionEntryCollection(Collection collection)
Sets the entire collection |
void |
setTransactionEntryCollectionReference(SmartCollectionReference smartCollectionReference)
Set the SmartCollectionReference for transactionEntry |
void |
setTransactionId(String value)
|
void |
systemFailure()
|
int |
transactionEntryCollectionHashCode()
Returns the hash code value for this collection. |
Iterator |
transactionEntryCollectionIterator()
Returns an iterator over the elements in this collection. |
int |
transactionEntryCollectionSize()
Returns the number of elements in this collection. |
void |
unsetEntityContext()
unsetEntityContext method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String transactionId
public com.beasys.commerce.axiom.contact.CreditCard creditCard
public Date transactionDate
public SmartCollectionReference transactionEntry
public String batchId
public WorkflowContext status
public transient Workflow statusWorkflow
public Price transactionAmount
Constructor Detail |
---|
public PaymentTransactionImpl()
Method Detail |
---|
public PaymentTransactionValue getPaymentTransactionByValue()
public void setPaymentTransactionByValue(PaymentTransactionValue value)
PaymentTransactionValue
- the PaymentTransaction value objectpublic PaymentTransactionPk ejbCreate(PaymentTransactionPk paymentTransactionPk) throws CreateException
CreateException
protected void bscInitializeAttributes(PaymentTransactionPk paymentTransactionPk) throws CreateException
CreateException
public void ejbPostCreate(PaymentTransactionPk paymentTransactionPk) throws CreateException
CreateException
public void ejbLoad() throws EJBException
EntityImpl
ejbLoad
in class EntityImpl
EJBException
public void ejbStore() throws EJBException
EntityImpl
ejbStore
in class EntityImpl
EJBException
public void ejbRemove() throws RemoveException
EntityImpl
ejbRemove
in class EntityImpl
RemoveException
public void ejbActivate() throws EJBException
EntityImpl
ejbActivate
in class EntityImpl
EJBException
public void ejbPassivate() throws EJBException
EntityImpl
ejbPassivate
in class EntityImpl
EJBException
public void setEntityContext(EntityContext ctx) throws EJBException
EntityImpl
setEntityContext
in class EntityImpl
EJBException
public void unsetEntityContext() throws EJBException
EntityImpl
unsetEntityContext
in class EntityImpl
EJBException
public PaymentTransactionPk ejbFindByPrimaryKey(PaymentTransactionPk pk) throws FinderException
FinderException
public com.beasys.commerce.axiom.contact.CreditCard getCreditCard()
public void setCreditCard(com.beasys.commerce.axiom.contact.CreditCard creditCard)
creditCard
- creditCard to be addedpublic Date getTransactionDate()
public void setTransactionDate(Date transactionDate)
transactionDate
- transactionDate to be addedpublic SmartCollectionReference getTransactionEntryCollectionReference()
public void setTransactionEntryCollectionReference(SmartCollectionReference smartCollectionReference)
public Collection getTransactionEntryCollection()
public void setTransactionEntryCollection(Collection collection)
public boolean addTransactionEntry(TransactionEntry element)
public boolean addTransactionEntryCollection(Collection collection)
public void clearTransactionEntryCollection()
public boolean containsTransactionEntry(TransactionEntry element)
public boolean containsTransactionEntryCollection(Collection collection)
public boolean equalsTransactionEntryCollection(Object object)
public int transactionEntryCollectionHashCode()
public boolean isTransactionEntryCollectionEmpty()
public Iterator transactionEntryCollectionIterator()
public boolean removeTransactionEntry(TransactionEntry element)
public boolean removeTransactionEntryCollection(Collection collection)
public boolean retainTransactionEntryCollection(Collection collection)
public int transactionEntryCollectionSize()
public String getBatchId()
public void setBatchId(String batchId)
batchId
- batchId to be addedpublic String getStatusWorkflowName()
public String getStatus()
protected Workflow getStatusWorkflow()
WorkflowInstantiationException
- could not instantiate workflowpublic String getTransactionId()
public void setTransactionId(String value)
public Price getTransactionAmount()
public void setTransactionAmount(Price transactionAmount)
transactionAmount
- transactionAmount to be addedpublic void authorize() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void reject() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void failSettle() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void markForSettle() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void settle() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void pendingSettle() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void querySuccess() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void queryFail() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void systemFailure() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void failRetry() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public Collection ejbFindByStatus(String status) throws FinderException
FinderException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |