Skip to content

Commit 09a7767

Browse files
committed
java doc for IFlashcardSetDataAccess
1 parent e92d07b commit 09a7767

File tree

2 files changed

+36
-12
lines changed

2 files changed

+36
-12
lines changed

src/main/java/data_access/IFlashcardSetDataAccess.java

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,45 @@
22

33
import data_access.entity_request_models.FlashcardSetDsRequestModel;
44

5-
// use case layer
5+
/**
6+
* User Data Access Interface.
7+
* Application Business Rules
8+
* @author Justin Li
9+
*/
10+
611
public interface IFlashcardSetDataAccess {
712

13+
/**
14+
* @param flashcardSetId the id of the flashcard set.
15+
* @return the flashcardSet object by the id given.
16+
*/
817
FlashcardSetDsRequestModel getFlashcardSet(int flashcardSetId);
9-
18+
/**
19+
* @param flashcardSetId the id of the flashcard set.
20+
* @return the title and description of the flashcard set.
21+
*/
1022
String[] getTitleAndDescription(int flashcardSetId);
11-
23+
/**
24+
* @param flashcardSet the flashcard set object.
25+
*/
1226
void editTitleAndDescription(FlashcardSetDsRequestModel flashcardSet);
13-
27+
/**
28+
* @param flashcardSetId the id of the flashcard set.
29+
* @param flashcardId the id of the flashcard that will be added.
30+
*/
1431
void saveFlashcardID(int flashcardSetId, int flashcardId);
15-
32+
/**
33+
* @param flashcardSetId the id of the flashcard set.
34+
* @param flashcardId the id of the flashcard that will be removed.
35+
*/
1636
void removeFlashcardId(int flashcardSetId, int flashcardId);
17-
18-
void deleteFlashcardSet(int flashcardSetID);
19-
37+
/**
38+
* @param flashcardSetId the id of the flashcard set that will be deleted.
39+
*/
40+
void deleteFlashcardSet(int flashcardSetId);
41+
/**
42+
* @param flashcardSet the flashcard set object.
43+
*/
2044
int saveFlashcardSet(FlashcardSetDsRequestModel flashcardSet);
2145

2246

src/main/java/data_access/IUserDataAccess.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ public interface IUserDataAccess {
2828
Collection<CommonUserDsRequestModel> getAllUsers();
2929
/**
3030
* @param username the user's username
31-
* @param flashcardSetID the id of the flashcard set that the user would like to create.
31+
* @param flashcardSetId the id of the flashcard set that the user would like to create.
3232
*/
33-
void saveFlashcardSetID(String username, int flashcardSetID);
33+
void saveFlashcardSetID(String username, int flashcardSetId);
3434
/**
3535
* @param username the user's username
36-
* @param flashcardSetID the id of the flashcard set that the user would like to delete.
36+
* @param flashcardSetId the id of the flashcard set that the user would like to delete.
3737
*/
38-
void deleteFlashcardSetID(String username, int flashcardSetID);
38+
void deleteFlashcardSetID(String username, int flashcardSetId);
3939
/**
4040
* @param user the User object.
4141
*/

0 commit comments

Comments
 (0)