org.wso2.registry.jdbc.dao
Class CommentsDAO

java.lang.Object
  extended by org.wso2.registry.jdbc.dao.CommentsDAO

public class CommentsDAO
extends java.lang.Object


Constructor Summary
CommentsDAO()
           
 
Method Summary
static java.lang.String addComment(java.lang.String resourceID, java.lang.String userID, Comment comment)
           
static void copyComments(java.lang.String path, java.lang.String resourceID)
           
static void deleteComment(long commentId)
           
static Comment getComment(long commentID)
           
static long[] getCommentIDs(java.lang.String resourcePath, java.sql.Connection conn)
           
static Comment[] getComments(java.lang.String path)
           
static java.lang.String getResourcePathOfComment(long commentID)
           
static void removeComments(long artifactID, java.sql.Connection conn)
           
static void updateComment(long commentId, java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentsDAO

public CommentsDAO()
Method Detail

addComment

public static java.lang.String addComment(java.lang.String resourceID,
                                          java.lang.String userID,
                                          Comment comment)
                                   throws RegistryException
Throws:
RegistryException

copyComments

public static void copyComments(java.lang.String path,
                                java.lang.String resourceID)
                         throws RegistryException
Throws:
RegistryException

updateComment

public static void updateComment(long commentId,
                                 java.lang.String text)
                          throws RegistryException
Throws:
RegistryException

deleteComment

public static void deleteComment(long commentId)
                          throws RegistryException
Throws:
RegistryException

getComments

public static Comment[] getComments(java.lang.String path)
                             throws RegistryException
Throws:
RegistryException

removeComments

public static void removeComments(long artifactID,
                                  java.sql.Connection conn)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

getComment

public static Comment getComment(long commentID)
                          throws RegistryException
Throws:
RegistryException

getCommentIDs

public static long[] getCommentIDs(java.lang.String resourcePath,
                                   java.sql.Connection conn)
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

getResourcePathOfComment

public static java.lang.String getResourcePathOfComment(long commentID)
                                                 throws RegistryException
Throws:
RegistryException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.