package com.ashishtrivedi16.transactionscript.db; import com.ashishtrivedi16.transactionscript.Room; import java.util.Optional; import java.util.stream.Stream; public interface HotelDao { Stream getAll() throws Exception; Optional getById(int id) throws Exception; Boolean add(Room room) throws Exception; Boolean update(Room room) throws Exception; Boolean delete(Room room) throws Exception; }