jgnash.engine
Class TransactionEntryRemoveX

java.lang.Object
  extended by jgnash.engine.TransactionEntry
      extended by jgnash.engine.AbstractInvestmentTransactionEntry
          extended by 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

Constructor Summary
TransactionEntryRemoveX()
          Deprecated.  
TransactionEntryRemoveX(Account account, SecurityNode securityNode, java.math.BigDecimal price, java.math.BigDecimal quantity)
           
 
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
 void setCreditAccount(Account creditAccount)
           
 void setDebitAccount(Account debitAccount)
           
 
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, setCreditAmount, setCreditReconciled, setDebitAmount, setDebitReconciled, setMemo, setReconciled, setTransactionTag
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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