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