All Packages Class Hierarchy This Package Previous Next Index
Class benno.account.db.Bundle
java.lang.Object
|
+----benno.account.db.Bundle
- public final class Bundle
- extends Object
This class holds all of the sets and lists of accounts, transactions,
currencies, etc, as static members, so that they can be referenced
from anywhere.
Bugs: DBChangedListener handling - objects are not deregistering
themselves from the list that Bundle holds - therefore they are not
garbage collected, and code is slowed down.
- Version:
- $Revision: 1.15.6.1 $
- Author:
- Ben Clifford
-
accs
-
-
curs
-
-
exchs
-
-
grps
-
-
stds
-
-
trans
-
-
Bundle()
-
-
addDBChangedListener(DBChangedListener)
-
-
create()
- this allocates new structures to each static member, if a
new data set is desired, instead of loading a previous one.
-
getDirty()
-
-
load(String)
- this deserializes a file serialised with the save member
-
removeDBChangedListener(DBChangedListener)
-
-
save(String)
- this serializes the static members out to supplied filename
-
setChanged()
- this function is to be called by, eg.
-
setDirty()
- this takes no args, because we do not want arbitary code to
be able to undirty.
trans
public static TransactionList trans
accs
public static AccountList accs
curs
public static CurrencyList curs
stds
public static StandingOrderList stds
exchs
public static ExchangeRateList exchs
grps
public static AccountGroupList grps
Bundle
public Bundle()
save
public static void save(String filename)
- this serializes the static members out to supplied filename
load
public static void load(String filename) throws BundleNotExistException
- this deserializes a file serialised with the save member
create
public static void create()
- this allocates new structures to each static member, if a
new data set is desired, instead of loading a previous one.
setDirty
public static void setDirty()
- this takes no args, because we do not want arbitary code to
be able to undirty.
setChanged
public static void setChanged()
- this function is to be called by, eg. GUI components when they
have completed a series of changes to the database, to cause
other components to refresh with the new data.
getDirty
public static boolean getDirty()
addDBChangedListener
public static void addDBChangedListener(DBChangedListener d)
removeDBChangedListener
public static void removeDBChangedListener(DBChangedListener d)
All Packages Class Hierarchy This Package Previous Next Index