Class CommentHome
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.comment.CommentHome
-
public final class CommentHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Comment objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Commentcreate(Comment comment)Create an instance of the comment classstatic CommentfindByPrimaryKey(int nKey)Returns an instance of a comment whose identifier is specified in parameterstatic java.util.List<Comment>getCommentsList()Load the data of all the comment objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetCommentsReferenceList()Load the data of all the comment objects and returns them as a referenceListstatic java.util.List<java.lang.Integer>getIdCommentsList()Load 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 parameterstatic java.util.List<Comment>selectCommentsList(java.sql.Date startingDate, java.sql.Date endingDate, int nIdForm)Load the data from the tablestatic java.util.List<Comment>selectCommentsListInclusive(java.sql.Date startingDate, java.sql.Date endingDate, int nIdForm)Load the data from the table the date startstatic Commentupdate(Comment comment)Update of the comment which is specified in parameter
-
-
-
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 startendingDate- 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
-
-