fr.paris.lutece.plugins.quiz.business
Interface IQuizDAO

All Known Implementing Classes:
QuizDAO

public interface IQuizDAO

This class provides instances management methods (create, find, ...) for Quiz objects


Method Summary
 void delete(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Deletes the Quiz instance whose identifier is specified in parameter
 void insert(Quiz quiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of an article Quiz
 Quiz load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of the article Quiz whose identifier is specified in parameter
 Quiz loadLastQuiz(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of the article Quiz whose identifier is specified in parameter
 Collection<Quiz> selectQuizEnabledList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Selection of all Quiz
 Collection<Quiz> selectQuizList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns Quiz list
 void store(Quiz quiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Updates of the Quiz instance specified in parameter
 

Method Detail

selectQuizEnabledList

Collection<Quiz> selectQuizEnabledList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Selection of all Quiz

Parameters:
plugin - the plugin
Returns:
list of quiz

insert

void insert(Quiz quiz,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article Quiz

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

store

void store(Quiz quiz,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates of the Quiz instance specified in parameter

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

delete

void delete(int nIdQuiz,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the Quiz instance whose identifier is specified in parameter

Parameters:
nIdQuiz - The identifier of the article Quiz to delete in the database
plugin - the plugin

load

Quiz load(int nKey,
          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article Quiz whose identifier is specified in parameter

Parameters:
nKey - The primary key of the article to find in the database
plugin - the plugin
Returns:
An instance of the Quiz which corresponds to the key

selectQuizList

Collection<Quiz> selectQuizList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns Quiz list

Parameters:
plugin - the plugin
Returns:
the list of the Quiz of the database in form of a Quiz Collection object

loadLastQuiz

Quiz loadLastQuiz(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article Quiz whose identifier is specified in parameter

Parameters:
plugin - the plugin
Returns:
An instance of the Quiz which corresponds to the key


Copyright © 2014 Mairie de Paris. All Rights Reserved.