org.homeunix.thecave.buddi.plugin.api.model.impl
Class MutableScheduledTransactionImpl

java.lang.Object
  extended by org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableModelObjectImpl
      extended by org.homeunix.thecave.buddi.plugin.api.model.impl.MutableModelObjectImpl
          extended by org.homeunix.thecave.buddi.plugin.api.model.impl.MutableTransactionImpl
              extended by org.homeunix.thecave.buddi.plugin.api.model.impl.MutableScheduledTransactionImpl
All Implemented Interfaces:
java.lang.Comparable<ImmutableModelObject>, ImmutableModelObject, ImmutableScheduledTransaction, ImmutableTransaction, MutableScheduledTransaction, MutableTransaction

public class MutableScheduledTransactionImpl
extends MutableTransactionImpl
implements MutableScheduledTransaction


Constructor Summary
MutableScheduledTransactionImpl(ScheduledTransaction scheduledTransaction)
           
 
Method Summary
 java.util.Date getEndDate()
          Returns the end date of the scheduled transaction.
 java.lang.String getFrequencyType()
          Returns the frequncy type.
 java.util.Date getLastDayCreated()
          Returns the last day which this scheduled transaction was used on.
 java.lang.String getMessage()
          Returns the message associated with the scheduled transaction.
 int getScheduleDay()
          Returns an integer representation of the scheduled transaction day.
 ScheduledTransaction getScheduledTransaction()
          Returns the wrapped object from the underlying data model.
 int getScheduleMonth()
          Returns an integer representation of the scheduled transaction month.
 java.lang.String getScheduleName()
          Returns the name of this scheduled transaction.
 int getScheduleWeek()
          Returns an integer representation of the scheduled transaction week.
 java.util.Date getStartDate()
          Returns the starting day of this scheduled transaction.
 void setEndDate(java.util.Date endDate)
          Sets the end date of the scheduled transaction.
 void setFrequencyType(java.lang.String frequencyType)
          Sets the frequncy type.
 void setLastDayCreated(java.util.Date lastDayCreated)
          Sets the last day which this scheduled transaction was used on.
 void setMessage(java.lang.String message)
          Sets the message associated with the scheduled transaction.
 void setScheduleDay(int scheduleDay)
          Sets an integer representation of the scheduled transaction day.
 void setScheduleMonth(int scheduleMonth)
          Sets an integer representation of the scheduled transaction month.
 void setScheduleName(java.lang.String scheduleName)
          Sets the name of this scheduled transaction.
 void setScheduleWeek(int scheduleWeek)
          Sets an integer representation of the scheduled transaction week.
 void setStartDate(java.util.Date startDate)
          Returns the starting day of this scheduled transaction.
 
Methods inherited from class org.homeunix.thecave.buddi.plugin.api.model.impl.MutableTransactionImpl
equals, getAmount, getBalanceFrom, getBalanceTo, getDate, getDescription, getFrom, getMemo, getNumber, getTo, getTransaction, isClearedFrom, isClearedTo, isDeleted, isInflow, isReconciledFrom, isReconciledTo, isScheduled, setAmount, setClearedFrom, setClearedTo, setDate, setDeleted, setDescription, setFrom, setMemo, setNumber, setReconciledFrom, setReconciledTo, setScheduled, setTo
 
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.MutableTransaction
getFrom, getTo, setAmount, setClearedFrom, setClearedTo, setDate, setDeleted, setDescription, setFrom, setMemo, setNumber, setReconciledFrom, setReconciledTo, setScheduled, setTo
 
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
 
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
 

Constructor Detail

MutableScheduledTransactionImpl

public MutableScheduledTransactionImpl(ScheduledTransaction scheduledTransaction)
Method Detail

getScheduledTransaction

public ScheduledTransaction getScheduledTransaction()
Description copied from interface: ImmutableScheduledTransaction
Returns the wrapped object from the underlying data model. By accessing this method, you bypass all protection which the Buddi API gives you; it is not recommended to use this method unless you understand the risks associated with it.

Specified by:
getScheduledTransaction in interface ImmutableScheduledTransaction
Returns:

getEndDate

public java.util.Date getEndDate()
Description copied from interface: ImmutableScheduledTransaction
Returns the end date of the scheduled transaction. After this date, the transaction is no longer active (although it stays in the list). As of August 31 2007, this method is not used, but is here for a future release which will support it.

Specified by:
getEndDate in interface ImmutableScheduledTransaction
Returns:

getFrequencyType

public java.lang.String getFrequencyType()
Description copied from interface: ImmutableScheduledTransaction
Returns the frequncy type. This is a string representation of one of the ScheduleFrequency enum values.

Specified by:
getFrequencyType in interface ImmutableScheduledTransaction
Returns:

getLastDayCreated

public java.util.Date getLastDayCreated()
Description copied from interface: ImmutableScheduledTransaction
Returns the last day which this scheduled transaction was used on. This is used to determine where to start looking for the next iteration.

Specified by:
getLastDayCreated in interface ImmutableScheduledTransaction
Returns:

getMessage

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

Specified by:
getMessage in interface ImmutableScheduledTransaction
Returns:

getScheduleDay

public int getScheduleDay()
Description copied from interface: ImmutableScheduledTransaction
Returns an integer representation of the scheduled transaction day. Depending on the value of getFrequencyType(), this value may mean different things, or may not be used at all.

Specified by:
getScheduleDay in interface ImmutableScheduledTransaction
Returns:

getScheduleMonth

public int getScheduleMonth()
Description copied from interface: ImmutableScheduledTransaction
Returns an integer representation of the scheduled transaction month. Depending on the value of getFrequencyType(), this value may mean different things, or may not be used at all.

Specified by:
getScheduleMonth in interface ImmutableScheduledTransaction
Returns:

getScheduleName

public java.lang.String getScheduleName()
Description copied from interface: ImmutableScheduledTransaction
Returns the name of this scheduled transaction. This is the name which will appear in the list of scheduled transactions.

Specified by:
getScheduleName in interface ImmutableScheduledTransaction
Returns:

getScheduleWeek

public int getScheduleWeek()
Description copied from interface: ImmutableScheduledTransaction
Returns an integer representation of the scheduled transaction week. Depending on the value of getFrequencyType(), this value may mean different things, or may not be used at all.

Specified by:
getScheduleWeek in interface ImmutableScheduledTransaction
Returns:

getStartDate

public java.util.Date getStartDate()
Description copied from interface: ImmutableScheduledTransaction
Returns the starting day of this scheduled transaction. No transactions will be added before this date.

Specified by:
getStartDate in interface ImmutableScheduledTransaction
Returns:

setEndDate

public void setEndDate(java.util.Date endDate)
                throws InvalidValueException
Description copied from interface: MutableScheduledTransaction
Sets the end date of the scheduled transaction. After this date, the transaction is no longer active (although it stays in the list). As of August 31 2007, this method is not used, but is here for a future release which will support it.

Specified by:
setEndDate in interface MutableScheduledTransaction
Throws:
InvalidValueException

setFrequencyType

public void setFrequencyType(java.lang.String frequencyType)
                      throws InvalidValueException
Description copied from interface: MutableScheduledTransaction
Sets the frequncy type. This is a string representation of one of the ScheduleFrequency enum values.

Specified by:
setFrequencyType in interface MutableScheduledTransaction
Throws:
InvalidValueException

setLastDayCreated

public void setLastDayCreated(java.util.Date lastDayCreated)
                       throws InvalidValueException
Description copied from interface: MutableScheduledTransaction
Sets the last day which this scheduled transaction was used on. This is used to determine where to start looking for the next iteration.

Specified by:
setLastDayCreated in interface MutableScheduledTransaction
Throws:
InvalidValueException

setMessage

public void setMessage(java.lang.String message)
                throws InvalidValueException
Description copied from interface: MutableScheduledTransaction
Sets the message associated with the scheduled transaction.

Specified by:
setMessage in interface MutableScheduledTransaction
Throws:
InvalidValueException

setScheduleDay

public void setScheduleDay(int scheduleDay)
                    throws InvalidValueException
Description copied from interface: MutableScheduledTransaction
Sets an integer representation of the scheduled transaction day. Depending on the value of getFrequencyType(), this value may mean different things, or may not be used at all.

Specified by:
setScheduleDay in interface MutableScheduledTransaction
Throws:
InvalidValueException

setScheduleMonth

public void setScheduleMonth(int scheduleMonth)
                      throws InvalidValueException
Description copied from interface: MutableScheduledTransaction
Sets an integer representation of the scheduled transaction month. Depending on the value of getFrequencyType(), this value may mean different things, or may not be used at all.

Specified by:
setScheduleMonth in interface MutableScheduledTransaction
Throws:
InvalidValueException

setScheduleName

public void setScheduleName(java.lang.String scheduleName)
                     throws InvalidValueException
Description copied from interface: MutableScheduledTransaction
Sets the name of this scheduled transaction. This is the name which will appear in the list of scheduled transactions.

Specified by:
setScheduleName in interface MutableScheduledTransaction
Throws:
InvalidValueException

setScheduleWeek

public void setScheduleWeek(int scheduleWeek)
                     throws InvalidValueException
Description copied from interface: MutableScheduledTransaction
Sets an integer representation of the scheduled transaction week. Depending on the value of getFrequencyType(), this value may mean different things, or may not be used at all.

Specified by:
setScheduleWeek in interface MutableScheduledTransaction
Throws:
InvalidValueException

setStartDate

public void setStartDate(java.util.Date startDate)
                  throws InvalidValueException
Description copied from interface: MutableScheduledTransaction
Returns the starting day of this scheduled transaction. No transactions will be added before this date.

Specified by:
setStartDate in interface MutableScheduledTransaction
Throws:
InvalidValueException