Xindice API
version 1.2m1

org.apache.xindice.client.xmldb.services
Class QueryService

java.lang.Object
  extended byorg.apache.xindice.client.xmldb.CommonConfigurable
      extended byorg.apache.xindice.client.xmldb.services.QueryService
All Implemented Interfaces:
org.xmldb.api.base.Configurable, org.xmldb.api.base.Service
Direct Known Subclasses:
TextQueryServiceImpl, XPathQueryServiceImpl, XUpdateQueryServiceImpl

public abstract class QueryService
extends CommonConfigurable
implements org.xmldb.api.base.Service

Abstract query service. Used to implemented both XUpdate and XPath query service, as the interface for these queries on the XML-RPC API is more or less identical.

Version:
$Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $
Author:
James Bates

Field Summary
protected  String queryLang
           
 
Constructor Summary
QueryService()
           
 
Method Summary
 void clearNamespaces()
           
 String getName()
           
 String getNamespace(String prefix)
           
 String getVersion()
           
 org.xmldb.api.base.ResourceSet query(String query)
           
 org.xmldb.api.base.ResourceSet queryResource(String name, String query)
           
 void removeNamespace(String prefix)
           
 void setCollection(org.xmldb.api.base.Collection collection)
           
 void setNamespace(String prefix, String namespaceURI)
           
 
Methods inherited from class org.apache.xindice.client.xmldb.CommonConfigurable
getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xmldb.api.base.Configurable
getProperty, setProperty
 

Field Detail

queryLang

protected String queryLang
Constructor Detail

QueryService

public QueryService()
Method Detail

getVersion

public String getVersion()
Specified by:
getVersion in interface org.xmldb.api.base.Service

getName

public String getName()
Specified by:
getName in interface org.xmldb.api.base.Service

setCollection

public void setCollection(org.xmldb.api.base.Collection collection)
Specified by:
setCollection in interface org.xmldb.api.base.Service

queryResource

public org.xmldb.api.base.ResourceSet queryResource(String name,
                                                    String query)
                                             throws org.xmldb.api.base.XMLDBException
Throws:
org.xmldb.api.base.XMLDBException

clearNamespaces

public void clearNamespaces()

getNamespace

public String getNamespace(String prefix)

setNamespace

public void setNamespace(String prefix,
                         String namespaceURI)

query

public org.xmldb.api.base.ResourceSet query(String query)
                                     throws org.xmldb.api.base.XMLDBException
Throws:
org.xmldb.api.base.XMLDBException

removeNamespace

public void removeNamespace(String prefix)
                     throws org.xmldb.api.base.XMLDBException
Throws:
org.xmldb.api.base.XMLDBException

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.