Class CommentDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.comment.CommentDAO
-
- All Implemented Interfaces:
ICommentDAO
public final class CommentDAO extends Object implements ICommentDAO
This class provides Data Access methods for Comment objects
-
-
Constructor Summary
Constructors Constructor Description CommentDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddeleteByIdFom(int nIdFom, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a list comment from the tablevoidinsert(Comment comment, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Commentload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableList<Comment>selectCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the comment objects and returns them as a listList<Comment>selectCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, Date endingDate, int nIdForm)Load the data from the tableList<Comment>selectCommentsListInclusive(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, Date endingDate, int nIdForm)Load the data from the tablefr.paris.lutece.util.ReferenceListselectCommentsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the comment objects and returns them as a referenceListList<Integer>selectIdCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the comment objects and returns them as a listvoidstore(Comment comment, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(Comment comment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceICommentDAO- Parameters:
comment- instance of the Comment object to insertplugin- the Plugin
-
load
public Comment load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceICommentDAO- Parameters:
nKey- The identifier of the commentplugin- 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:
deletein interfaceICommentDAO- Parameters:
nKey- The identifier of the Comment to deleteplugin- 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:
deleteByIdFomin interfaceICommentDAO- Parameters:
nIdFom- The identifier of the formplugin- the Plugin
-
store
public void store(Comment comment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceICommentDAO- Parameters:
comment- the reference of the Commentplugin- 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:
selectCommentsListin interfaceICommentDAO- 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:
selectCommentsListin interfaceICommentDAO- Parameters:
plugin- the pluginstartingDate- the date startendingDate- 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:
selectCommentsListInclusivein interfaceICommentDAO- Parameters:
plugin- the pluginstartingDate- the date startendingDate- 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:
selectIdCommentsListin interfaceICommentDAO- 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:
selectCommentsReferenceListin interfaceICommentDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the comment objects
-
-