Interface ICommentDAO

  • All Known Implementing Classes:
    CommentDAO

    public interface ICommentDAO
    ICommentDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteByIdFom​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a list comment from the table
      void insert​(Comment comment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Comment load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<Comment> selectCommentsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the comment objects and returns them as a list
      java.util.List<Comment> selectCommentsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.sql.Date startingDate, java.sql.Date endingDate, int nIdForm)
      Load the data from the table
      java.util.List<Comment> selectCommentsListInclusive​(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.sql.Date startingDate, java.sql.Date endingDate, int nIdForm)
      Load the data from the table
      fr.paris.lutece.util.ReferenceList selectCommentsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the comment objects and returns them as a referenceList
      java.util.List<java.lang.Integer> selectIdCommentsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the comment objects and returns them as a list
      void store​(Comment comment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

        void insert​(Comment comment,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        comment - instance of the Comment object to insert
        plugin - the Plugin
      • store

        void store​(Comment comment,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        comment - the reference of the Comment
        plugin - the Plugin
      • delete

        void delete​(int nKey,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nKey - The identifier of the Comment to delete
        plugin - the Plugin
      • deleteByIdFom

        void deleteByIdFom​(int nIdForm,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a list comment from the table
        Parameters:
        nIdForm - The identifier of the form
        plugin - the Plugin
      • load

        Comment load​(int nKey,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the comment
        plugin - the Plugin
        Returns:
        The instance of the comment
      • selectCommentsList

        java.util.List<Comment> selectCommentsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                   java.sql.Date startingDate,
                                                   java.sql.Date endingDate,
                                                   int nIdForm)
        Load the data from the table
        Parameters:
        plugin - the plugin
        startingDate - the date start
        endingDate - the date end
        nIdFrom - the id Form
      • selectCommentsListInclusive

        java.util.List<Comment> selectCommentsListInclusive​(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                            java.sql.Date startingDate,
                                                            java.sql.Date endingDate,
                                                            int nIdForm)
        Load the data from the table
        Parameters:
        plugin - the plugin
        startingDate - the date start
        endingDate - the date end
        nIdFrom - the id Form
      • selectCommentsList

        java.util.List<Comment> selectCommentsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the comment objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the comment objects
      • selectIdCommentsList

        java.util.List<java.lang.Integer> selectIdCommentsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the comment objects and returns them as a list
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the comment objects
      • selectCommentsReferenceList

        fr.paris.lutece.util.ReferenceList selectCommentsReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the comment objects and returns them as a referenceList
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the comment objects