fr.paris.lutece.plugins.quiz.business
Class QuizDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.quiz.business.QuizDAO
All Implemented Interfaces:
IQuizDAO

public class QuizDAO
extends Object
implements IQuizDAO

This class provides Data Access methods for Quiz objects


Constructor Summary
QuizDAO()
           
 
Method Summary
 void delete(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(Quiz quiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Quiz load(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          load the data of Quiz from the table
 Quiz loadLastQuiz(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          load the data of Quiz from the table
 Collection<Quiz> selectQuizEnabledList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return A Quiz Collection
 Collection<Quiz> selectQuizList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return A Quiz Collection
 void store(Quiz quiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuizDAO

public QuizDAO()
Method Detail

insert

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

Specified by:
insert in interface IQuizDAO
Parameters:
quiz - The Instance of the object Quiz
plugin - the plugin

selectQuizList

public Collection<Quiz> selectQuizList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return A Quiz Collection

Specified by:
selectQuizList in interface IQuizDAO
Parameters:
plugin - the plugin
Returns:
list The Collection of quiz

selectQuizEnabledList

public Collection<Quiz> selectQuizEnabledList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return A Quiz Collection

Specified by:
selectQuizEnabledList in interface IQuizDAO
Parameters:
plugin - the plugin
Returns:
list The Collection of quiz

delete

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

Specified by:
delete in interface IQuizDAO
Parameters:
nIdQuiz - The indentifier of the object Quiz
plugin - the plugin

load

public Quiz load(int nIdQuiz,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of Quiz from the table

Specified by:
load in interface IQuizDAO
Parameters:
nIdQuiz - The indentifier of the object Quiz
plugin - the plugin
Returns:
The Instance of the object Quiz

loadLastQuiz

public Quiz loadLastQuiz(fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of Quiz from the table

Specified by:
loadLastQuiz in interface IQuizDAO
Parameters:
plugin - the plugin
Returns:
The Instance of the object Quiz

store

public void store(Quiz quiz,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Specified by:
store in interface IQuizDAO
Parameters:
quiz - The instance of the Quiz to update
plugin - the plugin


Copyright © 2013 Mairie de Paris. All Rights Reserved.