Class FavoriteDao
java.lang.Object
com.serinity.exercicecontrol.dao.FavoriteDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int id) voiddeleteByUserTypeAndItem(int userId, String favoriteType, int itemId) booleanfindByUserId(int userId) int
-
Constructor Details
-
FavoriteDao
public FavoriteDao()
-
-
Method Details
-
insert
- Throws:
SQLException
-
delete
- Throws:
SQLException
-
deleteByUserTypeAndItem
public void deleteByUserTypeAndItem(int userId, String favoriteType, int itemId) throws SQLException - Throws:
SQLException
-
exists
- Throws:
SQLException
-
findByUserId
- Throws:
SQLException
-