jgnash.engine
Class TransactionEntryRemoveX
java.lang.Object
jgnash.engine.TransactionEntry
jgnash.engine.AbstractInvestmentTransactionEntry
jgnash.engine.TransactionEntryRemoveX
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable<TransactionEntry>
public class TransactionEntryRemoveX
- extends AbstractInvestmentTransactionEntry
Remove shares without impacting the cash balance. This is a single
entry transaction
- Version:
- $Id$
- Author:
- Craig Cavanaugh
| Methods inherited from class jgnash.engine.TransactionEntry |
clone, compareTo, equals, equals, getAmount, getCreditAccount, getCreditAmount, getCreditReconciled, getDebitAccount, getDebitAmount, getDebitReconciled, getMemo, getReconciled, getTransactionTag, hashCode, isSingleEntry, setAmount, setCreditAmount, setCreditReconciled, setDebitAmount, setDebitReconciled, setMemo, setReconciled, setTransactionTag |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
TransactionEntryRemoveX
@Deprecated
public TransactionEntryRemoveX()
- Deprecated.
- No argument constructor for reflection purposes.
Do not use to create a new instance
TransactionEntryRemoveX
public TransactionEntryRemoveX(Account account,
SecurityNode securityNode,
java.math.BigDecimal price,
java.math.BigDecimal quantity)
getSignedQuantity
public java.math.BigDecimal getSignedQuantity()
- Returns the number of shares as it would impact
the sum of the investment accounts shares. Useful
for summing share quantities
- Specified by:
getSignedQuantity in class AbstractInvestmentTransactionEntry
- Returns:
- the quantity of securities for this transaction
getTransactionType
public TransactionType getTransactionType()
- Description copied from class:
AbstractInvestmentTransactionEntry
- Returns the type of this transaction entry
- Specified by:
getTransactionType in class AbstractInvestmentTransactionEntry
- Returns:
- the transaction type
setCreditAccount
public void setCreditAccount(Account creditAccount)
- Overrides:
setCreditAccount in class TransactionEntry
setDebitAccount
public void setDebitAccount(Account debitAccount)
- Overrides:
setDebitAccount in class TransactionEntry