Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

list
Class ListReservations  view ListReservations download ListReservations.java

java.lang.Object
  extended bylist.ListReservations

public class ListReservations
extends java.lang.Object

Class ListReservation


Field Summary
private  java.lang.String FICHIER
           
private static ListReservations listReservations
           
private  java.util.Vector theReservations
           
 
Constructor Summary
private ListReservations()
          Create the list
 
Method Summary
 boolean addNewReservation(datas.Reservation reservation)
          Method addNewReservation add a new reservation.
 boolean deleteTheReservation(datas.Reservation reservation)
          Method deleteTheReservation delete the reservation.
 java.util.Vector findTheBorrowerReservation(datas.Borrower borrower)
          Method findTheBorrowerReservation find all the reservation of the borrower.
 datas.Reservation findTheReservation(datas.Title title)
          Method findTheReservation find the reservation of the title.
static ListReservations getHandle()
          Method getHandle return the unique object listReservation.
 boolean readListFromDisk()
          Method readListFromDisk read the data of the listReservations from the disk.
 boolean writeListToDisk()
          Method writeListToDisk write the data of the listReservations to the disk.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listReservations

private static ListReservations listReservations

theReservations

private java.util.Vector theReservations

FICHIER

private final java.lang.String FICHIER
See Also:
Constant Field Values
Constructor Detail

ListReservations

private ListReservations()
Create the list

Method Detail

getHandle

public static ListReservations getHandle()
Method getHandle return the unique object listReservation.


addNewReservation

public boolean addNewReservation(datas.Reservation reservation)
Method addNewReservation add a new reservation.


findTheReservation

public datas.Reservation findTheReservation(datas.Title title)
Method findTheReservation find the reservation of the title.


findTheBorrowerReservation

public java.util.Vector findTheBorrowerReservation(datas.Borrower borrower)
Method findTheBorrowerReservation find all the reservation of the borrower.


deleteTheReservation

public boolean deleteTheReservation(datas.Reservation reservation)
Method deleteTheReservation delete the reservation.


readListFromDisk

public boolean readListFromDisk()
Method readListFromDisk read the data of the listReservations from the disk.


writeListToDisk

public boolean writeListToDisk()
Method writeListToDisk write the data of the listReservations to the disk.