|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgnash.engine.TransactionEntry
jgnash.engine.AbstractInvestmentTransactionEntry
public abstract class AbstractInvestmentTransactionEntry
Investment Transaction Entry
| Field Summary | |
|---|---|
private java.math.BigDecimal |
price
share price |
private java.math.BigDecimal |
quantity
number of shares |
private SecurityNode |
securityNode
Security for this entry |
| Constructor Summary | |
|---|---|
AbstractInvestmentTransactionEntry()
Creates a new instance of InvestmentTransactionEntry |
|
| Method Summary | |
|---|---|
java.math.BigDecimal |
getPrice()
|
java.math.BigDecimal |
getQuantity()
Returns the number of shares assigned to this transaction. |
SecurityNode |
getSecurityNode()
|
abstract 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. |
abstract TransactionType |
getTransactionType()
Returns the type of this transaction entry |
(package private) void |
setPrice(java.math.BigDecimal price)
|
(package private) void |
setQuantity(java.math.BigDecimal quantity)
Assigns the number of shares for this transaction. |
(package private) void |
setSecurityNode(SecurityNode securityNode)
|
java.lang.String |
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 |
| Field Detail |
|---|
private SecurityNode securityNode
private java.math.BigDecimal price
private java.math.BigDecimal quantity
| Constructor Detail |
|---|
AbstractInvestmentTransactionEntry()
| Method Detail |
|---|
public java.math.BigDecimal getTotal()
Not intended for use to calculate account balances
InvestmentTransaction.getTotal(jgnash.engine.Account)public SecurityNode getSecurityNode()
void setSecurityNode(SecurityNode securityNode)
public java.math.BigDecimal getPrice()
void setPrice(java.math.BigDecimal price)
void setQuantity(java.math.BigDecimal quantity)
quantity - the quantity of securities to assign to this accountgetSignedQuantity()public java.math.BigDecimal getQuantity()
getSignedQuantity()public abstract java.math.BigDecimal getSignedQuantity()
public abstract TransactionType getTransactionType()
public java.lang.String toString()
toString in class TransactionEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||