# com.beasys.commerce.ebusiness.payment
TransactionEntryImpl Class

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.

Related Topics

``TransactionEntry``
``TransactionEntryHome``

Hierarchy
  `Object`
  `BelongingImpl`
  `TransactionEntryImpl`

All Implemented Interfaces
  `Belonging`, `BusinessSmartComponent`, `Cloneable`, `Comparable`, `RelationalReference`, `Serializable`, `TransactionEntry`

## Field Summary

`public `Date`` | `entryDate` The date this entry was made.
`public `String`` | `identifier` The primary key for this entity is an identifier generated using internal logic.
`public `String`` | `notes` Holds additional information related to a transaction entry.
`public `String`` | `serviceProviderCode` Service provider specific response.
`public `String`` | `status` Holds the transaction status based on the service provider's response and its mapping to the payment instruments workflow state.
`public `Price`` | `transactionAmount` Containment: By Value Multiplicity: 1:1

Fields from com.beasys.commerce.foundation`.`BelongingImpl``
``__classIdentifier`, `__containingBelonging`, `__containingEntity`, `__mapKey`, `__sequenceNumber`, `_isDirty``

## Constructor Summary

TransactionEntryImpl()

## Method Summary

`public int` | `compareTo`(`Object` o) Compare this belonging to another
`public `Date`` | `getEntryDate`() Get the value of entryDate
`public `String`` | `getIdentifier`() Get the value of identifier
`public `String`` | `getNotes`() Get the value of notes
`public `String`` | `getServiceProviderCode`() Get the value of serviceProviderCode
`public `String`` | `getStatus`() Get the value of status
`public `Price`` | `getTransactionAmount`() Get the value of transactionAmount
`public `String`` | `interfaceName`() interfaceName() returns the unqualified name of the interface from the UML model
`public void` | `setByValue`(`Belonging` value) It is possible to call set-by-value with a superclass.
`public void` | `setEntryDate`(`Date` entryDate) Set the value of entryDate
`public void` | `setIdentifier`(`String` identifier) Set the value of identifier
`public void` | `setNotes`(`String` notes) Set the value of notes
`public void` | `setServiceProviderCode`(`String` serviceProviderCode) Set the value of serviceProviderCode
`public void` | `setStatus`(`String` status) Set the value of status
`public void` | `setTransactionAmount`(`Price` transactionAmount) Set the value of transactionAmount
`public `Belonging`` | `value`() value() is a more typesafe implementation of clone()

Methods from `com.beasys.commerce.foundation.`BelongingImpl``
``clearRelationalBinding`, `clearRelationalBinding`, `clearRelationalBinding`, `clearRelationalBinding`, `clone`, `doRelationalBinding`, `doRelationalBinding`, `doRelationalBindingOnElement`, `doRelationalBindingOnElement`, `doRelationalBindingOnElement`, `doRelationalBindingOnSingleton`, `doRelationalBindingOnSingleton`, `doRelationalBindingOnSingleton`, `doRelationalBindingWithMapKey`, `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 from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `com.beasys.commerce.foundation.`Belonging``
``clone`, `equals`, `interfaceName`, `setByValue`, `value``

Methods from interface `java.lang.`Comparable``
`compareTo`

Methods from interface `com.beasys.commerce.foundation.`RelationalReference``
``get__classIdentifier`, `get__containingBelonging`, `get__containingEntity`, `get__mapKey`, `get__sequenceNumber`, `set__containingBelonging`, `set__containingEntity`, `set__mapKey``

Methods from interface `com.beasys.commerce.ebusiness.payment.`TransactionEntry``
``getEntryDate`, `getIdentifier`, `getNotes`, `getServiceProviderCode`, `getStatus`, `getTransactionAmount`, `setEntryDate`, `setIdentifier`, `setNotes`, `setServiceProviderCode`, `setStatus`, `setTransactionAmount``

## Field Detail

### entryDate

    public Date entryDate

  The date this entry was made.
  - Containment: By Value
  - Multiplicity: 1:1

### 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.
  - Containment: By Value
  - Multiplicity: 1:1

### notes

    public String notes

  Holds additional information related to a transaction entry.
  - Containment: By Value
  - Multiplicity: 1:1

### serviceProviderCode

    public String serviceProviderCode

  Service provider specific response.
  - Containment: By Value
  - Multiplicity: 1:1

### status

    public String status

  Holds the transaction status based on the service provider's response and its mapping to the payment instruments workflow state.
  - Containment: By Value
  - Multiplicity: 1:1

### transactionAmount

    public Price transactionAmount

  - Containment: By Value
  - Multiplicity: 1:1

## Constructor Detail

### TransactionEntryImpl

    public TransactionEntryImpl()

## Method Detail

### compareTo(Object) Method

    public int compareTo(Object o)

Compare this belonging to another

Overrides
  `BelongingImpl.compareTo(Object)`

#### Parameters

o
  target object for comparision

#### Returns

0 objects are equal

### getEntryDate() Method

    public Date getEntryDate()

Get the value of entryDate

#### Returns

entryDate.

### getIdentifier() Method

    public String getIdentifier()

Get the value of identifier

#### Returns

identifier.

### getNotes() Method

    public String getNotes()

Get the value of notes

#### Returns

notes.

### getServiceProviderCode() Method

    public String getServiceProviderCode()

Get the value of serviceProviderCode

#### Returns

serviceProviderCode.

### getStatus() Method

    public String getStatus()

Get the value of status

#### Returns

status.

### getTransactionAmount() Method

    public Price getTransactionAmount()

Get the value of transactionAmount

#### Returns

transactionAmount.

### interfaceName() Method

    public String interfaceName()

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

#### Returns

the unqualified name of the belonging interface from the UML model

### setByValue(Belonging) Method

    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.

Overrides
  `BelongingImpl.setByValue(Belonging)`

#### Parameters

value
  The `Belonging` to use for initialization.

### setEntryDate(Date) Method

    public void setEntryDate(Date entryDate)

Set the value of entryDate

#### Parameters

entryDate
  entryDate to be added

### setIdentifier(String) Method

    public void setIdentifier(String identifier)

Set the value of identifier

#### Parameters

identifier
  identifier to be added

### setNotes(String) Method

    public void setNotes(String notes)

Set the value of notes

#### Parameters

notes
  notes to be added

### setServiceProviderCode(String) Method

    public void setServiceProviderCode(String serviceProviderCode)

Set the value of serviceProviderCode

#### Parameters

serviceProviderCode
  serviceProviderCode to be added

### setStatus(String) Method

    public void setStatus(String status)

Set the value of status

#### Parameters

status
  status to be added

### setTransactionAmount(Price) Method

    public void setTransactionAmount(Price transactionAmount)

Set the value of transactionAmount

#### Parameters

transactionAmount
  transactionAmount to be added

### value() Method

    public Belonging value()

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

#### Returns

a clone of this instance