andyshon

BusDAO.java

Oct 4th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 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 02.10.2017.
  8.  */
  9. public interface BusDAO {
  10.     public void addBus(Bus bus) throws SQLException;
  11.     public void updateBus(int bus_id, Bus bus) throws SQLException;
  12.     public Bus getBusById(int bus_id) throws SQLException;
  13.     public Collection getAllBusses() throws SQLException;
  14.     public void deleteBus(Bus bus) throws SQLException;
  15.     public Collection getBussesByDriver(Driver driver) throws SQLException;
  16.     public Collection getBussesByRoute(Route route) throws SQLException;
  17. }
Add Comment
Please, Sign In to add comment