Interface ICommentDAO
- All Known Implementing Classes:
CommentDAO
public interface ICommentDAO
ICommentDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteByIdFom(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a list comment from the tablevoidInsert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the comment objects and returns them as a listselectCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, Date endingDate, int nIdForm) Load the data from the tableselectCommentsListInclusive(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 referenceListselectIdCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the comment objects and returns them as a listvoidUpdate the record in the table
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
comment- instance of the Comment object to insertplugin- the Plugin
-
store
Update the record in the table- Parameters:
comment- the reference of the Commentplugin- the Plugin
-
delete
void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nKey- The identifier of the Comment to deleteplugin- the Plugin
-
deleteByIdFom
void deleteByIdFom(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a list comment from the table- Parameters:
nIdForm- The identifier of the formplugin- the Plugin
-
load
Load the data from the table- Parameters:
nKey- The identifier of the commentplugin- the Plugin- Returns:
- The instance of the comment
-
selectCommentsList
List<Comment> selectCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, Date endingDate, int nIdForm) Load the data from the table- Parameters:
plugin- the pluginstartingDate- the date startendingDate- the date endnIdFrom- the id Form
-
selectCommentsListInclusive
List<Comment> selectCommentsListInclusive(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, Date endingDate, int nIdForm) Load the data from the table- Parameters:
plugin- the pluginstartingDate- the date startendingDate- the date endnIdFrom- the id Form
-
selectCommentsList
Load the data of all the comment objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the comment objects
-
selectIdCommentsList
Load the id of all the comment objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the comment objects
-
selectCommentsReferenceList
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- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the comment objects
-