de.h_da.library.datamanagement.entity
Class Reminder

java.lang.Object
  extended by de.h_da.library.datamanagement.entity.Reminder

public class Reminder
extends java.lang.Object

[entity] This entity represents a reminder for a delayed book return.


Field Summary
private  java.util.Date dueDate
          Date when the fee is to be paid.
private  int fee
          Reminder fee to be paid in Euro cents.
private  int invoiceId
          Id of the invoice in the accounting component that was generated for the reminder.
private  java.util.Date issueDate
          Date when the reminder was issued.
private  Loan loan
          The delayed loan that caused the reminder
private  ReminderStatus status
          Status of the reminder (ACTIVE, CLOSED).
 
Constructor Summary
Reminder()
           
 
Method Summary
 void close()
          Closes the reminder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dueDate

private java.util.Date dueDate
Date when the fee is to be paid.


fee

private int fee
Reminder fee to be paid in Euro cents.


invoiceId

private int invoiceId
Id of the invoice in the accounting component that was generated for the reminder.


issueDate

private java.util.Date issueDate
Date when the reminder was issued.


loan

private Loan loan
The delayed loan that caused the reminder


status

private ReminderStatus status
Status of the reminder (ACTIVE, CLOSED).

Constructor Detail

Reminder

public Reminder()
Method Detail

close

public void close()
Closes the reminder.
 [pre this.status == ACTIVE
  post this.status == CLOSED
 ]