fr.paris.lutece.plugins.quiz.modules.games.business
Interface IQuizParticipantDAO

All Known Implementing Classes:
QuizParticipantDAO

public interface IQuizParticipantDAO

Author:
nmoitry

Method Summary
 void deleteParticipantsByQuiz(int nQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete an instance of a participant by Quiz
 QuizParticipant findByIdentifiantAndQuizId(java.lang.String identifiant, int idQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return a participant by this identifiant and by quiz
 void insert(QuizParticipant quizParticipant, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of a participant Quiz
 java.util.List<QuizParticipant> selectParticipantsList(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the list of participant for a quiz
 

Method Detail

deleteParticipantsByQuiz

void deleteParticipantsByQuiz(int nQuiz,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an instance of a participant by Quiz

Parameters:
nQuiz - An instance of the Quiz which contains the informations to store
plugin - the plugin

insert

void insert(QuizParticipant quizParticipant,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of a participant Quiz

Parameters:
quizParticipant - contains the informations to store
plugin - the plugin

selectParticipantsList

java.util.List<QuizParticipant> selectParticipantsList(int nIdQuiz,
                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of participant for a quiz

Parameters:
nIdQuiz - The primary key of the article to find in the database
plugin - the plugin
Returns:
list of participant

findByIdentifiantAndQuizId

QuizParticipant findByIdentifiantAndQuizId(java.lang.String identifiant,
                                           int idQuiz,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return a participant by this identifiant and by quiz

Parameters:
identifiant - the participant identifiant
idQuiz - the quiz id
plugin - the plugin
Returns:
participant


Copyright © 2012 Mairie de Paris. All Rights Reserved.