com.moneydance.apps.md.model
Class LoanAccount

java.lang.Object
  extended by com.moneydance.apps.md.model.Account
      extended by com.moneydance.apps.md.model.LoanAccount

public class LoanAccount
extends Account

An account representing a loan


Field Summary
 
Fields inherited from class com.moneydance.apps.md.model.Account
ACCOUNT_TYPE_ASSET, ACCOUNT_TYPE_BANK, ACCOUNT_TYPE_CREDIT_CARD, ACCOUNT_TYPE_EXPENSE, ACCOUNT_TYPE_INCOME, ACCOUNT_TYPE_INVESTMENT, ACCOUNT_TYPE_LIABILITY, ACCOUNT_TYPE_LOAN, ACCOUNT_TYPE_ROOT, ACCOUNT_TYPE_SECURITY, BUDGET_CLASS_DISCRETIONARY, BUDGET_CLASS_INCOME, BUDGET_CLASS_MISC, BUDGET_CLASS_REQUIRED, BUDGET_INTERVAL_MONTHLY, BUDGET_INTERVAL_QUARTERLY, BUDGET_INTERVAL_WEEKLY, BUDGET_INTERVAL_YEARLY, MAX_BUDGETS, negate, PARAM_HAVE_NEW_TXNS, PARAM_NEW_TXN_COUNT, PARAM_QIF_TXNID, PARAM_TAX_RELATED, PARAM_VAT_ACCT, PARAM_VAT_APPLIES, PARAM_VAT_PCT, PASSWD_CACHE_KEY, SPLIT_ACCOUNT_ID
 
Constructor Summary
LoanAccount(java.lang.String accountName, int accountID, CurrencyType currency, java.util.Hashtable accountInfo, java.util.Vector subAccounts, Account parentAccount, long startBalance)
           
 
Method Summary
 boolean checkedInitialTransfer()
           
 boolean getCalcPmt()
           
 boolean getEscrow()
           
 Account getEscrowAccount()
           
 long getEscrowPayment()
           
 double getEscrowPmtRate()
           
 long getInitialPrincipal()
          Get the principal, excluding any transactions within Moneydance, for this loan
 AbstractTxn getInitialTransfer()
          Finds and returns the transaction that represents the initial transfer of funds from this loan account.
 Account getInterestAccount()
           
 double getInterestRate()
           
 long getInterestRemaining()
           
 double getIntPmtRate()
           
 double getLoanPmtRate()
           
 long getMonthlyPayment()
           
 int getNumPayments()
           
 int getNumPmtsRemaining()
           
 long getNxtInterest()
           
 long getNxtPrincipal()
           
 int getPaymentsPerYear()
           
 double getPoints()
          Return the percentage of the loan that was added as a fee to the principal
 boolean getReminder()
           
 void setCalcPmt(boolean calc)
           
 void setCheckedInitialTransfer()
           
 void setEscrow(boolean check)
           
 void setEscrowAccount(Account acct)
           
 void setEscrowPayment(long escrowPmt)
           
 void setInitialPrincipal(long principalAmt)
          Set the principal, excluding any transactions within Moneydance, for this loan
 void setInitialTransfer(AbstractTxn txn)
          Sets the given transaction as the initial transfer for this account.
 void setInterestAccount(Account acct)
           
 void setInterestRate(double rate)
           
 void setMonthlyPayment(long mthPmt)
           
 void setNumPayments(int numPayments)
           
 void setPaymentsPerYear(int pmtsPerYear)
           
 void setPoints(double points)
          Set the percentage of the loan that was added as a fee to the principal
 void setReminder(boolean reminder)
           
 
Methods inherited from class com.moneydance.apps.md.model.Account
_getAccountByName, _getAccountByName, _removeSubAccount, addAccountListener, addSubAccount, adjustStartBalance, balanceIsNegated, billpayTxnsUpdated, canDownloadTxns, cloneParameters, compareFullPathToAccount, compareToAccount, doesParameterExist, downloadedTxnsUpdated, dumpAccounts, ensureHasSubAccount, getAccountByName, getAccountByName, getAccountIsInactive, getAccountName, getAccountNum, getAccountOrParentIsInactive, getAccountType, getAllAccountNames, getBalance, getBankingFI, getBillPayFI, getBillpayTxns, getBooleanParameter, getBudgetAmount, getBudgetClass, getBudgetInterval, getCheckNumTags, getClearedBalance, getComment, getConfirmedBalance, getCreationDate, getCreationDateInt, getCurrencyType, getCurrentBalance, getDefaultCategory, getDepth, getDoubleParameter, getDownloadedTxns, getFullAccountName, getHideOnHomePage, getHighestAccountNum, getIndentedName, getIntParameter, getLongParameter, getNextCheckNumber, getOFXAccountKey, getOFXAccountMsgType, getOFXAccountNumber, getOFXAccountType, getOFXBankID, getOFXBillPayAccountNumber, getOFXBillPayAccountType, getOFXBillPayBankID, getOFXBranchID, getOFXBrokerID, getOFXLastTxnUpdate, getOnlineAvailBalance, getOnlineAvailBalanceDate, getOnlineLedgerBalance, getOnlineLedgerBalanceDate, getParameter, getParameter, getParameterCount, getParameterKeys, getParentAccount, getPath, getPreferredSortAscending, getPreferredSortOrder, getPreferredTwoLines, getReconcilingBalance, getRecursiveBalance, getRecursiveClearedBalance, getRecursiveCurrentBalance, getRecursiveReconcilingBalance, getRecursiveStartBalance, getRecursiveUserBalance, getRecursiveUserClearedBalance, getRecursiveUserCurrentBalance, getRecursiveUserReconcilingBalance, getRecursiveUserStartBalance, getRootAccount, getStartBalance, getSubAccount, getSubAccountCount, getSubAccounts, getTaxCategory, getUserBalance, getUserClearedBalance, getUserConfirmedBalance, getUserCurrentBalance, getUserReconcilingBalance, getUserStartBalance, hasOnlineAvailBalance, hasOnlineLedgerBalance, indexOf, isAncestorOf, isDeductible, isDescendantOf, isDirty, isLeafNode, isOnlineBankingCandidate, isOnlineBillpayCandidate, isOnlineEnabled, isRegisterAccount, isTaxable, isTaxRelated, makeAccount, notifyAccountAdded, notifyAccountDeleted, notifyAccountModified, notifyBalanceChanged, removeAccountListener, removeParameter, removeSubAccount, resetDirtyFlags, setAccountIsInactive, setAccountName, setBankingFI, setBillPayFI, setBudgetAmount, setBudgetClass, setBudgetInterval, setCheckNumTags, setComment, setCreationDate, setCurrencyType, setDeductible, setDefaultCategory, setDirtyFlag, setHideOnHomePage, setIncludeInNetWorth, setOFXAccountKey, setOFXAccountMsgType, setOFXAccountNumber, setOFXAccountType, setOFXBankID, setOFXBillPayAccountNumber, setOFXBillPayAccountType, setOFXBillPayBankID, setOFXBranchID, setOFXBrokerID, setOFXLastTxnUpdate, setOnlineAvailBalance, setOnlineLedgerBalance, setParameter, setParameter, setParameter, setParameter, setParameter, setParameterNoNotify, setParentAccount, setPreference, setPreference, setPreference, setPreferredSortAscending, setPreferredSortOrder, setPreferredTwoLines, setStartBalance, setTaxable, setTaxCategory, setTaxRelated, setUserStartBalance, shouldBeIncludedInNetWorth, sortAccounts, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoanAccount

public LoanAccount(java.lang.String accountName,
                   int accountID,
                   CurrencyType currency,
                   java.util.Hashtable accountInfo,
                   java.util.Vector subAccounts,
                   Account parentAccount,
                   long startBalance)
Method Detail

getPoints

public double getPoints()
Return the percentage of the loan that was added as a fee to the principal


setPoints

public void setPoints(double points)
Set the percentage of the loan that was added as a fee to the principal


getInitialPrincipal

public long getInitialPrincipal()
Get the principal, excluding any transactions within Moneydance, for this loan

Since:
build 569

setInitialPrincipal

public void setInitialPrincipal(long principalAmt)
Set the principal, excluding any transactions within Moneydance, for this loan

Since:
build 569

setInterestRate

public void setInterestRate(double rate)

getInterestRate

public double getInterestRate()

setPaymentsPerYear

public void setPaymentsPerYear(int pmtsPerYear)

getPaymentsPerYear

public int getPaymentsPerYear()

setNumPayments

public void setNumPayments(int numPayments)

getNumPayments

public int getNumPayments()

getReminder

public boolean getReminder()

setReminder

public void setReminder(boolean reminder)

checkedInitialTransfer

public boolean checkedInitialTransfer()

setCheckedInitialTransfer

public void setCheckedInitialTransfer()

getInitialTransfer

public AbstractTxn getInitialTransfer()
Finds and returns the transaction that represents the initial transfer of funds from this loan account. If there is no initial transfer transaction then this returns null.


setInitialTransfer

public void setInitialTransfer(AbstractTxn txn)
Sets the given transaction as the initial transfer for this account. This should only be called if there are not currently any other initial transfers for the account.


getEscrow

public boolean getEscrow()

setEscrow

public void setEscrow(boolean check)

getLoanPmtRate

public double getLoanPmtRate()

getIntPmtRate

public double getIntPmtRate()

getEscrowPmtRate

public double getEscrowPmtRate()

setEscrowPayment

public void setEscrowPayment(long escrowPmt)

getEscrowPayment

public long getEscrowPayment()

setCalcPmt

public void setCalcPmt(boolean calc)

getCalcPmt

public boolean getCalcPmt()

setMonthlyPayment

public void setMonthlyPayment(long mthPmt)

getMonthlyPayment

public long getMonthlyPayment()

getNumPmtsRemaining

public int getNumPmtsRemaining()

getInterestRemaining

public long getInterestRemaining()

getNxtPrincipal

public long getNxtPrincipal()

getNxtInterest

public long getNxtInterest()

getInterestAccount

public Account getInterestAccount()

setInterestAccount

public void setInterestAccount(Account acct)

getEscrowAccount

public Account getEscrowAccount()

setEscrowAccount

public void setEscrowAccount(Account acct)