org.homeunix.thecave.buddi.model.impl
Class TransactionImpl
java.lang.Object
org.homeunix.thecave.buddi.model.impl.ModelObjectImpl
org.homeunix.thecave.buddi.model.impl.TransactionImpl
- All Implemented Interfaces:
- java.lang.Comparable<ModelObject>, ModelObject, Transaction
- Direct Known Subclasses:
- ScheduledTransactionImpl
public class TransactionImpl
- extends ModelObjectImpl
- implements Transaction
Default implementation of a Transaction. You should not create this object directly;
instead, please use the ModelFactory to create it, as this will ensure that all
required fields are correctly set.
- Author:
- wyatt
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
date
protected Day date
description
protected java.lang.String description
number
protected java.lang.String number
amount
protected long amount
from
protected Source from
to
protected Source to
deleted
protected boolean deleted
clearedFrom
protected boolean clearedFrom
clearedTo
protected boolean clearedTo
reconciledFrom
protected boolean reconciledFrom
reconciledTo
protected boolean reconciledTo
memo
protected java.lang.String memo
scheduled
protected boolean scheduled
balanceFrom
protected long balanceFrom
balanceTo
protected long balanceTo
TransactionImpl
public TransactionImpl()
compareTo
public int compareTo(ModelObject arg0)
- Specified by:
compareTo in interface java.lang.Comparable<ModelObject>- Specified by:
compareTo in interface ModelObject- Overrides:
compareTo in class ModelObjectImpl
getAmount
public long getAmount()
- Specified by:
getAmount in interface Transaction
getBalanceFrom
public long getBalanceFrom()
- Specified by:
getBalanceFrom in interface Transaction
getBalanceTo
public long getBalanceTo()
- Specified by:
getBalanceTo in interface Transaction
getDate
public java.util.Date getDate()
- Specified by:
getDate in interface Transaction
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface Transaction
getFrom
public Source getFrom()
- Specified by:
getFrom in interface Transaction
getMemo
public java.lang.String getMemo()
- Specified by:
getMemo in interface Transaction
getNumber
public java.lang.String getNumber()
- Specified by:
getNumber in interface Transaction
getTo
public Source getTo()
- Specified by:
getTo in interface Transaction
isClearedFrom
public boolean isClearedFrom()
- Specified by:
isClearedFrom in interface Transaction
isClearedTo
public boolean isClearedTo()
- Specified by:
isClearedTo in interface Transaction
isInflow
public boolean isInflow()
- Specified by:
isInflow in interface Transaction
isReconciledFrom
public boolean isReconciledFrom()
- Specified by:
isReconciledFrom in interface Transaction
isReconciledTo
public boolean isReconciledTo()
- Specified by:
isReconciledTo in interface Transaction
isScheduled
public boolean isScheduled()
- Specified by:
isScheduled in interface Transaction
setAmount
public void setAmount(long amount)
- Specified by:
setAmount in interface Transaction
setBalanceFrom
public void setBalanceFrom(long balanceFrom)
- Specified by:
setBalanceFrom in interface Transaction
setBalanceTo
public void setBalanceTo(long balanceTo)
- Specified by:
setBalanceTo in interface Transaction
setClearedFrom
public void setClearedFrom(boolean cleared)
- Specified by:
setClearedFrom in interface Transaction
setClearedTo
public void setClearedTo(boolean cleared)
- Specified by:
setClearedTo in interface Transaction
setDate
public void setDate(java.util.Date date)
- Specified by:
setDate in interface Transaction
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescription in interface Transaction
setFrom
public void setFrom(Source from)
- Specified by:
setFrom in interface Transaction
setMemo
public void setMemo(java.lang.String memo)
- Specified by:
setMemo in interface Transaction
setNumber
public void setNumber(java.lang.String number)
- Specified by:
setNumber in interface Transaction
setReconciledFrom
public void setReconciledFrom(boolean reconciled)
- Specified by:
setReconciledFrom in interface Transaction
setReconciledTo
public void setReconciledTo(boolean reconciled)
- Specified by:
setReconciledTo in interface Transaction
setScheduled
public void setScheduled(boolean scheduled)
- Specified by:
setScheduled in interface Transaction
setTo
public void setTo(Source to)
- Specified by:
setTo in interface Transaction
isDeleted
public boolean isDeleted()
- Specified by:
isDeleted in interface Transaction
setDeleted
public void setDeleted(boolean deleted)
- Specified by:
setDeleted in interface Transaction