com.x8ing.mc.bp
Class MoneyTransaction
java.lang.Object
com.x8ing.mc.bp.MoneyTransaction
public class MoneyTransaction
- extends java.lang.Object
Implements a money transaction.
- Author:
- Patrick Heusser
Constructor Summary |
MoneyTransaction(java.lang.String bookingDescription,
java.util.Calendar transactionDate,
double amount,
BalanceAccount balanceAccount)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MoneyTransaction
public MoneyTransaction(java.lang.String bookingDescription,
java.util.Calendar transactionDate,
double amount,
BalanceAccount balanceAccount)
- Parameters:
bookingDescription
- transactionDate
- amount
-
getAmount
public double getAmount()
- Returns:
- Returns the amount.
setAmount
public void setAmount(double amount)
- Parameters:
amount
- The amount to set.
getBookingDescription
public java.lang.String getBookingDescription()
- Returns:
- Returns the bookingDescription.
setBookingDescription
public void setBookingDescription(java.lang.String bookingDescription)
- Parameters:
bookingDescription
- The bookingDescription to set.
getTransactionDate
public java.util.Calendar getTransactionDate()
- Returns:
- Returns the transactionDate.
setTransactionDate
public void setTransactionDate(java.util.Calendar transactionDate)
- Parameters:
transactionDate
- The transactionDate to set.
toString
public void toString(java.lang.StringBuffer sb)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getBalanceAccount
public BalanceAccount getBalanceAccount()
setBalanceAccount
public void setBalanceAccount(BalanceAccount balanceAccount)
by Patrick Heusser