public class TransactionSet
extends java.lang.Object
| Constructor and Description |
|---|
TransactionSet(RootAccount rootAccount) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public TransactionSet(RootAccount rootAccount)
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)