|
© 2005 BEA Systems, Inc. | |||||||||
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
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
,
Serialized FormField 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. return, cancel or settlement) this represents remainng transacation amount. |
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 batchId
public com.beasys.commerce.axiom.contact.CreditCard creditCard
public WorkflowContext status
public transient Workflow statusWorkflow
public Price transactionAmount
public Date transactionDate
public SmartCollectionReference transactionEntry
public String transactionId
Constructor Detail |
public PaymentTransactionImpl()
Method Detail |
public boolean addTransactionEntry(TransactionEntry element)
public boolean addTransactionEntryCollection(Collection collection)
public void authorize() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
protected void bscInitializeAttributes(PaymentTransactionPk paymentTransactionPk) throws CreateException
CreateException
public void clearTransactionEntryCollection()
public boolean containsTransactionEntry(TransactionEntry element)
public boolean containsTransactionEntryCollection(Collection collection)
public void ejbActivate() throws EJBException
EntityImpl
ejbActivate
in interface EntityBean
ejbActivate
in class EntityImpl
EJBException
public PaymentTransactionPk ejbCreate(PaymentTransactionPk paymentTransactionPk) throws CreateException
CreateException
public PaymentTransactionPk ejbFindByPrimaryKey(PaymentTransactionPk pk) throws FinderException
FinderException
public Collection ejbFindByStatus(String status) throws FinderException
FinderException
public void ejbLoad() throws EJBException
EntityImpl
ejbLoad
in interface EntityBean
ejbLoad
in class EntityImpl
EJBException
public void ejbPassivate() throws EJBException
EntityImpl
ejbPassivate
in interface EntityBean
ejbPassivate
in class EntityImpl
EJBException
public void ejbPostCreate(PaymentTransactionPk paymentTransactionPk) throws CreateException
CreateException
public void ejbRemove() throws RemoveException
EntityImpl
ejbRemove
in interface EntityBean
ejbRemove
in class EntityImpl
RemoveException
public void ejbStore() throws EJBException
EntityImpl
ejbStore
in interface EntityBean
ejbStore
in class EntityImpl
EJBException
public boolean equalsTransactionEntryCollection(Object object)
public void failRetry() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void failSettle() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public String getBatchId()
public com.beasys.commerce.axiom.contact.CreditCard getCreditCard()
public PaymentTransactionValue getPaymentTransactionByValue()
public String getStatus()
protected Workflow getStatusWorkflow()
WorkflowInstantiationException
- could not instantiate workflowpublic String getStatusWorkflowName()
public Price getTransactionAmount()
public Date getTransactionDate()
public Collection getTransactionEntryCollection()
public SmartCollectionReference getTransactionEntryCollectionReference()
public String getTransactionId()
public boolean isTransactionEntryCollectionEmpty()
public void markForSettle() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void pendingSettle() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void queryFail() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void querySuccess() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void reject() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public boolean removeTransactionEntry(TransactionEntry element)
public boolean removeTransactionEntryCollection(Collection collection)
public boolean retainTransactionEntryCollection(Collection collection)
public void setBatchId(String batchId)
batchId
- batchId to be addedpublic void setCreditCard(com.beasys.commerce.axiom.contact.CreditCard creditCard)
creditCard
- creditCard to be addedpublic void setEntityContext(EntityContext ctx) throws EJBException
EntityImpl
setEntityContext
in interface EntityBean
setEntityContext
in class EntityImpl
EJBException
public void setPaymentTransactionByValue(PaymentTransactionValue value)
public void settle() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public void setTransactionAmount(Price transactionAmount)
transactionAmount
- transactionAmount to be addedpublic void setTransactionDate(Date transactionDate)
transactionDate
- transactionDate to be addedpublic void setTransactionEntryCollection(Collection collection)
public void setTransactionEntryCollectionReference(SmartCollectionReference smartCollectionReference)
public void setTransactionId(String value)
public void systemFailure() throws WorkflowInstantiationException, IllegalWorkflowTransitionException
WorkflowInstantiationException
IllegalWorkflowTransitionException
public int transactionEntryCollectionHashCode()
public Iterator transactionEntryCollectionIterator()
public int transactionEntryCollectionSize()
public void unsetEntityContext() throws EJBException
EntityImpl
unsetEntityContext
in interface EntityBean
unsetEntityContext
in class EntityImpl
EJBException
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |