Interface IVisitorQuestionDAO
- All Known Implementing Classes:
VisitorQuestionDAO
public interface IVisitorQuestionDAO
Interface for Visitor DAO
-
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
-
delete
void delete(int nIdVisitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nIdVisitorQuestion- The indentifier of the object VisitorQuestionplugin- The Plugin using this data access service
-
findAll
Find all objects- Parameters:
plugin- The Plugin using this data access service- Returns:
- A Collection of objects
-
insert
Insert a new record in the table.- Parameters:
visitorQuestion- The Instance of the object VisitorQuestionplugin- The Plugin using this data access service
-
load
load the data of VisitorQuestion from the table- Parameters:
nIdVisitorQuestion- The indentifier of the object VisitorQuestionplugin- The Plugin using this data access service- Returns:
- The Instance of the object VisitorQuestion
-
newPrimaryKey
int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Calculate a new primary key to add a new VisitorQuestion- Parameters:
plugin- The Plugin using this data access service- Returns:
- The new key.
-
store
Update the record in the table- Parameters:
visitorQuestion- The instance of the VisitorQuestion to updateplugin- The Plugin using this data access service
-
findByUser
Collection<VisitorQuestion> findByUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all objects- Parameters:
nIdUser- The User IDplugin- The Plugin using this data access service- Returns:
- A Collection of objects
-
findByTheme
Collection<VisitorQuestion> findByTheme(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all objects- Parameters:
nIdTheme- The Theme idplugin- The Plugin using this data access service- Returns:
- A Collection of objects
-
findArchivedQuestionsByTheme
Collection<VisitorQuestion> findArchivedQuestionsByTheme(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all archived questions by Theme- Parameters:
nIdTheme- The Theme idplugin- The Plugin using this data access service- Returns:
- A Collection of objects
-