FileDocCategorySizeDatePackage
RentABike.javaAPI DocExample978Mon Apr 25 09:41:42 BST 2005com.springbook

RentABike.java

package com.springbook;

import com.springbook.exceptions.ReservationTransferException;
import com.springbook.exceptions.AddReservationException;

import java.util.List;
import java.util.Date;

public interface RentABike {
   List getBikes();
   Bike getBike(String serialNo);
   Bike getBike(int bikeId);
   void setStoreName(String name);
   void saveBike(Bike bike);
   void deleteBike(Bike bike);
   String getStoreName();
   void transferReservation(Reservation oldRes, Reservation newRes) throws ReservationTransferException;

   List getCustomers();

   Customer getCustomer(int custId);

   void saveCustomer(Customer customer);

   void deleteCustomer(Customer customer);

   List getReservations();

   List getReservations(Customer customer);

   List getReservations(Bike bike);

   List getReservations(Date date);

   Reservation getReservation(int resId);

   void addReservation(Reservation reservation, double amount)
         throws AddReservationException;
}