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

Quick Search    Search Deep

list
Class ListLoans  view ListLoans download ListLoans.java

java.lang.Object
  extended bylist.ListLoans

public class ListLoans
extends java.lang.Object

Class ListLoans


Field Summary
private  java.lang.String FICHIER
           
private static ListLoans myListLoans
           
private  java.util.Vector theLoans
           
 
Constructor Summary
private ListLoans()
          Create a listLoan
 
Method Summary
 boolean addNewLoan(datas.Borrower theBorrower, datas.Item theItem)
          Method addNewLoan add a new loan of the specified item.
 void addNewLoan(datas.Loan theLoan)
          Method addNewLoan add the loan.
 boolean deleteTheLoan(datas.Loan theLoan)
          Method deleteTheLoan delete the specified loan.
 boolean deleteTheLoan(datas.Title title, java.lang.String lastname)
          Method deleteTheLoan delete the loan associated with the specified title and borrower lastname.
 java.util.Vector findTheBorrowerLoan(datas.Borrower borrower)
          Method findTheBorrowerLoan find the loan associated to the borrower.
 datas.Loan findTheLoan(datas.Item theItem)
          Method findTheLoan find the loan of the specified item.
static ListLoans getHandle()
          Method getHandle return the unique object listLoans
 boolean readListFromDisk()
          Method readListFromDisk read the data of the listLoans from the disk.
 boolean writeListToDisk()
          Method writeListToDisk write the data of the listLoans to the disk.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FICHIER

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

theLoans

private java.util.Vector theLoans

myListLoans

private static ListLoans myListLoans
Constructor Detail

ListLoans

private ListLoans()
Create a listLoan

Method Detail

getHandle

public static ListLoans getHandle()
Method getHandle return the unique object listLoans


findTheLoan

public datas.Loan findTheLoan(datas.Item theItem)
Method findTheLoan find the loan of the specified item.


addNewLoan

public boolean addNewLoan(datas.Borrower theBorrower,
                          datas.Item theItem)
Method addNewLoan add a new loan of the specified item.


addNewLoan

public void addNewLoan(datas.Loan theLoan)
Method addNewLoan add the loan.


deleteTheLoan

public boolean deleteTheLoan(datas.Loan theLoan)
Method deleteTheLoan delete the specified loan.


deleteTheLoan

public boolean deleteTheLoan(datas.Title title,
                             java.lang.String lastname)
Method deleteTheLoan delete the loan associated with the specified title and borrower lastname.


findTheBorrowerLoan

public java.util.Vector findTheBorrowerLoan(datas.Borrower borrower)
Method findTheBorrowerLoan find the loan associated to the borrower.


readListFromDisk

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


writeListToDisk

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