Class ExerciseSessionDao
java.lang.Object
com.serinity.exercicecontrol.dao.ExerciseSessionDao
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int id) findById(int id) findByUserAndExercise(int userId, int exerciseId) findByUserId(int userId) findRecent(int userId, Integer exerciseId, int days, int limit) intvoid
-
Constructor Details
-
ExerciseSessionDao
public ExerciseSessionDao()
-
-
Method Details
-
insert
- Throws:
SQLException
-
update
- Throws:
SQLException
-
delete
- Throws:
SQLException
-
findById
- Throws:
SQLException
-
findByUserId
- Throws:
SQLException
-
findByUserAndExercise
- Throws:
SQLException
-
findRecent
public List<ExerciseSessionDao.SessionSummary> findRecent(int userId, Integer exerciseId, int days, int limit) throws SQLException - Throws:
SQLException
-