public final class CommentDAO extends Object implements ICommentDAO
| Constructor and Description |
|---|
CommentDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteByIdFom(int nIdFom,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a list comment from the table
|
void |
insert(Comment comment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Comment |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
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
|
List<Comment> |
selectCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin,
Date startingDate,
Date endingDate,
int nIdForm)
Load the data from the table
|
List<Comment> |
selectCommentsListInclusive(fr.paris.lutece.portal.service.plugin.Plugin plugin,
Date startingDate,
Date endingDate,
int nIdForm)
Load the data from the table
|
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
|
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
|
void |
store(Comment comment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(Comment comment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ICommentDAOcomment - instance of the Comment object to insertplugin - the Pluginpublic Comment load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ICommentDAOnKey - The identifier of the commentplugin - the Pluginpublic void delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ICommentDAOnKey - The identifier of the Comment to deleteplugin - the Pluginpublic void deleteByIdFom(int nIdFom,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByIdFom in interface ICommentDAOnIdFom - The identifier of the formplugin - the Pluginpublic void store(Comment comment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ICommentDAOcomment - the reference of the Commentplugin - the Pluginpublic List<Comment> selectCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCommentsList in interface ICommentDAOplugin - the Pluginpublic List<Comment> selectCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, Date endingDate, int nIdForm)
selectCommentsList in interface ICommentDAOplugin - the pluginstartingDate - the date startendingDate - the date endpublic List<Comment> selectCommentsListInclusive(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date startingDate, Date endingDate, int nIdForm)
selectCommentsListInclusive in interface ICommentDAOplugin - the pluginstartingDate - the date startendingDate - the date endpublic List<Integer> selectIdCommentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdCommentsList in interface ICommentDAOplugin - the Pluginpublic fr.paris.lutece.util.ReferenceList selectCommentsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCommentsReferenceList in interface ICommentDAOplugin - the PluginCopyright © 2023 City of Paris. All rights reserved.