Class CommentHome


  • public final class CommentHome
    extends Object
    This class provides instances management methods (create, find, ...) for Comment objects
    • 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 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 List<Comment> selectCommentsList​(Date startingDate,
                                                       Date endingDate,
                                                       int nIdForm)
        Load the data from the table
        Parameters:
        startingDate - the date start
        endingDate - the date end
      • selectCommentsListInclusive

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

        public static List<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