org.wso2.carbon.registry.core.jdbc.handlers.builtin
Class SQLQueryHandler

java.lang.Object
  extended by org.wso2.carbon.registry.core.jdbc.handlers.Handler
      extended by org.wso2.carbon.registry.core.jdbc.handlers.builtin.SQLQueryHandler

public class SQLQueryHandler
extends Handler

Handler managing adding and fetching SQL Queries.


Field Summary
 
Fields inherited from class org.wso2.carbon.registry.core.jdbc.handlers.Handler
resourceDAO
 
Constructor Summary
SQLQueryHandler()
           
 
Method Summary
 Resource get(RequestContext requestContext)
          Processes the GET action for resource path of the requestContext.
 void put(RequestContext requestContext)
          Processes the PUT action.
 
Methods inherited from class org.wso2.carbon.registry.core.jdbc.handlers.Handler
addAssociation, addComment, applyTag, copy, createLink, createVersion, delete, dump, editComment, equals, executeQuery, getAllAssociations, getAssociations, getAverageRating, getComments, getRating, getResourcePathsWithTag, getTags, getVersions, hashCode, importChild, importResource, invokeAspect, move, putChild, rateResource, removeAssociation, removeComment, removeLink, removeTag, rename, resourceExists, restore, restoreVersion, searchContent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLQueryHandler

public SQLQueryHandler()
Method Detail

get

public Resource get(RequestContext requestContext)
             throws RegistryException
Description copied from class: Handler
Processes the GET action for resource path of the requestContext.

Overrides:
get in class Handler
Parameters:
requestContext - Information about the current request.

requestContext.resourcePath: Path of the resource

requestContext.resource: Resource at the given path. This can be null if no other handler has retrieved that resource so far. If it contains a value, matching handlers are free to do any change to the resource, even they can replace the resource with completely new instance.

Returns:
Resource instance if the handler processed the GET action successfully.
Throws:
RegistryException - If the media type handler is supposed to handle the get on the media type and if the get fails due a handler specific error

put

public void put(RequestContext requestContext)
         throws RegistryException
Description copied from class: Handler
Processes the PUT action. Actual path to which the resource is put may differ from the path given in the requestContext.resourcePath. Therefore, after putting the resource, the actual path to which the resource is put is set in the requestContext.actualPath.

Overrides:
put in class Handler
Parameters:
requestContext - Information about the current request.

requestContext.resourcePath: Path to put the resource. requestContext.resource: Resource to put

Throws:
RegistryException - If the media type handler is supposed to handle the put on the media type and if the put fails due a handler specific error


Copyright © 2010. All Rights Reserved.