File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
src/java/fr/paris/lutece/plugins/grubusiness/business/demand Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,6 @@ public interface IDemandServiceProvider
53
53
*/
54
54
public void setDemandDao ( IDemandDAO dao );
55
55
56
- /**
57
- * init DAO
58
- *
59
- * @param dao
60
- */
61
- public void setDemandTypeDao ( IDemandTypeDAO dao );
62
-
63
56
/**
64
57
* init DAO
65
58
*
@@ -185,12 +178,12 @@ public interface IDemandServiceProvider
185
178
public List <DemandType > getDemandTypesList ( );
186
179
187
180
/**
188
- * get demand type
181
+ * get demand type by type_id
189
182
*
190
183
* @param id
191
184
* @return the demand type as optional
192
185
*/
193
- public Optional <DemandType > getDemandType ( int id );
186
+ public Optional <DemandType > getDemandType ( String type_id );
194
187
195
188
/**
196
189
* get demand Ids by customer Id and demand Type
Original file line number Diff line number Diff line change @@ -77,6 +77,15 @@ public interface IDemandTypeDAO
77
77
*/
78
78
Optional <DemandType > load ( int nKey );
79
79
80
+ /**
81
+ * Load the data from the table by type_id
82
+ *
83
+ * @param sKey
84
+ * The type_id of the demandType
85
+ * @return The instance of the demandType
86
+ */
87
+ Optional <DemandType > selectByTypeId ( String sKey );
88
+
80
89
/**
81
90
* Load the data of all the demandType objects and returns them as a list
82
91
*
You can’t perform that action at this time.
0 commit comments