fr.paris.lutece.plugins.helpdesk.business
Class VisitorQuestionDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.helpdesk.business.VisitorQuestionDAO
All Implemented Interfaces:
IVisitorQuestionDAO

public final class VisitorQuestionDAO
extends Object
implements IVisitorQuestionDAO

This class provides Data Access methods for VisitorQuestionAnswer objects


Method Summary
 void delete(int nIdVisitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 Collection<VisitorQuestion> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all objects
 Collection<VisitorQuestion> findArchivedQuestionsByTheme(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all archived questions by Theme
 Collection<VisitorQuestion> findByTheme(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all objects
 Collection<VisitorQuestion> findByUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all objects
 void insert(VisitorQuestion visitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 VisitorQuestion load(int nIdVisitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          load the data of VisitorQuestion from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Calculate a new primary key to add a new VisitorQuestion
 void store(VisitorQuestion visitorQuestion, 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
 

Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate a new primary key to add a new VisitorQuestion

Specified by:
newPrimaryKey in interface IVisitorQuestionDAO
Parameters:
plugin - The Plugin using this data access service
Returns:
The new key.

insert

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

Specified by:
insert in interface IVisitorQuestionDAO
Parameters:
visitorQuestion - The Instance of the object VisitorQuestion
plugin - The Plugin using this data access service

delete

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

Specified by:
delete in interface IVisitorQuestionDAO
Parameters:
nIdVisitorQuestion - The indentifier of the object VisitorQuestion
plugin - The Plugin using this data access service

load

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

Specified by:
load in interface IVisitorQuestionDAO
Parameters:
nIdVisitorQuestion - The indentifier of the object VisitorQuestion
plugin - The Plugin using this data access service
Returns:
The Instance of the object VisitorQuestion

store

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

Specified by:
store in interface IVisitorQuestionDAO
Parameters:
visitorQuestion - The instance of the VisitorQuestion to update
plugin - The Plugin using this data access service

findAll

public Collection<VisitorQuestion> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all objects

Specified by:
findAll in interface IVisitorQuestionDAO
Parameters:
plugin - The Plugin using this data access service
Returns:
A Collection of objects

findByUser

public Collection<VisitorQuestion> findByUser(int nIdUser,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all objects

Specified by:
findByUser in interface IVisitorQuestionDAO
Parameters:
nIdUser - The User ID
plugin - The Plugin using this data access service
Returns:
A Collection of objects

findByTheme

public Collection<VisitorQuestion> findByTheme(int nIdTheme,
                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all objects

Specified by:
findByTheme in interface IVisitorQuestionDAO
Parameters:
nIdTheme - The theme ID
plugin - The Plugin using this data access service
Returns:
A Collection of objects

findArchivedQuestionsByTheme

public Collection<VisitorQuestion> findArchivedQuestionsByTheme(int nIdTheme,
                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all archived questions by Theme

Specified by:
findArchivedQuestionsByTheme in interface IVisitorQuestionDAO
Parameters:
nIdTheme - The Theme id
plugin - The Plugin using this data access service
Returns:
A Collection of objects


Copyright © 2013 Mairie de Paris. All Rights Reserved.