|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.extend.modules.comment.business.CommentDAO
public class CommentDAO
This class provides Data Access methods for Comment objects.
| Constructor Summary | |
|---|---|
CommentDAO()
|
|
| Method Summary | |
|---|---|
void |
delete(int nIdComment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete. |
void |
deleteByResource(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete by id hub resource. |
int |
getCommentNb(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check comment nb. |
void |
insert(Comment comment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert. |
Comment |
load(int nIdComment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load. |
java.util.List<Comment> |
selectByResource(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
boolean bPublishedOnly,
boolean bAscSort,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select by id hub resource. |
java.util.List<Comment> |
selectLastComments(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
int nNbComments,
boolean bPublishedOnly,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load last comments. |
void |
store(Comment comment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Store. |
void |
updateCommentStatus(int nIdComment,
boolean bPublished,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update comment status. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommentDAO()
| Method Detail |
|---|
public void insert(Comment comment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ICommentDAOcomment - the commentplugin - the plugin
public Comment load(int nIdComment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ICommentDAOnIdComment - the n id commentplugin - the plugin
public void delete(int nIdComment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ICommentDAOnIdComment - the n id commentplugin - the plugin
public void deleteByResource(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByResource in interface ICommentDAOstrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typeplugin - the plugin
public void store(Comment comment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ICommentDAOcomment - the commentplugin - the plugin
public java.util.List<Comment> selectByResource(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
boolean bPublishedOnly,
boolean bAscSort,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByResource in interface ICommentDAOstrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typebPublishedOnly - the b publishedbAscSort - True if comments should be sorted ascendantly, false otherwiseplugin - the plugin
public void updateCommentStatus(int nIdComment,
boolean bPublished,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateCommentStatus in interface ICommentDAOnIdComment - the n id commentbPublished - the b publishedplugin - the plugin
public int getCommentNb(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getCommentNb in interface ICommentDAOstrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typeplugin - the plugin
public java.util.List<Comment> selectLastComments(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
int nNbComments,
boolean bPublishedOnly,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectLastComments in interface ICommentDAOstrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typenNbComments - the n nb commentsbPublishedOnly - the b published onlyplugin - the plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||