2020-07-26 17:38:33 +05:30
|
|
|
package com.ashishtrivedi16.transactionscript;
|
2020-07-26 15:56:55 +05:30
|
|
|
|
|
|
|
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;
|
|
|
|
}
|