Class CommentHome


  • public final class CommentHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for Comment objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Comment create​(Comment comment)
      Create an instance of the comment class
      static Comment findByPrimaryKey​(int nKey)
      Returns an instance of a comment whose identifier is specified in parameter
      static java.util.List<Comment> getCommentsList()
      Load the data of all the comment objects and returns them as a list
      static fr.paris.lutece.util.ReferenceList getCommentsReferenceList()
      Load the data of all the comment objects and returns them as a referenceList
      static java.util.List<java.lang.Integer> getIdCommentsList()
      Load the id of all the comment objects and returns them as a list
      static void remove​(int nKey)
      Remove the comment whose identifier is specified in parameter
      static void removeByIdFom​(int nIdForm)
      Remove the comments whose identifier of form is specified in parameter
      static java.util.List<Comment> selectCommentsList​(java.sql.Date startingDate, java.sql.Date endingDate, int nIdForm)
      Load the data from the table
      static java.util.List<Comment> selectCommentsListInclusive​(java.sql.Date startingDate, java.sql.Date endingDate, int nIdForm)
      Load the data from the table the date start
      static Comment update​(Comment comment)
      Update of the comment which is specified in parameter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static Comment create​(Comment comment)
        Create an instance of the comment class
        Parameters:
        comment - The instance of the Comment which contains the informations to store
        Returns:
        The instance of comment which has been created with its primary key.
      • update

        public static Comment update​(Comment comment)
        Update of the comment which is specified in parameter
        Parameters:
        comment - The instance of the Comment which contains the data to store
        Returns:
        The instance of the comment which has been updated
      • remove

        public static void remove​(int nKey)
        Remove the comment whose identifier is specified in parameter
        Parameters:
        nKey - The comment Id
      • removeByIdFom

        public static void removeByIdFom​(int nIdForm)
        Remove the comments whose identifier of form is specified in parameter
        Parameters:
        nIdForm - The form Id
      • findByPrimaryKey

        public static Comment findByPrimaryKey​(int nKey)
        Returns an instance of a comment whose identifier is specified in parameter
        Parameters:
        nKey - The comment primary key
        Returns:
        an instance of Comment
      • getCommentsList

        public static java.util.List<Comment> getCommentsList()
        Load the data of all the comment objects and returns them as a list
        Returns:
        the list which contains the data of all the comment objects
      • selectCommentsList

        public static java.util.List<Comment> selectCommentsList​(java.sql.Date startingDate,
                                                                 java.sql.Date endingDate,
                                                                 int nIdForm)
        Load the data from the table
        Parameters:
        startingDate - the date start
        endingDate - the date end
      • selectCommentsListInclusive

        public static java.util.List<Comment> selectCommentsListInclusive​(java.sql.Date startingDate,
                                                                          java.sql.Date endingDate,
                                                                          int nIdForm)
        Load the data from the table the date start
        Parameters:
        endingDate - the date end
      • getIdCommentsList

        public static java.util.List<java.lang.Integer> getIdCommentsList()
        Load the id of all the comment objects and returns them as a list
        Returns:
        the list which contains the id of all the comment objects
      • getCommentsReferenceList

        public static fr.paris.lutece.util.ReferenceList getCommentsReferenceList()
        Load the data of all the comment objects and returns them as a referenceList
        Returns:
        the referenceList which contains the data of all the comment objects