Skip to content

Commit dacb3d3

Browse files
committed
java doc for IFlashcardDataAccess
1 parent 09a7767 commit dacb3d3

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

src/main/java/data_access/IFlashcardDataAccess.java

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,29 @@
22

33
import data_access.entity_request_models.FlashcardDsRequestModel;
44

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+
*/
1120
int saveFlashcard(FlashcardDsRequestModel flashcard);
12-
21+
/**
22+
* @param flashcard the flashcard object that will be edited.
23+
*/
1324
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);
1629

1730
}

0 commit comments

Comments
 (0)