com.beasys.commerce.ebusiness.payment
Class TransactionEntryImpl

java.lang.Object
  extended by com.beasys.commerce.foundation.BelongingImpl
      extended by com.beasys.commerce.ebusiness.payment.TransactionEntryImpl
All Implemented Interfaces
TransactionEntry, Belonging, BusinessSmartComponent, RelationalReference, Serializable, Cloneable, Comparable

public class TransactionEntryImpl
extends BelongingImpl
implements TransactionEntry

This class is the base class of all the payment instrument transaction entries. Payment service specific entites will extend this class in different packages. Thus the creditcard package has a PaylinXCreditCardTransactionEntry that extends TransactionEntry. The com.beasys.commerce.axiom.Price in each TransactionEntry facilitates changing the price of a transaction. Thus a price change to a transaction generates a new transaction entry.

See Also
TransactionEntry, TransactionEntryHome, Serialized Form

Field Summary
 Date entryDate
          The date this entry was made.
 String identifier
          The primary key for this entity is an identifier generated using internal logic.
 String notes
          Holds additional information related to a transaction entry.
 String serviceProviderCode
          Service provider specific response.
 String status
          Holds the transaction status based on the service provider's response and its mapping to the payment instruments workflow state.
 Price transactionAmount
           Containment: By Value Multiplicity: 1:1
 
Fields inherited from class com.beasys.commerce.foundation.BelongingImpl
__classIdentifier, __containingBelonging, __containingEntity, __mapKey, __sequenceNumber, _isDirty
 
Constructor Summary
TransactionEntryImpl()
           
 
Method Summary
 int compareTo(Object o)
          Compare this belonging to another
 Date getEntryDate()
          Get the value of entryDate
 String getIdentifier()
          Get the value of identifier
 String getNotes()
          Get the value of notes
 String getServiceProviderCode()
          Get the value of serviceProviderCode
 String getStatus()
          Get the value of status
 Price getTransactionAmount()
          Get the value of transactionAmount
 String interfaceName()
          interfaceName() returns the unqualified name of the interface from the UML model
 void setByValue(Belonging value)
          It is possible to call set-by-value with a superclass.
 void setEntryDate(Date entryDate)
          Set the value of entryDate
 void setIdentifier(String identifier)
          Set the value of identifier
 void setNotes(String notes)
          Set the value of notes
 void setServiceProviderCode(String serviceProviderCode)
          Set the value of serviceProviderCode
 void setStatus(String status)
          Set the value of status
 void setTransactionAmount(Price transactionAmount)
          Set the value of transactionAmount
 Belonging value()
          value() is a more typesafe implementation of clone()
 
Methods inherited from class com.beasys.commerce.foundation.BelongingImpl
clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clone, doRelationalBinding, doRelationalBinding, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, enumerateRelationalBinding, enumerateRelationalBinding, equals, get__classIdentifier, get__containingBelonging, get__containingEntity, get__containingEntityReference, get__mapKey, get__sequenceNumber, getPersistenceHelperPlugin, hashCode, set__classIdentifier, set__containingBelonging, set__containingEntity, set__containingEntityReference, set__mapKey, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.beasys.commerce.foundation.Belonging
clone, equals
 

Field Detail

entryDate

public Date entryDate
The date this entry was made.


identifier

public String identifier
The primary key for this entity is an identifier generated using internal logic. The AlphaNumericSequencer was not used as it would involve having two instances of it running.


notes

public String notes
Holds additional information related to a transaction entry.


status

public String status
Holds the transaction status based on the service provider's response and its mapping to the payment instruments workflow state.


transactionAmount

public Price transactionAmount


serviceProviderCode

public String serviceProviderCode
Service provider specific response.

Constructor Detail

TransactionEntryImpl

public TransactionEntryImpl()
Method Detail

getEntryDate

public Date getEntryDate()
Get the value of entryDate

Specified by:
getEntryDate in interface TransactionEntry
Returns
entryDate.

setEntryDate

public void setEntryDate(Date entryDate)
Set the value of entryDate

Specified by:
setEntryDate in interface TransactionEntry
Parameters
entryDate - entryDate to be added

getIdentifier

public String getIdentifier()
Get the value of identifier

Specified by:
getIdentifier in interface TransactionEntry
Returns
identifier.

setIdentifier

public void setIdentifier(String identifier)
Set the value of identifier

Specified by:
setIdentifier in interface TransactionEntry
Parameters
identifier - identifier to be added

getNotes

public String getNotes()
Get the value of notes

Specified by:
getNotes in interface TransactionEntry
Returns
notes.

setNotes

public void setNotes(String notes)
Set the value of notes

Specified by:
setNotes in interface TransactionEntry
Parameters
notes - notes to be added

getStatus

public String getStatus()
Get the value of status

Specified by:
getStatus in interface TransactionEntry
Returns
status.

setStatus

public void setStatus(String status)
Set the value of status

Specified by:
setStatus in interface TransactionEntry
Parameters
status - status to be added

getTransactionAmount

public Price getTransactionAmount()
Get the value of transactionAmount

Specified by:
getTransactionAmount in interface TransactionEntry
Returns
transactionAmount.

setTransactionAmount

public void setTransactionAmount(Price transactionAmount)
Set the value of transactionAmount

Specified by:
setTransactionAmount in interface TransactionEntry
Parameters
transactionAmount - transactionAmount to be added

getServiceProviderCode

public String getServiceProviderCode()
Get the value of serviceProviderCode

Specified by:
getServiceProviderCode in interface TransactionEntry
Returns
serviceProviderCode.

setServiceProviderCode

public void setServiceProviderCode(String serviceProviderCode)
Set the value of serviceProviderCode

Specified by:
setServiceProviderCode in interface TransactionEntry
Parameters
serviceProviderCode - serviceProviderCode to be added

value

public Belonging value()
value() is a more typesafe implementation of clone()

Specified by:
value in interface Belonging
Returns
a clone of this instance

interfaceName

public String interfaceName()
interfaceName() returns the unqualified name of the interface from the UML model

Specified by:
interfaceName in interface Belonging
Returns
the unqualified name of the belonging interface from the UML model

setByValue

public void setByValue(Belonging value)
It is possible to call set-by-value with a superclass. If that is the case, only the fields in the superclass will be set in this instance. The remaining fields get the default values.

It is also possible to call set-by-value with a subclass. In this case, the specialized fields in the subclass will be ignored. The overridden fields in the subclass will be populated.

Specified by:
setByValue in interface Belonging
Overrides:
setByValue in class BelongingImpl
Parameters
value - The Belonging to use for initialization.

compareTo

public int compareTo(Object o)
Compare this belonging to another

Specified by:
compareTo in interface Comparable
Specified by:
compareTo in class BelongingImpl
Parameters
o - target object for comparision
Returns
0 objects are equal


Copyright © 2006 BEA Systems, Inc. All Rights Reserved