jgnash.engine
Class TransactionEntryAbstractIncrease

java.lang.Object
  extended by jgnash.engine.TransactionEntry
      extended by jgnash.engine.AbstractInvestmentTransactionEntry
          extended by jgnash.engine.TransactionEntryAbstractIncrease
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<TransactionEntry>
Direct Known Subclasses:
TransactionEntryAddX, TransactionEntryReinvestDivX, TransactionEntrySplitX

public abstract class TransactionEntryAbstractIncrease
extends AbstractInvestmentTransactionEntry

Abstract Add transaction

Version:
$Id$
Author:
Craig Cavanaugh

Constructor Summary
TransactionEntryAbstractIncrease()
           
 
Method Summary
 java.math.BigDecimal getSignedQuantity()
          Returns the number of shares as it would impact the sum of the investment accounts shares.
 void setCreditAccount(Account creditAccount)
           
 void setDebitAccount(Account debitAccount)
           
 
Methods inherited from class jgnash.engine.AbstractInvestmentTransactionEntry
getPrice, getQuantity, getSecurityNode, getTotal, getTransactionType, 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

TransactionEntryAbstractIncrease

TransactionEntryAbstractIncrease()
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

setCreditAccount

public void setCreditAccount(Account creditAccount)
Overrides:
setCreditAccount in class TransactionEntry

setDebitAccount

public void setDebitAccount(Account debitAccount)
Overrides:
setDebitAccount in class TransactionEntry