fr.paris.lutece.plugins.quiz.business.images
Class QuizImageDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.quiz.business.images.QuizImageDAO
All Implemented Interfaces:
IQuizImageDAO

public class QuizImageDAO
extends Object
implements IQuizImageDAO

DAO for images


Constructor Summary
QuizImageDAO()
           
 
Method Summary
 QuizImage findQuizImage(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the image
 void insertQuizImage(QuizImage quizImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert an image into the database
 void removeQuizImage(int nIdImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove an image associated with a question
 void updateQuizImage(QuizImage quizImage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update an image of a question
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuizImageDAO

public QuizImageDAO()
Method Detail

findQuizImage

public QuizImage findQuizImage(int nIdImage,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the image

Specified by:
findQuizImage in interface IQuizImageDAO
Parameters:
nIdImage - The id of the image
plugin - The plugin
Returns:
The byte array of the image, or null if no image was found

insertQuizImage

public void insertQuizImage(QuizImage quizImage,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert an image into the database

Specified by:
insertQuizImage in interface IQuizImageDAO
Parameters:
quizImage - The image
plugin - The plugin

updateQuizImage

public void updateQuizImage(QuizImage quizImage,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an image of a question

Specified by:
updateQuizImage in interface IQuizImageDAO
Parameters:
quizImage - The image
plugin - The plugin

removeQuizImage

public void removeQuizImage(int nIdImage,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an image associated with a question

Specified by:
removeQuizImage in interface IQuizImageDAO
Parameters:
nIdImage - The id of the question to remove
plugin - The plugin


Copyright © 2014 Mairie de Paris. All Rights Reserved.