All Packages Class Hierarchy This Package Previous Next Index
Class benno.account.db.Transaction
java.lang.Object
|
+----benno.account.db.Transaction
- public final class Transaction
- extends Object
- implements Serializable
This represents one complete transaction.
- Version:
- $Revision: 1.12.6.3 $
- Author:
- Ben Clifford
-
Transaction()
-
-
addPart(TransactionPart)
-
-
commit()
-
-
countParts()
-
-
enumerateParts()
-
-
getCreditPart()
- returns the credit part.
-
getDebitPart()
- returns the debit part.
-
getDesc()
-
-
getOtherPart(TransactionPart)
-
-
getPart()
-
-
getPart(Account)
- returns the transaction part relating to account 'a'.
-
getWorkingCopy()
- this method returns a working copy of the transaction - it
may be modified as desired before being committed back into the
database (using some mechanism yet to be implemented)
-
isSimple()
- returns true if the transaction is simple - specifically, if it has
two parts, one a credit and one a debit, both for the same amounts.
-
setDesc(String)
-
Transaction
public Transaction()
getWorkingCopy
public Transaction getWorkingCopy()
- this method returns a working copy of the transaction - it
may be modified as desired before being committed back into the
database (using some mechanism yet to be implemented)
commit
public void commit()
setDesc
public void setDesc(String d)
isSimple
public boolean isSimple()
- returns true if the transaction is simple - specifically, if it has
two parts, one a credit and one a debit, both for the same amounts.
NOTE: because of the bad date handling in my program, it does not check
that the dates are the same. Ideally I would like this to happen eventually.
getDesc
public String getDesc()
getCreditPart
public TransactionPart getCreditPart()
- returns the credit part. should only be used on simple transactions.
getDebitPart
public TransactionPart getDebitPart()
- returns the debit part. should only be used on simple transactions.
getPart
public TransactionPart getPart()
getPart
public TransactionPart getPart(Account a)
- returns the transaction part relating to account 'a'.
If a==null, then returns a generic transaction part sumarising
the whole transaction.
getOtherPart
public TransactionPart getOtherPart(TransactionPart tp)
enumerateParts
public Enumeration enumerateParts()
countParts
public int countParts()
addPart
public void addPart(TransactionPart tp)
All Packages Class Hierarchy This Package Previous Next Index