org.neuclear.ledger
Class PostedTransaction

java.lang.Object
  extended byorg.neuclear.ledger.Transaction
      extended byorg.neuclear.ledger.PostedTransaction
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PostedHeldTransaction

public class PostedTransaction
extends Transaction

This class defines the type of Transactions that have been posted. They are therefore immutable. They are created by the Ledger normally based on an UnPostedTransaction. They are assumed to be balanced.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.neuclear.ledger.Transaction
items, ledger
 
Constructor Summary
PostedTransaction(PostedHeldTransaction orig, Book origbook, Book newbook, java.util.Date time, double amount, java.lang.String comment)
           
PostedTransaction(PostedHeldTransaction orig, java.util.Date time, double amount, java.lang.String comment)
           
PostedTransaction(UnPostedTransaction orig, java.util.Date time)
          Standard Constructor.
 
Method Summary
 java.lang.String getReceiptId()
          The ID of the Receipt generated after a Transaction has been posted
 java.util.Date getTransactionTime()
           
 void setReceiptId(java.lang.String receipt)
           
 
Methods inherited from class org.neuclear.ledger.Transaction
getAmount, getComment, getItemList, getItems, getLedger, getRequestId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostedTransaction

public PostedTransaction(UnPostedTransaction orig,
                         java.util.Date time)
                  throws InvalidTransactionException,
                         UnBalancedTransactionException
Standard Constructor.

Parameters:
orig -

PostedTransaction

public PostedTransaction(PostedHeldTransaction orig,
                         java.util.Date time,
                         double amount,
                         java.lang.String comment)
                  throws ExceededHeldAmountException,
                         UnBalancedTransactionException

PostedTransaction

public PostedTransaction(PostedHeldTransaction orig,
                         Book origbook,
                         Book newbook,
                         java.util.Date time,
                         double amount,
                         java.lang.String comment)
                  throws ExceededHeldAmountException,
                         UnBalancedTransactionException
Method Detail

getTransactionTime

public java.util.Date getTransactionTime()

getReceiptId

public java.lang.String getReceiptId()
The ID of the Receipt generated after a Transaction has been posted

Returns:

setReceiptId

public void setReceiptId(java.lang.String receipt)


Copyright © 2003-2004 Antilles Software Ventures SA. All Rights Reserved.