Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
IDaoLendings |
|
| 1.0;1 |
1 | package org.jtheque.primary.dao.able; | |
2 | ||
3 | /* | |
4 | * This file is part of JTheque. | |
5 | * | |
6 | * JTheque is free software: you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License as published by | |
8 | * the Free Software Foundation, either version 3 of the License. | |
9 | * | |
10 | * JTheque is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | * GNU General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU General Public License | |
16 | * along with JTheque. If not, see <http://www.gnu.org/licenses/>. | |
17 | */ | |
18 | ||
19 | import org.jtheque.core.managers.persistence.able.JThequeDao; | |
20 | import org.jtheque.primary.od.able.Lending; | |
21 | ||
22 | import java.util.Collection; | |
23 | ||
24 | /** | |
25 | * A DAO for types specification. | |
26 | * | |
27 | * @author Baptiste Wicht | |
28 | */ | |
29 | public interface IDaoLendings extends JThequeDao { | |
30 | String TABLE = "T_LENDINGS"; | |
31 | ||
32 | /** | |
33 | * Return the lending with the specified ID. | |
34 | * | |
35 | * @param id The ID of the searched lending. | |
36 | * | |
37 | * @return The lending. | |
38 | */ | |
39 | Lending getLending(int id); | |
40 | ||
41 | /** | |
42 | * Create the lending. | |
43 | * | |
44 | * @param lending The lending to create. | |
45 | */ | |
46 | void create(Lending lending); | |
47 | ||
48 | /** | |
49 | * Delete the lending. | |
50 | * | |
51 | * @param lending The lending to delete. | |
52 | * | |
53 | * @return true if the object is deleted else false. | |
54 | */ | |
55 | boolean delete(Lending lending); | |
56 | ||
57 | /** | |
58 | * Return all the lendings. | |
59 | * | |
60 | * @return All the lendings. | |
61 | */ | |
62 | Collection<Lending> getLendings(); | |
63 | ||
64 | /** | |
65 | * Save the specified lending. | |
66 | * | |
67 | * @param lending The lending to save. | |
68 | */ | |
69 | void save(Lending lending); | |
70 | ||
71 | /** | |
72 | * Create the lending. | |
73 | * | |
74 | * @return The created lending. | |
75 | */ | |
76 | Lending createLending(); | |
77 | } |