public class TrainingProjectJDBCManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger
The Constant logger.
|
static String |
TRAININGUNIT_TRAININGUNITQUESTIONNAIRE
The Constant TRAININGUNIT_TRAININGUNITQUESTIONNAIRE.
|
static String |
TRAININGUNIT_TRAININGVIDEO
The Constant TRAININGUNIT_TRAININGVIDEO.
|
static String |
TRAININGUNITQUESTIONNAIRE
The Constant TRAININGUNITQUESTIONNAIRE.
|
static String |
TRAININGVIDEO
The Constant TRAININGVIDEO.
|
| Constructor and Description |
|---|
TrainingProjectJDBCManager() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
deleteQuestionnaireForId(Long questionnaireId,
String context)
Delete questionnaire for id.
|
protected int |
deleteTrainingVideo(Long videoId,
String context)
Delete training video.
|
protected List<TrainingProject> |
selectTrainingProject(String context)
Select training project.
|
protected List<TrainingUnitQuestionnaire> |
selectTrainingQuestionnaire(long unitId,
String context)
Select training questionnaire.
|
List<ProgressPerUnit> |
selectTrainingUnitProgress(String context,
long unitId,
String username,
String itemId,
ItemType itemType)
Select training unit progress.
|
protected List<TrainingVideo> |
selectTrainingVideo(Long unitId,
Long videoId,
String context)
Select training video.
|
public static final String TRAININGUNITQUESTIONNAIRE
public static final String TRAININGUNIT_TRAININGUNITQUESTIONNAIRE
public static final String TRAININGUNIT_TRAININGVIDEO
public static final String TRAININGVIDEO
public static final org.slf4j.Logger logger
protected List<TrainingProject> selectTrainingProject(String context) throws SQLException
context - the contextSQLException - the SQL exceptionprotected List<TrainingVideo> selectTrainingVideo(Long unitId, Long videoId, String context) throws SQLException
unitId - the unit idvideoId - the video idcontext - the contextSQLException - the SQL exceptionprotected int deleteTrainingVideo(Long videoId, String context) throws SQLException, Exception
videoId - the video idcontext - the contextSQLException - the SQL exceptionException - the exceptionprotected int deleteQuestionnaireForId(Long questionnaireId, String context) throws SQLException, Exception
questionnaireId - the questionnaire idcontext - the contextSQLException - the SQL exceptionException - the exceptionprotected List<TrainingUnitQuestionnaire> selectTrainingQuestionnaire(long unitId, String context) throws SQLException
unitId - the unit idcontext - the contextSQLException - the SQL exceptionpublic List<ProgressPerUnit> selectTrainingUnitProgress(String context, long unitId, String username, String itemId, ItemType itemType) throws SQLException, Exception
context - the contextunitId - the unit idusername - the usernameitemId - the item iditemType - the item typeSQLException - the SQL exceptionException - the exceptionCopyright © 2019. All Rights Reserved.