-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathController.java
More file actions
46 lines (32 loc) · 932 Bytes
/
Controller.java
File metadata and controls
46 lines (32 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package project;
import java.util.Collection;
import java.util.Map;
public class Controller {
private static DAO<Hotel> hotelDAO = new HotelDAO();
private static DAO<Room> roomDAO = new RoomDAO();
private static DAO<User> userDAO = new UserDAO();
public Collection<Hotel> findHotelByName(String name) {
try {
}
return null;
}
public Collection<Hotel> findHotelByCity(String city) {
return null;
}
public void bookRoom(long roomId, long userId, long hotelId) {
}
public void cancelReservation(long roomId, long userId, long hotelId) {
}
public Collection<Room> findRoom(Map<String, String> params) {
return null;
}
public boolean registerUser(User user) {
return false;
}
public boolean addRoom(Room room){
return false;
}
public boolean logInUser(User user) {
return false;
}
}