|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.moneydance.apps.md.model.TransactionSet
public class TransactionSet
The set of transactions that are associated with a data file or RootAccount
Constructor Summary | |
---|---|
TransactionSet(RootAccount rootAccount)
|
Method Summary | |
---|---|
void |
addNewTxn(ParentTxn t)
Add a new transaction to the transaction set. |
void |
addTransactionListener(TransactionListener listener)
Register an object that would like to receive notification when transactions have been modified, added, or removed. |
void |
addTxnAgain(AbstractTxn txn)
Adds a transaction and all of its splits back to the list without assigning them a unique transaction ID. |
ParentTxn |
findBestMatch(java.lang.String payee,
long amount,
Account acct)
Find the most recent transaction that has the closest payee to the given value. |
java.util.Enumeration<AbstractTxn> |
getAllTransactions()
Return an Enumeration containing all of the transactions |
TxnSet |
getAllTxns()
Return a TxnSet containing all of the transactions |
DateRange |
getDateBounds()
|
long |
getTransactionCount()
|
TxnSet |
getTransactionsForAccount(Account acct)
Get all of the transactions that are in the specified account |
AbstractTxn |
getTxnByID(long txnID)
|
java.util.Vector<AbstractTxn> |
getTxnsForAllAccounts()
Get all of the transactions in a copy of the current transaction list |
boolean |
hasTxnsForAccount(Account acct)
|
boolean |
isDirty()
|
void |
loadTxn(ParentTxn t)
Add the specified transaction to the txn set. |
ParentTxn[] |
matchPayee(Account account,
java.lang.String description,
boolean caseSensitive,
int numMatches)
Return the most recently entered 'numMatches' transactions that match the given description. |
SplitTxn[] |
matchSplitPayee(Account account,
java.lang.String description,
boolean caseSensitive,
int numMatches)
Return the most recently entered 'numMatches' split transactions that match the given description. |
void |
removeTransactionListener(TransactionListener listener)
|
void |
removeTxn(AbstractTxn txn)
Remove the specified transaction. |
void |
resetDirtyFlags()
|
void |
setDirty()
|
void |
txnModified(AbstractTxn t)
Record that the specified transaction has been modified, notifying all listeners that this txn and all of its splits have been modified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionSet(RootAccount rootAccount)
Method Detail |
---|
public void setDirty()
public boolean isDirty()
public void resetDirtyFlags()
public void loadTxn(ParentTxn t)
public void addNewTxn(ParentTxn t)
public void addTxnAgain(AbstractTxn txn)
public void removeTxn(AbstractTxn txn)
public void txnModified(AbstractTxn t)
public void addTransactionListener(TransactionListener listener)
public void removeTransactionListener(TransactionListener listener)
public java.util.Enumeration<AbstractTxn> getAllTransactions()
public TxnSet getAllTxns()
public long getTransactionCount()
public final DateRange getDateBounds()
public ParentTxn findBestMatch(java.lang.String payee, long amount, Account acct)
public final AbstractTxn getTxnByID(long txnID)
public final java.util.Vector<AbstractTxn> getTxnsForAllAccounts()
public final boolean hasTxnsForAccount(Account acct)
public TxnSet getTransactionsForAccount(Account acct)
public SplitTxn[] matchSplitPayee(Account account, java.lang.String description, boolean caseSensitive, int numMatches)
public ParentTxn[] matchPayee(Account account, java.lang.String description, boolean caseSensitive, int numMatches)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |