|
||||||||||
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.DocumentCommentHome
public final class DocumentCommentHome
This class provides instances management methods (create, find, ...) for DocumentComment objects
Method Summary | |
---|---|
static int |
checkCommentNb(int strDocumentId)
Return the nb of comment for a document |
static DocumentComment |
create(DocumentComment documentComment)
Create an instance of the DocumentComment class |
static java.util.List<DocumentComment> |
findByDocument(int nDocumentId)
Returns all the comments on an document |
static DocumentComment |
findByPrimaryKey(int nDocumentCommentId)
Returns an instance of an document comment whose identifier is specified in parameter |
static java.util.List<DocumentComment> |
findPublishedByDocument(int nDocumentId)
Returns all the published comments on an document |
static void |
remove(int nDocumentCommentId)
Remove from the master database the document comment whose identifier is specified in parameter |
static void |
update(DocumentComment documentComment)
Update of the document comment data specified in parameter |
static void |
updateCommentStatus(int nCommentId,
int nStatus)
Update status from the comment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DocumentComment create(DocumentComment documentComment)
documentComment
- the object to insert into the database
public static void update(DocumentComment documentComment)
documentComment
- the instance of class which contains the data to storepublic static void remove(int nDocumentCommentId)
nDocumentCommentId
- the article identifierpublic static DocumentComment findByPrimaryKey(int nDocumentCommentId)
nDocumentCommentId
- the document comment primary key
public static java.util.List<DocumentComment> findByDocument(int nDocumentId)
nDocumentId
- the identifier of the document
public static java.util.List<DocumentComment> findPublishedByDocument(int nDocumentId)
nDocumentId
- the identifier of the document
public static void updateCommentStatus(int nCommentId, int nStatus)
nCommentId
- The Comment identifiernStatus
- The published Statuspublic static int checkCommentNb(int strDocumentId)
strDocumentId
- the document identifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |