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

Constructor Index

 o Transaction()

Method Index

 o addPart(TransactionPart)
 o commit()
 o countParts()
 o enumerateParts()
 o getCreditPart()
returns the credit part.
 o getDebitPart()
returns the debit part.
 o getDesc()
 o getOtherPart(TransactionPart)
 o getPart()
 o getPart(Account)
returns the transaction part relating to account 'a'.
 o 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)
 o 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.
 o setDesc(String)

Constructors

 o Transaction
 public Transaction()

Methods

 o 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)

 o commit
 public void commit()
 o setDesc
 public void setDesc(String d)
 o 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.

 o getDesc
 public String getDesc()
 o getCreditPart
 public TransactionPart getCreditPart()
returns the credit part. should only be used on simple transactions.

 o getDebitPart
 public TransactionPart getDebitPart()
returns the debit part. should only be used on simple transactions.

 o getPart
 public TransactionPart getPart()
 o 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.

 o getOtherPart
 public TransactionPart getOtherPart(TransactionPart tp)
 o enumerateParts
 public Enumeration enumerateParts()
 o countParts
 public int countParts()
 o addPart
 public void addPart(TransactionPart tp)

All Packages  Class Hierarchy  This Package  Previous  Next  Index