com.moneydance.apps.md.model
Class AccountUtil

java.lang.Object
  extended by com.moneydance.apps.md.model.AccountUtil

public abstract class AccountUtil
extends java.lang.Object

Miscellaneous functions


Field Summary
static int ACCOUNT
           
static int ACTION
           
static int AMOUNT
           
static int CHECKNUM
           
static int CHECKNUM_INT
           
static int DATE
           
static int DATE_ENTERED
           
static int DATE_THEN_AMOUNT
           
static int DATE_THEN_CHECKNUM
           
static int DATE_THEN_STATUS
           
static int DESCRIPTION
           
static int STATUS_THEN_CKNUM
           
static int STATUS_THEN_DATE
           
 
Constructor Summary
AccountUtil()
           
 
Method Summary
static int compAccountDateEntered(AbstractTxn t1, AbstractTxn t2)
           
static int compAccountDateEntered(java.lang.String t1AcctStr, AbstractTxn t1, AbstractTxn t2)
           
static long compAmount(AbstractTxn t1, AbstractTxn t2)
           
static int compCheckIntId(AbstractTxn t1, AbstractTxn t2)
           
static int compCheckNumId(AbstractTxn t1, AbstractTxn t2)
           
static int compDate(AbstractTxn t1, AbstractTxn t2)
           
static int compDateCheckNum(AbstractTxn t1, AbstractTxn t2)
           
static int compDateDateEntered(AbstractTxn t1, AbstractTxn t2)
           
static int compDateEntered(AbstractTxn t1, AbstractTxn t2)
           
static long compDateThenAmount(AbstractTxn t1, AbstractTxn t2)
           
static int compDateThenStatus(AbstractTxn t1, AbstractTxn t2)
           
static int compDescription(AbstractTxn t1, AbstractTxn t2)
           
static int compDescriptionDate(AbstractTxn t1, AbstractTxn t2)
           
static int compDescriptionDateEntered(AbstractTxn t1, AbstractTxn t2)
           
static int compId(AbstractTxn t1, AbstractTxn t2)
           
static int compStatus(AbstractTxn t1, AbstractTxn t2)
           
static int compStatusChecknum(AbstractTxn t1, AbstractTxn t2)
           
static java.util.Iterator getAccountIterator(Account account)
          Return an iterator for all of the accounts that are under the given account.
static Account getDefaultCategoryForAcct(Account acct)
          Get the default category for use transactions in the given account.
static int insertSortedTransaction(TxnSet transactions, AbstractTxn t, int sortedBy)
          Inserts the given transaction into the specified array in sorted order.
static boolean isCompatibleWith(OnlineAccountInfo olAcct, Account acct)
          Returns true iff the given online account can be associated with the given local account.
static boolean isTransactionSorted(int index, AbstractTxn t, TxnSet transactions, int sortedBy)
           
static void sortTransactions(TxnSet transactions, int sortField)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE

public static final int DATE
See Also:
Constant Field Values

DATE_ENTERED

public static final int DATE_ENTERED
See Also:
Constant Field Values

DESCRIPTION

public static final int DESCRIPTION
See Also:
Constant Field Values

AMOUNT

public static final int AMOUNT
See Also:
Constant Field Values

STATUS_THEN_DATE

public static final int STATUS_THEN_DATE
See Also:
Constant Field Values

ACCOUNT

public static final int ACCOUNT
See Also:
Constant Field Values

DATE_THEN_STATUS

public static final int DATE_THEN_STATUS
See Also:
Constant Field Values

DATE_THEN_AMOUNT

public static final int DATE_THEN_AMOUNT
See Also:
Constant Field Values

DATE_THEN_CHECKNUM

public static final int DATE_THEN_CHECKNUM
See Also:
Constant Field Values

CHECKNUM

public static final int CHECKNUM
See Also:
Constant Field Values

ACTION

public static final int ACTION
See Also:
Constant Field Values

CHECKNUM_INT

public static final int CHECKNUM_INT
See Also:
Constant Field Values

STATUS_THEN_CKNUM

public static final int STATUS_THEN_CKNUM
See Also:
Constant Field Values
Constructor Detail

AccountUtil

public AccountUtil()
Method Detail

getDefaultCategoryForAcct

public static final Account getDefaultCategoryForAcct(Account acct)
Get the default category for use transactions in the given account. This is guaranteed to return a non-null value.

Since:
build 410

getAccountIterator

public static java.util.Iterator getAccountIterator(Account account)
Return an iterator for all of the accounts that are under the given account. If the RootAccount is provided, all accounts will be included in the iterator.


isCompatibleWith

public static boolean isCompatibleWith(OnlineAccountInfo olAcct,
                                       Account acct)
Returns true iff the given online account can be associated with the given local account.


insertSortedTransaction

public static int insertSortedTransaction(TxnSet transactions,
                                          AbstractTxn t,
                                          int sortedBy)
Inserts the given transaction into the specified array in sorted order.


compAmount

public static long compAmount(AbstractTxn t1,
                              AbstractTxn t2)

compDateThenAmount

public static long compDateThenAmount(AbstractTxn t1,
                                      AbstractTxn t2)

compDateThenStatus

public static int compDateThenStatus(AbstractTxn t1,
                                     AbstractTxn t2)

compStatus

public static int compStatus(AbstractTxn t1,
                             AbstractTxn t2)

compStatusChecknum

public static int compStatusChecknum(AbstractTxn t1,
                                     AbstractTxn t2)

compDescriptionDateEntered

public static int compDescriptionDateEntered(AbstractTxn t1,
                                             AbstractTxn t2)

compDescriptionDate

public static int compDescriptionDate(AbstractTxn t1,
                                      AbstractTxn t2)

compDescription

public static int compDescription(AbstractTxn t1,
                                  AbstractTxn t2)

compDateCheckNum

public static int compDateCheckNum(AbstractTxn t1,
                                   AbstractTxn t2)

compDate

public static int compDate(AbstractTxn t1,
                           AbstractTxn t2)

compDateDateEntered

public static int compDateDateEntered(AbstractTxn t1,
                                      AbstractTxn t2)

compAccountDateEntered

public static int compAccountDateEntered(AbstractTxn t1,
                                         AbstractTxn t2)

compAccountDateEntered

public static int compAccountDateEntered(java.lang.String t1AcctStr,
                                         AbstractTxn t1,
                                         AbstractTxn t2)

compDateEntered

public static final int compDateEntered(AbstractTxn t1,
                                        AbstractTxn t2)

compCheckNumId

public static final int compCheckNumId(AbstractTxn t1,
                                       AbstractTxn t2)

compCheckIntId

public static final int compCheckIntId(AbstractTxn t1,
                                       AbstractTxn t2)

compId

public static int compId(AbstractTxn t1,
                         AbstractTxn t2)

isTransactionSorted

public static boolean isTransactionSorted(int index,
                                          AbstractTxn t,
                                          TxnSet transactions,
                                          int sortedBy)

sortTransactions

public static void sortTransactions(TxnSet transactions,
                                    int sortField)