|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgnash.engine.StoredObject
jgnash.engine.recurring.Reminder
public abstract class Reminder
This is an abstract class for scheduled reminders.
| Field Summary | |
|---|---|
private Account |
account
|
private boolean |
autoCreate
Create the transaction automatically |
private boolean |
autoCreateNotify
Display notice of the automatically created transaction |
private int |
daysAdvance
Number of days to notify in advance |
private java.lang.String |
description
Description for this reminder |
private boolean |
enabled
Enabled state |
private java.util.Date |
endDate
The last date the reminder will stop executing, may be null (Bug #2860259) |
private int |
increment
Number of periods to increment between events |
private java.util.Date |
lastDate
The last date the reminder was executed It should remain an increment of the iterator for correct operation |
private java.lang.String |
notes
Notes for this reminder |
private boolean |
removable
Delete on completion |
private static long |
serialVersionUID
|
private java.util.Date |
startDate
The start date of this reminder |
private Transaction |
transaction
Reference to the transaction for this reminder. |
| Constructor Summary | |
|---|---|
Reminder()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
int |
compareTo(Reminder reminder)
|
boolean |
equals(java.lang.Object obj)
Default equals override |
Account |
getAccount()
|
int |
getDaysAdvance()
|
java.lang.String |
getDescription()
|
java.util.Date |
getEndDate()
|
int |
getIncrement()
|
abstract RecurringIterator |
getIterator()
|
java.util.Date |
getLastDate()
|
java.lang.String |
getNotes()
|
abstract ReminderType |
getReminderType()
|
java.util.Date |
getStartDate()
|
Transaction |
getTransaction()
Returns a clone of the transaction. |
int |
hashCode()
Overrides the super and returns the object id. |
boolean |
isAutoCreate()
|
boolean |
isAutoCreateNotify()
|
boolean |
isEnabled()
Getter for property enabled. |
boolean |
isRemovable()
|
void |
setAccount(Account account)
|
void |
setAutoCreate(boolean autoCreate)
|
void |
setAutoCreateNotify(boolean autoCreateNotify)
|
void |
setDaysAdvance(int advanceRemindDays)
|
void |
setDescription(java.lang.String description)
|
void |
setEnabled(boolean enabled)
Setter for property enabled. |
void |
setEndDate(java.util.Date endDate)
|
void |
setIncrement(int increment)
|
java.util.Date |
setLastDate()
Sets the last date fired to the next iterator date in the series |
private void |
setLastDate(java.util.Date lastDate)
|
void |
setNotes(java.lang.String notes)
|
void |
setRemovable(boolean removable)
|
void |
setStartDate(java.util.Date startDate)
|
void |
setTransaction(Transaction transaction)
|
java.lang.String |
toString()
|
| Methods inherited from class jgnash.engine.StoredObject |
|---|
getUuid, isMarkedForRemoval |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private int daysAdvance
private boolean autoCreate
private boolean autoCreateNotify
private java.lang.String description
private boolean enabled
private java.util.Date endDate
private int increment
private java.util.Date lastDate
private java.lang.String notes
private boolean removable
private java.util.Date startDate
private Account account
private Transaction transaction
| Constructor Detail |
|---|
public Reminder()
| Method Detail |
|---|
public int compareTo(Reminder reminder)
compareTo in interface java.lang.Comparable<Reminder>public int getDaysAdvance()
public java.lang.String getDescription()
public java.util.Date getEndDate()
public abstract RecurringIterator getIterator()
public java.util.Date getLastDate()
public java.util.Date getStartDate()
public Transaction getTransaction()
public abstract ReminderType getReminderType()
public final int hashCode()
hashCode in class StoredObjectObject.hashCode()public boolean equals(java.lang.Object obj)
StoredObject
equals in class StoredObjectobj - object to compareObject.equals(java.lang.Object)public boolean isAutoCreate()
public boolean isAutoCreateNotify()
public boolean isEnabled()
public boolean isRemovable()
public void setDaysAdvance(int advanceRemindDays)
advanceRemindDays - The advanceRemindDays to set.public void setAutoCreate(boolean autoCreate)
autoCreate - The autoCreate to set.public void setAutoCreateNotify(boolean autoCreateNotify)
autoCreateNotify - The autoCreateNotify to set.public void setDescription(java.lang.String description)
description - The description to set.public void setEnabled(boolean enabled)
enabled - New value of property enabled.public void setEndDate(java.util.Date endDate)
endDate - The last date the reminder should execute.private void setLastDate(java.util.Date lastDate)
lastDate - The lastDate to set.public java.util.Date setLastDate()
public void setRemovable(boolean removable)
removable - The removable to set.public void setStartDate(java.util.Date startDate)
startDate - The startDate to set.public void setTransaction(Transaction transaction)
transaction - The transaction to set.public int getIncrement()
public void setIncrement(int increment)
increment - The increment to set.public java.lang.String toString()
toString in class java.lang.Objectpublic void setNotes(java.lang.String notes)
notes - The notes to set.public java.lang.String getNotes()
public void setAccount(Account account)
account - base account for this Reminderpublic Account getAccount()
public java.lang.Object clone()
clone in class StoredObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||