org.homeunix.thecave.buddi.model.impl
Class ScheduledTransactionImpl

java.lang.Object
  extended by org.homeunix.thecave.buddi.model.impl.ModelObjectImpl
      extended by org.homeunix.thecave.buddi.model.impl.TransactionImpl
          extended by org.homeunix.thecave.buddi.model.impl.ScheduledTransactionImpl
All Implemented Interfaces:
java.lang.Comparable<ModelObject>, ModelObject, ScheduledTransaction, Transaction

public class ScheduledTransactionImpl
extends TransactionImpl
implements ScheduledTransaction

Default implementation of an ScheduledTrasaction. 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

Field Summary
 
Fields inherited from class org.homeunix.thecave.buddi.model.impl.TransactionImpl
amount, balanceFrom, balanceTo, clearedFrom, clearedTo, date, deleted, description, from, memo, number, reconciledFrom, reconciledTo, scheduled, to
 
Fields inherited from class org.homeunix.thecave.buddi.model.impl.ModelObjectImpl
document, modifiedTime, uid
 
Constructor Summary
ScheduledTransactionImpl()
           
 
Method Summary
 int compareTo(ModelObject arg0)
           
 java.util.Date getEndDate()
          Returns the end date
 java.lang.String getFrequencyType()
          Sets the frequency type
 java.util.Date getLastDayCreated()
          Gets the last day on which a transaction was created.
 java.lang.String getMessage()
          Returns the message with this scheduled transaction.
 int getScheduleDay()
          Returns the scheduled day.
 int getScheduleMonth()
          Returns the scheduled month.
 java.lang.String getScheduleName()
          Returns the name of this scheduled transaction.
 int getScheduleWeek()
          Returns the scheduled week.
 java.util.Date getStartDate()
          Returns the date on which this scheduled transaction is to start.
 void setEndDate(java.util.Date endDate)
          Sets the end date for this scheduled transaction.
 void setFrequencyType(java.lang.String frequencyType)
          Sets the frequency type for this scheduled transaction.
 void setLastDayCreated(java.util.Date lastDayCreated)
          Sets the last day created.
 void setMessage(java.lang.String message)
          Sets the message
 void setScheduleDay(int scheduleDay)
          Sets the schedule day.
 void setScheduleMonth(int scheduleMonth)
          Sets the schedule month.
 void setScheduleName(java.lang.String scheduleName)
          Sets the scheduled transaction name
 void setScheduleWeek(int scheduleWeek)
          Sets the schedule week.
 void setStartDate(java.util.Date startDate)
          Sets the start date for this scheduled transaction.
 
Methods inherited from class org.homeunix.thecave.buddi.model.impl.TransactionImpl
getAmount, getBalanceFrom, getBalanceTo, getDate, getDescription, getFrom, getMemo, getNumber, getTo, isClearedFrom, isClearedTo, isDeleted, isInflow, isReconciledFrom, isReconciledTo, isScheduled, setAmount, setBalanceFrom, setBalanceTo, setClearedFrom, setClearedTo, setDate, setDeleted, setDescription, setFrom, setMemo, setNumber, setReconciledFrom, setReconciledTo, setScheduled, setTo
 
Methods inherited from class org.homeunix.thecave.buddi.model.impl.ModelObjectImpl
equals, getDocument, getModified, getUid, setChanged, setDocument, setModified, setModified, setUid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.homeunix.thecave.buddi.model.Transaction
getAmount, getBalanceFrom, getBalanceTo, getDate, getDescription, getFrom, getMemo, getNumber, getTo, isClearedFrom, isClearedTo, isDeleted, isInflow, isReconciledFrom, isReconciledTo, isScheduled, setAmount, setBalanceFrom, setBalanceTo, setClearedFrom, setClearedTo, setDate, setDeleted, setDescription, setFrom, setMemo, setNumber, setReconciledFrom, setReconciledTo, setScheduled, setTo
 
Methods inherited from interface org.homeunix.thecave.buddi.model.ModelObject
getDocument, getModified, getUid, setChanged, setDocument
 

Constructor Detail

ScheduledTransactionImpl

public ScheduledTransactionImpl()
Method Detail

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 TransactionImpl

getEndDate

public java.util.Date getEndDate()
Description copied from interface: ScheduledTransaction
Returns the end date

Specified by:
getEndDate in interface ScheduledTransaction
Returns:

getFrequencyType

public java.lang.String getFrequencyType()
Description copied from interface: ScheduledTransaction
Sets the frequency type

Specified by:
getFrequencyType in interface ScheduledTransaction
Returns:

getLastDayCreated

public java.util.Date getLastDayCreated()
Description copied from interface: ScheduledTransaction
Gets the last day on which a transaction was created. If there have been no transactions created from this schedule yet, return null.

Specified by:
getLastDayCreated in interface ScheduledTransaction
Returns:

getMessage

public java.lang.String getMessage()
Description copied from interface: ScheduledTransaction
Returns the message with this scheduled transaction.

Specified by:
getMessage in interface ScheduledTransaction
Returns:

getScheduleDay

public int getScheduleDay()
Description copied from interface: ScheduledTransaction
Returns the scheduled day. This may have different meanings depending on the frequency type.

Specified by:
getScheduleDay in interface ScheduledTransaction
Returns:

getScheduleMonth

public int getScheduleMonth()
Description copied from interface: ScheduledTransaction
Returns the scheduled month. This may have different meanings depending on the frequency type.

Specified by:
getScheduleMonth in interface ScheduledTransaction
Returns:

getScheduleName

public java.lang.String getScheduleName()
Description copied from interface: ScheduledTransaction
Returns the name of this scheduled transaction. This is the name which shows up in the main scheduled transaction list.

Specified by:
getScheduleName in interface ScheduledTransaction
Returns:

getScheduleWeek

public int getScheduleWeek()
Description copied from interface: ScheduledTransaction
Returns the scheduled week. This may have different meanings depending on the frequency type.

Specified by:
getScheduleWeek in interface ScheduledTransaction
Returns:

getStartDate

public java.util.Date getStartDate()
Description copied from interface: ScheduledTransaction
Returns the date on which this scheduled transaction is to start.

Specified by:
getStartDate in interface ScheduledTransaction
Returns:

setEndDate

public void setEndDate(java.util.Date endDate)
Description copied from interface: ScheduledTransaction
Sets the end date for this scheduled transaction.

Specified by:
setEndDate in interface ScheduledTransaction

setFrequencyType

public void setFrequencyType(java.lang.String frequencyType)
Description copied from interface: ScheduledTransaction
Sets the frequency type for this scheduled transaction. This must be the string representation of one of the ScheduleFrequency enum values.

Specified by:
setFrequencyType in interface ScheduledTransaction

setLastDayCreated

public void setLastDayCreated(java.util.Date lastDayCreated)
Description copied from interface: ScheduledTransaction
Sets the last day created. This is used to keep track of where we left off with the last scheduled transaction, to avoid duplicates and keep the time needed to run schedule checks to a minimum.

Specified by:
setLastDayCreated in interface ScheduledTransaction

setMessage

public void setMessage(java.lang.String message)
Description copied from interface: ScheduledTransaction
Sets the message

Specified by:
setMessage in interface ScheduledTransaction

setScheduleDay

public void setScheduleDay(int scheduleDay)
Description copied from interface: ScheduledTransaction
Sets the schedule day. This has different meanings based on the schedule frequency.

Specified by:
setScheduleDay in interface ScheduledTransaction

setScheduleMonth

public void setScheduleMonth(int scheduleMonth)
Description copied from interface: ScheduledTransaction
Sets the schedule month. This has different meanings based on the schedule frequency.

Specified by:
setScheduleMonth in interface ScheduledTransaction

setScheduleName

public void setScheduleName(java.lang.String scheduleName)
Description copied from interface: ScheduledTransaction
Sets the scheduled transaction name

Specified by:
setScheduleName in interface ScheduledTransaction

setScheduleWeek

public void setScheduleWeek(int scheduleWeek)
Description copied from interface: ScheduledTransaction
Sets the schedule week. This has different meanings based on the schedule frequency.

Specified by:
setScheduleWeek in interface ScheduledTransaction

setStartDate

public void setStartDate(java.util.Date startDate)
Description copied from interface: ScheduledTransaction
Sets the start date for this scheduled transaction.

Specified by:
setStartDate in interface ScheduledTransaction