|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableModelObjectImpl
org.homeunix.thecave.buddi.plugin.api.model.impl.MutableModelObjectImpl
org.homeunix.thecave.buddi.plugin.api.model.impl.MutableTransactionImpl
public class MutableTransactionImpl
| Constructor Summary | |
|---|---|
MutableTransactionImpl(Transaction transaction)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
long |
getAmount()
Returns the amouns associated with this transaction |
long |
getBalanceFrom()
Returns the balance in the From account at the point in time of this transaction |
long |
getBalanceTo()
Returns the balance in the To account at the point in time of this transaction |
java.util.Date |
getDate()
Returns the date associated with this transaction |
java.lang.String |
getDescription()
Returns the description associated with this transaction |
MutableSourceImpl |
getFrom()
Returns the source associated with this transaction's From field |
java.lang.String |
getMemo()
Returns the memo associated with this transaction |
java.lang.String |
getNumber()
Returns the cheque number associated with this transaction |
MutableSourceImpl |
getTo()
Returns the source associated with this transaction's To field |
Transaction |
getTransaction()
Returns the wrapped object from the underlying data model. |
boolean |
isClearedFrom()
Is this transaction marked as cleared? |
boolean |
isClearedTo()
Is this transaction marked as cleared? |
boolean |
isDeleted()
Is the transaction marked as deleted? |
boolean |
isInflow()
Does this transacton represent an inflow of cash or an outflow? |
boolean |
isReconciledFrom()
Is this transaction marked as reconciled? |
boolean |
isReconciledTo()
Is this transaction marked as reconciled? |
boolean |
isScheduled()
Was this transaction created through a scheduled transaction? |
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 class org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableModelObjectImpl |
|---|
compareTo, getModified, getRaw, getUid, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.homeunix.thecave.buddi.plugin.api.model.ImmutableModelObject |
|---|
getModified, getRaw, getUid |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public MutableTransactionImpl(Transaction transaction)
| Method Detail |
|---|
public Transaction getTransaction()
ImmutableTransaction
getTransaction in interface ImmutableTransactionpublic boolean isClearedFrom()
ImmutableTransaction
isClearedFrom in interface ImmutableTransactionpublic boolean isClearedTo()
ImmutableTransaction
isClearedTo in interface ImmutableTransactionpublic boolean isReconciledFrom()
ImmutableTransaction
isReconciledFrom in interface ImmutableTransactionpublic boolean isReconciledTo()
ImmutableTransaction
isReconciledTo in interface ImmutableTransactionpublic java.util.Date getDate()
ImmutableTransaction
getDate in interface ImmutableTransactionpublic java.lang.String getDescription()
ImmutableTransaction
getDescription in interface ImmutableTransactionpublic java.lang.String getMemo()
ImmutableTransaction
getMemo in interface ImmutableTransactionpublic java.lang.String getNumber()
ImmutableTransaction
getNumber in interface ImmutableTransactionpublic boolean isScheduled()
ImmutableTransaction
isScheduled in interface ImmutableTransactionpublic MutableSourceImpl getFrom()
ImmutableTransaction
getFrom in interface ImmutableTransactiongetFrom in interface MutableTransactionpublic MutableSourceImpl getTo()
ImmutableTransaction
getTo in interface ImmutableTransactiongetTo in interface MutableTransactionpublic long getBalanceFrom()
ImmutableTransaction
getBalanceFrom in interface ImmutableTransactionpublic long getBalanceTo()
ImmutableTransaction
getBalanceTo in interface ImmutableTransactionpublic boolean isInflow()
ImmutableTransaction
isInflow in interface ImmutableTransactionpublic long getAmount()
ImmutableTransaction
getAmount in interface ImmutableTransactionpublic boolean equals(java.lang.Object obj)
equals in class ImmutableModelObjectImplpublic void setAmount(long amount)
MutableTransaction
setAmount in interface MutableTransaction
public void setClearedFrom(boolean cleared)
throws InvalidValueException
MutableTransaction
setClearedFrom in interface MutableTransactionInvalidValueException
public void setClearedTo(boolean cleared)
throws InvalidValueException
MutableTransaction
setClearedTo in interface MutableTransactionInvalidValueException
public void setDate(java.util.Date date)
throws InvalidValueException
MutableTransaction
setDate in interface MutableTransactionInvalidValueException
public void setDescription(java.lang.String description)
throws InvalidValueException
MutableTransaction
setDescription in interface MutableTransactionInvalidValueException
public void setFrom(MutableSource from)
throws InvalidValueException
MutableTransaction
setFrom in interface MutableTransactionInvalidValueException
public void setMemo(java.lang.String memo)
throws InvalidValueException
MutableTransaction
setMemo in interface MutableTransactionInvalidValueException
public void setNumber(java.lang.String number)
throws InvalidValueException
MutableTransaction
setNumber in interface MutableTransactionInvalidValueException
public void setReconciledFrom(boolean reconciled)
throws InvalidValueException
MutableTransaction
setReconciledFrom in interface MutableTransactionInvalidValueException
public void setReconciledTo(boolean reconciled)
throws InvalidValueException
MutableTransaction
setReconciledTo in interface MutableTransactionInvalidValueException
public void setTo(MutableSource to)
throws InvalidValueException
MutableTransaction
setTo in interface MutableTransactionInvalidValueException
public void setScheduled(boolean scheduled)
throws InvalidValueException
MutableTransaction
setScheduled in interface MutableTransactionInvalidValueExceptionpublic boolean isDeleted()
ImmutableTransaction
isDeleted in interface ImmutableTransaction
public void setDeleted(boolean deleted)
throws InvalidValueException
MutableTransaction
setDeleted in interface MutableTransactionInvalidValueException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||