|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.document.modules.comment.business.DocumentCommentDAO
public final class DocumentCommentDAO
This class provides Data Access methods for DocumentComment objects
| Constructor Summary | |
|---|---|
DocumentCommentDAO()
|
|
| Method Summary | |
|---|---|
int |
checkCommentNb(int nDocumentId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the nb of comment for a document |
void |
delete(int nCommentId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
insert(DocumentComment documentComment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
DocumentComment |
load(int nCommentId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of DocumentComment from the table |
DocumentComment |
loadLastComment(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of DocumentComment from the table |
java.util.List<DocumentComment> |
selectByDocument(int nDocumentId,
boolean bPublishedOnly,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets all the comments for an document |
void |
store(DocumentComment documentComment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
void |
updateCommentStatus(int nCommentId,
int nStatus,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update status from the comment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentCommentDAO()
| Method Detail |
|---|
public void insert(DocumentComment documentComment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IDocumentCommentDAOdocumentComment - The DocumentComment object
public DocumentComment load(int nCommentId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IDocumentCommentDAOnCommentId - The identifier of DocumentComment
public void delete(int nCommentId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IDocumentCommentDAOnCommentId - the documentComment identifier
public void store(DocumentComment documentComment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IDocumentCommentDAOdocumentComment - The reference of DdocumentComment
public java.util.List<DocumentComment> selectByDocument(int nDocumentId,
boolean bPublishedOnly,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByDocument in interface IDocumentCommentDAOnDocumentId - the identifier of the DocumentbPublishedOnly - set to true to return published comments only
public void updateCommentStatus(int nCommentId,
int nStatus,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateCommentStatus in interface IDocumentCommentDAOnCommentId - The Comment identifiernStatus - The published Status
public int checkCommentNb(int nDocumentId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkCommentNb in interface IDocumentCommentDAOnDocumentId - the document identifier
public DocumentComment loadLastComment(fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadLastComment in interface IDocumentCommentDAOplugin - the plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||