andyshon

DriverDAO.java

Oct 4th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1. package com.andyshon;
  2.  
  3. import java.sql.SQLException;
  4. import java.util.Collection;
  5.  
  6. /**
  7.  * Created by andys_000 on 03.10.2017.
  8.  */
  9. public interface DriverDAO {
  10.     public void addDriver(Driver driver) throws SQLException;
  11.     public void updateDriver(int driver_id, Driver driver) throws SQLException;
  12.     public Driver getDriverById(int driver_id) throws SQLException;
  13.     public Collection getAllDrivers() throws SQLException;
  14.     public void deleteDriver(Driver driver) throws SQLException;
  15.  
  16.     Collection getDriversByBus(Bus bus) throws SQLException;
  17.     //public Collection getBussesByDriver(Driver driver) throws SQLException;
  18.     //public Collection getBussesByRoute(Route route) throws SQLException;
  19. }
Add Comment
Please, Sign In to add comment