com.moneydance.apps.md.model
Class TransactionReminder

java.lang.Object
  extended by com.moneydance.apps.md.model.Reminder
      extended by com.moneydance.apps.md.model.TransactionReminder

public class TransactionReminder
extends Reminder

A TransactionReminder contains a 'template' transaction that is recorded according to a schedule.


Field Summary
 
Fields inherited from class com.moneydance.apps.md.model.Reminder
BASIC_REMINDER_TYPE, LAST_DAY_OF_MONTH, MONTHLY_EVERY, MONTHLY_EVERY_FOURTH, MONTHLY_EVERY_OTHER, MONTHLY_EVERY_SIXTH, MONTHLY_EVERY_THIRD, REPEAT_BY_DAY_OF_MONTH, REPEAT_BY_DAY_OF_WEEK, REPEAT_BY_EVERY_YEAR, REPEAT_BY_NDAYS, REPEAT_BY_NONE, TXN_REMINDER_TYPE, WEEKLY_EVERY, WEEKLY_EVERY_FIFTH, WEEKLY_EVERY_FIRST, WEEKLY_EVERY_FOURTH, WEEKLY_EVERY_LAST, WEEKLY_EVERY_SECOND, WEEKLY_EVERY_THIRD
 
Constructor Summary
TransactionReminder(long id, java.lang.String description, int initialDate, int dateAcked, int lastDate, int[] daysOfWeek, int daysOfWeekModifier, int[] daysOfMonth, int everyNDays, boolean everyYear, ParentTxn txn)
           
TransactionReminder(long id, java.lang.String description, long initialDate, long dateAcked, long lastDate, int[] daysOfWeek, int daysOfWeekModifier, int[] daysOfMonth, int everyNDays, boolean everyYear, ParentTxn txn)
          Deprecated. use TransactionReminder(long, String, int, int, int, int, int, int[], int, boolean, ParentTxn) instead
 
Method Summary
 int getAutoCommitDays()
          Return the number of days prior to this transactions scheduled date that we should automatically add it to the transaction set.
 int getReminderType()
           
 ParentTxn getTransaction()
           
 boolean isDirty()
           
 boolean isLoanReminder()
           
 void resetDirty()
           
 void setAutoCommitDays(int autoCommitDays)
          Set the number of days prior to this transactions scheduled date that we should automatically add it to the transaction set.
 void setLoan(boolean loan)
           
 
Methods inherited from class com.moneydance.apps.md.model.Reminder
getDateAcknowledged, getDateAcknowledgedInt, getDescription, getId, getInitialDate, getInitialDateInt, getLastDate, getLastDateInt, getNextOccurance, getPastDueDates, getRepeatDaily, getRepeatMonthly, getRepeatMonthlyModifier, getRepeatWeeklyDays, getRepeatWeeklyModifier, getRepeatYearly, getTags, hasBeenAcknowledged, hasBeenAcknowledgedInt, occursOnDate, setAcknowledged, setAcknowledgedInt, setDescription, setDirty, setId, setInitialDate, setInitialDateInt, setLastDate, setLastDateInt, setRepeatDaily, setRepeatMonthly, setRepeatWeekly, setRepeatYearly, setTags, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionReminder

public TransactionReminder(long id,
                           java.lang.String description,
                           long initialDate,
                           long dateAcked,
                           long lastDate,
                           int[] daysOfWeek,
                           int daysOfWeekModifier,
                           int[] daysOfMonth,
                           int everyNDays,
                           boolean everyYear,
                           ParentTxn txn)
Deprecated. use TransactionReminder(long, String, int, int, int, int, int, int[], int, boolean, ParentTxn) instead

Construct a new TransactionReminder.


TransactionReminder

public TransactionReminder(long id,
                           java.lang.String description,
                           int initialDate,
                           int dateAcked,
                           int lastDate,
                           int[] daysOfWeek,
                           int daysOfWeekModifier,
                           int[] daysOfMonth,
                           int everyNDays,
                           boolean everyYear,
                           ParentTxn txn)
Method Detail

getReminderType

public int getReminderType()
Specified by:
getReminderType in class Reminder

getTransaction

public ParentTxn getTransaction()

getAutoCommitDays

public int getAutoCommitDays()
Return the number of days prior to this transactions scheduled date that we should automatically add it to the transaction set. Returns -1 if the transaction should not auto-commit.


setAutoCommitDays

public void setAutoCommitDays(int autoCommitDays)
Set the number of days prior to this transactions scheduled date that we should automatically add it to the transaction set. Set to -1 (or any negative number) if the transaction should not auto-commit.


isLoanReminder

public boolean isLoanReminder()

setLoan

public void setLoan(boolean loan)

isDirty

public boolean isDirty()
Overrides:
isDirty in class Reminder

resetDirty

public void resetDirty()
Overrides:
resetDirty in class Reminder