uk.co.lakesidetech.springxmldb.xmldb.exist
Class ExistXMLDBAPIXQueryWrapper

java.lang.Object
  extended byuk.co.lakesidetech.springxmldb.xmldb.exist.ExistXMLDBAPIXQueryWrapper
All Implemented Interfaces:
org.xmldb.api.base.Configurable, org.xmldb.api.base.Service, org.xmldb.api.modules.XQueryService

public class ExistXMLDBAPIXQueryWrapper
extends java.lang.Object
implements org.xmldb.api.modules.XQueryService

A wrapper for the eXist XQuery service which implements the XML:DB XQueryService

Author:
Stuart Eccles

Constructor Summary
ExistXMLDBAPIXQueryWrapper(org.exist.xmldb.XQueryService underlyingExistService, org.xmldb.api.base.Collection collection)
           
 
Method Summary
 void clearNamespaces()
           
 org.xmldb.api.base.CompiledExpression compile(java.lang.String arg0)
           
 void declareVariable(java.lang.String arg0, java.lang.Object arg1)
           
 org.xmldb.api.base.ResourceSet execute(org.xmldb.api.base.CompiledExpression arg0)
           
 java.lang.String getName()
           
 java.lang.String getNamespace(java.lang.String arg0)
           
 java.lang.String getProperty(java.lang.String arg0)
           
 java.lang.String getVersion()
           
 org.xmldb.api.base.ResourceSet query(java.lang.String arg0)
           
 org.xmldb.api.base.ResourceSet queryResource(java.lang.String arg0, java.lang.String arg1)
           
 void removeNamespace(java.lang.String arg0)
           
 void setCollection(org.xmldb.api.base.Collection arg0)
           
 void setModuleLoadPath(java.lang.String arg0)
           
 void setNamespace(java.lang.String arg0, java.lang.String arg1)
           
 void setProperty(java.lang.String arg0, java.lang.String arg1)
           
 void setXPathCompatibility(boolean arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExistXMLDBAPIXQueryWrapper

public ExistXMLDBAPIXQueryWrapper(org.exist.xmldb.XQueryService underlyingExistService,
                                  org.xmldb.api.base.Collection collection)
Method Detail

setNamespace

public void setNamespace(java.lang.String arg0,
                         java.lang.String arg1)
                  throws org.xmldb.api.base.XMLDBException
Specified by:
setNamespace in interface org.xmldb.api.modules.XQueryService
Throws:
org.xmldb.api.base.XMLDBException

getNamespace

public java.lang.String getNamespace(java.lang.String arg0)
                              throws org.xmldb.api.base.XMLDBException
Specified by:
getNamespace in interface org.xmldb.api.modules.XQueryService
Throws:
org.xmldb.api.base.XMLDBException

removeNamespace

public void removeNamespace(java.lang.String arg0)
                     throws org.xmldb.api.base.XMLDBException
Specified by:
removeNamespace in interface org.xmldb.api.modules.XQueryService
Throws:
org.xmldb.api.base.XMLDBException

clearNamespaces

public void clearNamespaces()
                     throws org.xmldb.api.base.XMLDBException
Specified by:
clearNamespaces in interface org.xmldb.api.modules.XQueryService
Throws:
org.xmldb.api.base.XMLDBException

query

public org.xmldb.api.base.ResourceSet query(java.lang.String arg0)
                                     throws org.xmldb.api.base.XMLDBException
Specified by:
query in interface org.xmldb.api.modules.XQueryService
Throws:
org.xmldb.api.base.XMLDBException

queryResource

public org.xmldb.api.base.ResourceSet queryResource(java.lang.String arg0,
                                                    java.lang.String arg1)
                                             throws org.xmldb.api.base.XMLDBException
Specified by:
queryResource in interface org.xmldb.api.modules.XQueryService
Throws:
org.xmldb.api.base.XMLDBException

compile

public org.xmldb.api.base.CompiledExpression compile(java.lang.String arg0)
                                              throws org.xmldb.api.base.XMLDBException
Specified by:
compile in interface org.xmldb.api.modules.XQueryService
Throws:
org.xmldb.api.base.XMLDBException

execute

public org.xmldb.api.base.ResourceSet execute(org.xmldb.api.base.CompiledExpression arg0)
                                       throws org.xmldb.api.base.XMLDBException
Specified by:
execute in interface org.xmldb.api.modules.XQueryService
Throws:
org.xmldb.api.base.XMLDBException

declareVariable

public void declareVariable(java.lang.String arg0,
                            java.lang.Object arg1)
                     throws org.xmldb.api.base.XMLDBException
Specified by:
declareVariable in interface org.xmldb.api.modules.XQueryService
Throws:
org.xmldb.api.base.XMLDBException

setXPathCompatibility

public void setXPathCompatibility(boolean arg0)
Specified by:
setXPathCompatibility in interface org.xmldb.api.modules.XQueryService

setModuleLoadPath

public void setModuleLoadPath(java.lang.String arg0)
Specified by:
setModuleLoadPath in interface org.xmldb.api.modules.XQueryService

getName

public java.lang.String getName()
                         throws org.xmldb.api.base.XMLDBException
Specified by:
getName in interface org.xmldb.api.base.Service
Throws:
org.xmldb.api.base.XMLDBException

getVersion

public java.lang.String getVersion()
                            throws org.xmldb.api.base.XMLDBException
Specified by:
getVersion in interface org.xmldb.api.base.Service
Throws:
org.xmldb.api.base.XMLDBException

setCollection

public void setCollection(org.xmldb.api.base.Collection arg0)
                   throws org.xmldb.api.base.XMLDBException
Specified by:
setCollection in interface org.xmldb.api.base.Service
Throws:
org.xmldb.api.base.XMLDBException

getProperty

public java.lang.String getProperty(java.lang.String arg0)
                             throws org.xmldb.api.base.XMLDBException
Specified by:
getProperty in interface org.xmldb.api.base.Configurable
Throws:
org.xmldb.api.base.XMLDBException

setProperty

public void setProperty(java.lang.String arg0,
                        java.lang.String arg1)
                 throws org.xmldb.api.base.XMLDBException
Specified by:
setProperty in interface org.xmldb.api.base.Configurable
Throws:
org.xmldb.api.base.XMLDBException