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;
}
|