org.homeunix.thecave.buddi.plugin.api.model
Interface MutableTransaction

All Superinterfaces:
java.lang.Comparable<ImmutableModelObject>, ImmutableModelObject, ImmutableTransaction
All Known Subinterfaces:
MutableScheduledTransaction
All Known Implementing Classes:
MutableScheduledTransactionImpl, MutableTransactionImpl

public interface MutableTransaction
extends ImmutableTransaction


Method Summary
 MutableSource getFrom()
          Returns the source associated with this transaction's From field
 MutableSource getTo()
          Returns the source associated with this transaction's To field
 void setAmount(long amount)
          Sets the amount associated with this transaction
 void setClearedFrom(boolean cleared)
          Marks this transaction as cleared
 void setClearedTo(boolean cleared)
          Marks this transaction as cleared
 void setDate(java.util.Date date)
          Sets the date associated with this account
 void setDeleted(boolean deleted)
          Sets the deleted state of the transaction
 void setDescription(java.lang.String description)
          Sets the description associated with this account
 void setFrom(MutableSource from)
          Sets the given source as the From field
 void setMemo(java.lang.String memo)
          Sets the given memo for this transaction
 void setNumber(java.lang.String number)
          Sets the cheque number for this transaction
 void setReconciledFrom(boolean reconciled)
          Marks this transactin as reconciled
 void setReconciledTo(boolean reconciled)
          Marks this transactin as reconciled
 void setScheduled(boolean scheduled)
          Set this flag if the transaction was created via a scheduled transaction.
 void setTo(MutableSource to)
          Sets the given source as the To field
 
Methods inherited from interface org.homeunix.thecave.buddi.plugin.api.model.ImmutableTransaction
getAmount, getBalanceFrom, getBalanceTo, getDate, getDescription, getMemo, getNumber, getTransaction, isClearedFrom, isClearedTo, isDeleted, isInflow, isReconciledFrom, isReconciledTo, isScheduled
 
Methods inherited from interface org.homeunix.thecave.buddi.plugin.api.model.ImmutableModelObject
getModified, getRaw, getUid
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

setAmount

void setAmount(long amount)
               throws InvalidValueException
Sets the amount associated with this transaction

Parameters:
amount -
Throws:
InvalidValueException

setClearedFrom

void setClearedFrom(boolean cleared)
                    throws InvalidValueException
Marks this transaction as cleared

Parameters:
cleared -
Throws:
InvalidValueException

setClearedTo

void setClearedTo(boolean cleared)
                  throws InvalidValueException
Marks this transaction as cleared

Parameters:
cleared -
Throws:
InvalidValueException

setDate

void setDate(java.util.Date date)
             throws InvalidValueException
Sets the date associated with this account

Parameters:
date -
Throws:
InvalidValueException

setDescription

void setDescription(java.lang.String description)
                    throws InvalidValueException
Sets the description associated with this account

Parameters:
description -
Throws:
InvalidValueException

setFrom

void setFrom(MutableSource from)
             throws InvalidValueException
Sets the given source as the From field

Parameters:
from -
Throws:
InvalidValueException

setMemo

void setMemo(java.lang.String memo)
             throws InvalidValueException
Sets the given memo for this transaction

Parameters:
memo -
Throws:
InvalidValueException

setNumber

void setNumber(java.lang.String number)
               throws InvalidValueException
Sets the cheque number for this transaction

Parameters:
number -
Throws:
InvalidValueException

setReconciledFrom

void setReconciledFrom(boolean reconciled)
                       throws InvalidValueException
Marks this transactin as reconciled

Parameters:
reconciled -
Throws:
InvalidValueException

setReconciledTo

void setReconciledTo(boolean reconciled)
                     throws InvalidValueException
Marks this transactin as reconciled

Parameters:
reconciled -
Throws:
InvalidValueException

setScheduled

void setScheduled(boolean scheduled)
                  throws InvalidValueException
Set this flag if the transaction was created via a scheduled transaction.

Parameters:
scheduled -
Throws:
InvalidValueException

setTo

void setTo(MutableSource to)
           throws InvalidValueException
Sets the given source as the To field

Parameters:
to -
Throws:
InvalidValueException

getFrom

MutableSource getFrom()
Returns the source associated with this transaction's From field

Specified by:
getFrom in interface ImmutableTransaction
Returns:

getTo

MutableSource getTo()
Returns the source associated with this transaction's To field

Specified by:
getTo in interface ImmutableTransaction
Returns:

setDeleted

void setDeleted(boolean deleted)
                throws InvalidValueException
Sets the deleted state of the transaction

Parameters:
deleted -
Throws:
InvalidValueException