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

java.lang.Object
  extended byfr.paris.lutece.plugins.quiz.business.QuizHome

public final class QuizHome
extends java.lang.Object

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


Method Summary
static Quiz create(Quiz quiz, fr.paris.lutece.portal.util.PluginConnectionService connectionService)
          Creation of an instance of an article Quiz
static java.util.Collection findAll(fr.paris.lutece.portal.util.PluginConnectionService connectionService)
          Returns Quiz list
static Quiz findByPrimaryKey(int nKey, fr.paris.lutece.portal.util.PluginConnectionService connectionService)
          Returns an instance of the article Quiz whose identifier is specified in parameter
static void remove(int nIdQuiz, fr.paris.lutece.portal.util.PluginConnectionService connectionService)
          Deletes the Quiz instance whose identifier is specified in parameter
static Quiz update(Quiz quiz, fr.paris.lutece.portal.util.PluginConnectionService connectionService)
          Updates of the Quiz instance specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Quiz create(Quiz quiz,
                          fr.paris.lutece.portal.util.PluginConnectionService connectionService)
Creation of an instance of an article Quiz

Parameters:
quiz - An instance of the Quiz which contains the informations to store
connectionService - The ConnectionService
Returns:
The instance of the Quiz which has been created

update

public static Quiz update(Quiz quiz,
                          fr.paris.lutece.portal.util.PluginConnectionService connectionService)
Updates of the Quiz instance specified in parameter

Parameters:
quiz - An instance of the Quiz which contains the informations to store
connectionService - The ConnectionService
Returns:
The instance of the Quiz which has been updated.

remove

public static void remove(int nIdQuiz,
                          fr.paris.lutece.portal.util.PluginConnectionService connectionService)
Deletes the Quiz instance whose identifier is specified in parameter

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

findByPrimaryKey

public static Quiz findByPrimaryKey(int nKey,
                                    fr.paris.lutece.portal.util.PluginConnectionService connectionService)
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
connectionService - The ConnectionService
Returns:
An instance of the Quiz which corresponds to the key

findAll

public static java.util.Collection findAll(fr.paris.lutece.portal.util.PluginConnectionService connectionService)
Returns Quiz list

Parameters:
connectionService - The ConnectionService
Returns:
the list of the Quiz of the database in form of a Quiz Collection object