fr.paris.lutece.plugins.quiz.modules.games.business
Class QuizParticipantDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.quiz.modules.games.business.QuizParticipantDAO
All Implemented Interfaces:
IQuizParticipantDAO

public class QuizParticipantDAO
extends java.lang.Object
implements IQuizParticipantDAO

This class provides Data Access methods for QuizParticipant objects


Constructor Summary
QuizParticipantDAO()
           
 
Method Summary
 void deleteParticipantsByQuiz(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 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)
          Insert a new record in the table.
 java.util.List<QuizParticipant> selectParticipantsList(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the list of the participants of a quiz
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuizParticipantDAO

public QuizParticipantDAO()
Method Detail

insert

public void insert(QuizParticipant quizParticipant,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IQuizParticipantDAO
Parameters:
quizParticipant - The Instance of the object QuizParticipant
plugin - the plugin

deleteParticipantsByQuiz

public void deleteParticipantsByQuiz(int nIdQuiz,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Specified by:
deleteParticipantsByQuiz in interface IQuizParticipantDAO
Parameters:
nIdQuiz - The indentifier of the object QuizParticipant
plugin - the plugin

selectParticipantsList

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

Specified by:
selectParticipantsList in interface IQuizParticipantDAO
Parameters:
nIdQuiz - The Quiz identifier
plugin - the plugin
Returns:
list The Collection of Participants

findByIdentifiantAndQuizId

public 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

Specified by:
findByIdentifiantAndQuizId in interface IQuizParticipantDAO
Parameters:
identifiant - the participant identifiant
idQuiz - the quiz id
plugin - the plugin
Returns:
participant


Copyright © 2012 Mairie de Paris. All Rights Reserved.