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

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

public final class QuizQuestionHome
extends java.lang.Object

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


Method Summary
static QuizQuestion create(QuizQuestion question, fr.paris.lutece.portal.util.PluginConnectionService connectionService)
          Creation of an instance of an article QuizQuestion
static java.util.Collection findAll(fr.paris.lutece.portal.util.PluginConnectionService connectionService)
          Returns QuizQuestion list
static QuizQuestion findByPrimaryKey(int nKey, fr.paris.lutece.portal.util.PluginConnectionService connectionService)
          Returns an instance of the article QuizQuestion whose identifier is specified in parameter
static void remove(int nIdQuestion, fr.paris.lutece.portal.util.PluginConnectionService connectionService)
          Deletes the QuizQuestion instance whose identifier is specified in parameter
static QuizQuestion update(QuizQuestion question, fr.paris.lutece.portal.util.PluginConnectionService connectionService)
          Updates of the QuizQuestion 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 QuizQuestion create(QuizQuestion question,
                                  fr.paris.lutece.portal.util.PluginConnectionService connectionService)
Creation of an instance of an article QuizQuestion

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

update

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

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

remove

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

Parameters:
nIdQuestion - The identifier of the article QuizQuestion to delete in the database
connectionService - The ConnectionService

findByPrimaryKey

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

findAll

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

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