|
||||||||||
| 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.TransactionEntryBuyX
public class TransactionEntryBuyX
Buy shares and reduce the (cash) balance of an account
The investment account is always assigned to the debit account. If an account other than the investment account is assigned to the credit account, then the balance of the credit account is reduced because the cost of the buy is made against it.
| Constructor Summary | |
|---|---|
|
TransactionEntryBuyX()
Deprecated. |
protected |
TransactionEntryBuyX(Account account,
Account investmentAccount,
SecurityNode securityNode,
java.math.BigDecimal price,
java.math.BigDecimal quantity,
java.math.BigDecimal exchangeRate)
Constructor |
| Method Summary | |
|---|---|
java.math.BigDecimal |
getSignedQuantity()
Returns the number of shares as it would impact the sum of the investment accounts shares. |
TransactionType |
getTransactionType()
Returns the type of this transaction entry |
| Methods inherited from class jgnash.engine.AbstractInvestmentTransactionEntry |
|---|
getPrice, getQuantity, getSecurityNode, getTotal, 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 |
|---|
@Deprecated public TransactionEntryBuyX()
protected TransactionEntryBuyX(Account account,
Account investmentAccount,
SecurityNode securityNode,
java.math.BigDecimal price,
java.math.BigDecimal quantity,
java.math.BigDecimal exchangeRate)
account - Credit accountinvestmentAccount - Debit / Investment accountsecurityNode - Security for the transactionprice - Price of sharesquantity - Number of sharesexchangeRate - Exchange rate for the credit account (May be ONE, but may not be null and must be greater than ZERO)| Method Detail |
|---|
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 | |||||||||