Class CommentHome
java.lang.Object
fr.paris.lutece.plugins.appointment.business.comment.CommentHome
This class provides instances management methods (create, find, ...) for Comment objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic CommentCreate an instance of the comment classstatic CommentfindByPrimaryKey(int nKey) Returns an instance of a comment whose identifier is specified in parameterLoad the data of all the comment objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the comment objects and returns them as a referenceListLoad the id of all the comment objects and returns them as a liststatic voidremove(int nKey) Remove the comment whose identifier is specified in parameterstatic voidremoveByIdFom(int nIdForm) Remove the comments whose identifier of form is specified in parameterselectCommentsList(Date startingDate, Date endingDate, int nIdForm) Load the data from the tableselectCommentsListInclusive(Date startingDate, Date endingDate, int nIdForm) Load the data from the table the date startstatic CommentUpdate of the comment which is specified in parameter
-
Method Details
-
create
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
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
Returns an instance of a comment whose identifier is specified in parameter- Parameters:
nKey- The comment primary key- Returns:
- an instance of 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
Load the data from the table- Parameters:
startingDate- the date startendingDate- 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
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
-