|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgnash.engine.TransactionEntry
jgnash.engine.AbstractInvestmentTransactionEntry
jgnash.engine.TransactionEntryDividendX
public class TransactionEntryDividendX
Investment dividend.
The creditAccount and creditAmount fields are used for the investment account. The debitAccount and debitAmount fields are used for the capital gains (income) account. creditAccount is assumed to be the investment account.
| Constructor Summary | |
|---|---|
|
TransactionEntryDividendX()
No argument constructor for reflection purposes only. |
protected |
TransactionEntryDividendX(Account incomeAccount,
Account investmentAccount,
SecurityNode securityNode,
java.math.BigDecimal dividend,
java.math.BigDecimal incomeExchangedAmount)
Constructor |
| Method Summary | |
|---|---|
java.math.BigDecimal |
getSignedQuantity()
Returns the number of shares as it would impact the sum of the investment accounts shares. |
java.math.BigDecimal |
getTotal()
Calculates the total of the value of the shares, gains, fees, etc. |
TransactionType |
getTransactionType()
Returns the type of this transaction entry |
| Methods inherited from class jgnash.engine.AbstractInvestmentTransactionEntry |
|---|
getPrice, getQuantity, getSecurityNode, setPrice, setQuantity, setSecurityNode, toString |
| Methods inherited from class jgnash.engine.TransactionEntry |
|---|
clone, compareTo, equals, equals, getAmount, getCreditAccount, getCreditAmount, getCreditReconciled, getDebitAccount, getDebitAmount, getDebitReconciled, getMemo, getReconciled, getTransactionTag, hashCode, isSingleEntry, setAmount, setCreditAccount, setCreditAmount, setCreditReconciled, setDebitAccount, setDebitAmount, setDebitReconciled, setMemo, setReconciled, setTransactionTag |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionEntryDividendX()
protected TransactionEntryDividendX(Account incomeAccount,
Account investmentAccount,
SecurityNode securityNode,
java.math.BigDecimal dividend,
java.math.BigDecimal incomeExchangedAmount)
incomeAccount - Debit accountinvestmentAccount - Credit/Investment accountsecurityNode - Security for the transactiondividend - Dividend receivedincomeExchangedAmount - Exchanged amount for the debit account| Method Detail |
|---|
public java.math.BigDecimal getTotal()
AbstractInvestmentTransactionEntryNot intended for use to calculate account balances
getTotal in class AbstractInvestmentTransactionEntryInvestmentTransaction.getTotal(jgnash.engine.Account)public java.math.BigDecimal getSignedQuantity()
getSignedQuantity in class AbstractInvestmentTransactionEntrypublic TransactionType getTransactionType()
AbstractInvestmentTransactionEntry
getTransactionType in class AbstractInvestmentTransactionEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||