org.wso2.registry.jdbc.dao
Class TagsDAO

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

public class TagsDAO
extends java.lang.Object


Constructor Summary
TagsDAO()
           
 
Method Summary
 void addTagging(java.lang.String tagName, long resourceID, java.lang.String userID, java.sql.Connection conn)
           
 java.util.List getPathsWithAllTags(java.lang.String[] tags, java.sql.Connection conn)
           
 java.util.List getPathsWithAnyTag(java.lang.String[] tags, java.sql.Connection conn)
           
 java.lang.String[] getPathsWithTag(java.lang.String tag, java.sql.Connection conn)
           
 long getTagCount(java.lang.String path, java.lang.String tag, java.sql.Connection conn)
           
 java.util.List getTaggedPaths(java.lang.String tag, java.sql.Connection conn)
           
 TaggingDO getTagging(long taggingID, java.sql.Connection conn)
           
 TaggingDO getTagging(java.lang.String path, java.lang.String tagName, java.lang.String userName, java.sql.Connection conn)
           
 java.lang.String[] getTags(java.lang.String path, java.sql.Connection conn)
           
 Tag[] getTagsWithCount(java.lang.String path, java.sql.Connection conn)
           
 void removeTag(java.lang.String path, java.lang.String tag, java.sql.Connection conn)
           
 void removeTag(java.lang.String path, java.lang.String tag, java.lang.String userName, java.sql.Connection conn)
           
 void removeTaggings(long resourceID, java.sql.Connection conn)
           
 boolean taggingExist(java.lang.String tagName, long resourceID, java.lang.String userID, java.sql.Connection conn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagsDAO

public TagsDAO()
Method Detail

addTagging

public void addTagging(java.lang.String tagName,
                       long resourceID,
                       java.lang.String userID,
                       java.sql.Connection conn)
                throws java.sql.SQLException
Throws:
java.sql.SQLException

taggingExist

public boolean taggingExist(java.lang.String tagName,
                            long resourceID,
                            java.lang.String userID,
                            java.sql.Connection conn)
                     throws java.sql.SQLException
Throws:
java.sql.SQLException

removeTaggings

public void removeTaggings(long resourceID,
                           java.sql.Connection conn)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

removeTag

public void removeTag(java.lang.String path,
                      java.lang.String tag,
                      java.sql.Connection conn)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

removeTag

public void removeTag(java.lang.String path,
                      java.lang.String tag,
                      java.lang.String userName,
                      java.sql.Connection conn)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getPathsWithTag

public java.lang.String[] getPathsWithTag(java.lang.String tag,
                                          java.sql.Connection conn)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getTags

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

getPathsWithAnyTag

public java.util.List getPathsWithAnyTag(java.lang.String[] tags,
                                         java.sql.Connection conn)
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getPathsWithAllTags

public java.util.List getPathsWithAllTags(java.lang.String[] tags,
                                          java.sql.Connection conn)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getTagCount

public long getTagCount(java.lang.String path,
                        java.lang.String tag,
                        java.sql.Connection conn)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getTaggedPaths

public java.util.List getTaggedPaths(java.lang.String tag,
                                     java.sql.Connection conn)
                              throws java.sql.SQLException
Throws:
java.sql.SQLException

getTagsWithCount

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

getTagging

public TaggingDO getTagging(java.lang.String path,
                            java.lang.String tagName,
                            java.lang.String userName,
                            java.sql.Connection conn)
                     throws java.sql.SQLException
Throws:
java.sql.SQLException

getTagging

public TaggingDO getTagging(long taggingID,
                            java.sql.Connection conn)
                     throws java.sql.SQLException
Throws:
java.sql.SQLException


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