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
 void addComment(long artifactID, java.lang.String userID, Comment comment, java.sql.Connection conn)
           
 Comment getComment(long commentID, java.sql.Connection conn)
           
 long[] getCommentIDs(java.lang.String resourcePath, java.sql.Connection conn)
           
 Comment[] getComments(java.lang.String path, java.sql.Connection conn)
           
 java.util.List getLogs(java.lang.String resourcePath, java.lang.String userName, java.util.Date from, java.util.Date to, java.sql.Connection conn)
           
 void removeComments(long artifactID, java.sql.Connection conn)
           
 
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 void addComment(long artifactID,
                       java.lang.String userID,
                       Comment comment,
                       java.sql.Connection conn)
                throws java.sql.SQLException
Throws:
java.sql.SQLException

getComments

public Comment[] getComments(java.lang.String path,
                             java.sql.Connection conn)
                      throws java.sql.SQLException
Throws:
java.sql.SQLException

removeComments

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

getComment

public Comment getComment(long commentID,
                          java.sql.Connection conn)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getCommentIDs

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

getLogs

public java.util.List getLogs(java.lang.String resourcePath,
                              java.lang.String userName,
                              java.util.Date from,
                              java.util.Date to,
                              java.sql.Connection conn)
                       throws java.sql.SQLException
Throws:
java.sql.SQLException


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