Class VisitorQuestionDAO
java.lang.Object
fr.paris.lutece.plugins.helpdesk.business.VisitorQuestionDAO
- All Implemented Interfaces:
IVisitorQuestionDAO
This class provides Data Access methods for VisitorQuestionAnswer objects
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdVisitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all objectsfindArchivedQuestionsByTheme(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all archived questions by ThemefindByTheme(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all objectsfindByUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all objectsvoidinsert(VisitorQuestion visitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nIdVisitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin) load the data of VisitorQuestion from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Calculate a new primary key to add a new VisitorQuestionvoidstore(VisitorQuestion visitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Method Details
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Calculate a new primary key to add a new VisitorQuestion- Specified by:
newPrimaryKeyin interfaceIVisitorQuestionDAO- 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:
insertin interfaceIVisitorQuestionDAO- Parameters:
visitorQuestion- The Instance of the object VisitorQuestionplugin- 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:
deletein interfaceIVisitorQuestionDAO- Parameters:
nIdVisitorQuestion- The indentifier of the object VisitorQuestionplugin- 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:
loadin interfaceIVisitorQuestionDAO- Parameters:
nIdVisitorQuestion- The indentifier of the object VisitorQuestionplugin- 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:
storein interfaceIVisitorQuestionDAO- Parameters:
visitorQuestion- The instance of the VisitorQuestion to updateplugin- The Plugin using this data access service
-
findAll
Find all objects- Specified by:
findAllin interfaceIVisitorQuestionDAO- 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:
findByUserin interfaceIVisitorQuestionDAO- Parameters:
nIdUser- The User IDplugin- 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:
findByThemein interfaceIVisitorQuestionDAO- Parameters:
nIdTheme- The theme IDplugin- 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:
findArchivedQuestionsByThemein interfaceIVisitorQuestionDAO- Parameters:
nIdTheme- The Theme idplugin- The Plugin using this data access service- Returns:
- A Collection of objects
-