File tree Expand file tree Collapse file tree 1 file changed +22
-9
lines changed
src/main/java/data_access Expand file tree Collapse file tree 1 file changed +22
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import data_access .entity_request_models .FlashcardDsRequestModel ;
4
4
5
- // use case layer
6
-
7
- public interface IFlashcardDataAccess {
8
-
9
- FlashcardDsRequestModel getFlashcard (Integer flashcardID );
10
-
5
+ /**
6
+ * User Data Access Interface.
7
+ * Application Business Rules
8
+ * @author Justin Li
9
+ */
10
+
11
+ public interface IFlashcardDataAccess {
12
+ /**
13
+ * @param flashcardId the id of the flashcard.
14
+ * @return the flashcard object with the given id.
15
+ */
16
+ FlashcardDsRequestModel getFlashcard (Integer flashcardId );
17
+ /**
18
+ * @param flashcard the flashcard object that will be created.
19
+ */
11
20
int saveFlashcard (FlashcardDsRequestModel flashcard );
12
-
21
+ /**
22
+ * @param flashcard the flashcard object that will be edited.
23
+ */
13
24
void editFlashcard (FlashcardDsRequestModel flashcard );
14
-
15
- void deleteFlashcard (Integer flashcardID );
25
+ /**
26
+ * @param flashcardId the id of the flashcard that will be deleted.
27
+ */
28
+ void deleteFlashcard (Integer flashcardId );
16
29
17
30
}
You can’t perform that action at this time.
0 commit comments