java.lang.Object
fr.paris.lutece.plugins.appointment.business.comment.CommentDAO
All Implemented Interfaces:
ICommentDAO

@ApplicationScoped public class CommentDAO extends Object implements ICommentDAO
This class provides Data Access methods for Comment objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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 nIdFom, 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.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the comment objects and returns them as a list
    selectCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, Date endingDate, int nIdForm)
    Load the data from the table
    selectCommentsListInclusive(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, 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
    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CommentDAO

      public CommentDAO()
  • Method Details

    • insert

      public void insert(Comment comment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface ICommentDAO
      Parameters:
      comment - instance of the Comment object to insert
      plugin - the Plugin
    • load

      public Comment load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface ICommentDAO
      Parameters:
      nKey - The identifier of the comment
      plugin - the Plugin
      Returns:
      The instance of the comment
    • delete

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

      public void deleteByIdFom(int nIdFom, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a list comment from the table
      Specified by:
      deleteByIdFom in interface ICommentDAO
      Parameters:
      nIdFom - The identifier of the form
      plugin - the Plugin
    • store

      public void store(Comment comment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface ICommentDAO
      Parameters:
      comment - the reference of the Comment
      plugin - the Plugin
    • selectCommentsList

      public 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
      Specified by:
      selectCommentsList in interface ICommentDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the comment objects
    • selectCommentsList

      public List<Comment> selectCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, Date endingDate, int nIdForm)
      Load the data from the table
      Specified by:
      selectCommentsList in interface ICommentDAO
      Parameters:
      plugin - the plugin
      startingDate - the date start
      endingDate - the date end
    • selectCommentsListInclusive

      public List<Comment> selectCommentsListInclusive(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, Date endingDate, int nIdForm)
      Load the data from the table
      Specified by:
      selectCommentsListInclusive in interface ICommentDAO
      Parameters:
      plugin - the plugin
      startingDate - the date start
      endingDate - the date end
    • selectIdCommentsList

      public List<Integer> selectIdCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the comment objects and returns them as a list
      Specified by:
      selectIdCommentsList in interface ICommentDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the id of all the comment objects
    • selectCommentsReferenceList

      public 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
      Specified by:
      selectCommentsReferenceList in interface ICommentDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the comment objects