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 java.lang.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
 java.util.List<VisitorQuestion> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all objects
 fr.paris.lutece.util.ReferenceList findByTopic(int nIdQuestionTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all objects
 java.util.List<VisitorQuestion> findByTopics(int nIdQuestionTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all objects
 java.util.List<VisitorQuestion> findByType(int nIdQuestionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all objects
 java.util.List<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 java.util.List<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 java.util.List<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

findByTopic

public fr.paris.lutece.util.ReferenceList findByTopic(int nIdQuestionTopic,
                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all objects

Specified by:
findByTopic in interface IVisitorQuestionDAO
Parameters:
nIdQuestionTopic - The Question Topic ID
plugin - The Plugin using this data access service
Returns:
A Collection of objects

findByTopics

public java.util.List<VisitorQuestion> findByTopics(int nIdQuestionTopic,
                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all objects

Specified by:
findByTopics in interface IVisitorQuestionDAO
Parameters:
nIdQuestionTopic - The Question Topic ID
plugin - The Plugin using this data access service
Returns:
A Collection of objects

findByType

public java.util.List<VisitorQuestion> findByType(int nIdQuestionType,
                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all objects

Specified by:
findByType in interface IVisitorQuestionDAO
Parameters:
nIdQuestionType - The Question type id
plugin - The Plugin using this data access service
Returns:
A Collection of objects


Copyright © 2007 Mairie de Paris. All Rights Reserved.