Interface IVisitorQuestionDAO

All Known Implementing Classes:
VisitorQuestionDAO

public interface IVisitorQuestionDAO
Interface for Visitor DAO
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdVisitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find all objects
    findArchivedQuestionsByTheme(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find all archived questions by Theme
    findByTheme(int nIdTheme, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find all objects
    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.
    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
  • 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 VisitorQuestion
      plugin - The Plugin using this data access service
    • findAll

      Collection<VisitorQuestion> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find all objects
      Parameters:
      plugin - The Plugin using this data access service
      Returns:
      A Collection of objects
    • insert

      void insert(VisitorQuestion visitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Parameters:
      visitorQuestion - The Instance of the object VisitorQuestion
      plugin - The Plugin using this data access service
    • load

      VisitorQuestion load(int nIdVisitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      load the data of VisitorQuestion from the table
      Parameters:
      nIdVisitorQuestion - The indentifier of the object VisitorQuestion
      plugin - 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

      void store(VisitorQuestion visitorQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Parameters:
      visitorQuestion - The instance of the VisitorQuestion to update
      plugin - 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 ID
      plugin - 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 id
      plugin - 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 id
      plugin - The Plugin using this data access service
      Returns:
      A Collection of objects