uk.co.lakesidetech.springxmldb.dao
Class BaseXPathXMLDBDao

java.lang.Object
  extended byuk.co.lakesidetech.springxmldb.dao.AbstractXMLDBDao
      extended byuk.co.lakesidetech.springxmldb.dao.BaseXPathXMLDBDao
All Implemented Interfaces:
IXPathXMLDBDao

public class BaseXPathXMLDBDao
extends AbstractXMLDBDao
implements IXPathXMLDBDao

Implementation of IXPathXMLDBDao using XML:DB apis to be reusable across any XML database which supports a pure XML:DB api

Author:
Stuart Eccles

Field Summary
 
Fields inherited from class uk.co.lakesidetech.springxmldb.dao.AbstractXMLDBDao
dataSource, RESOURCETYPE_XMLRESOURCE, XPATHQUERYSERVICE_NAME, XPATHQUERYSERVICE_VERSION, XUPDATEQUERYSERVICE_NAME, XUPDATEQUERYSERVICE_VERSION
 
Constructor Summary
BaseXPathXMLDBDao()
           
 
Method Summary
 java.util.Map queryResourceWithXPathCollectionAsDOM(java.lang.String resourceId, java.lang.String xPathQuery, java.lang.String collectionPath)
          Query a particular with xpath and return a map of results with keys of the resource IDs and values of w3c DOM documents of the results (not necessarily the resource documents, but the result of the query)
 java.util.Map queryResourceWithXPathCollectionAsString(java.lang.String resourceId, java.lang.String xPathQuery, java.lang.String collectionPath)
          Query a particular with xpath and return a map of results with keys of the resource IDs and values of String xml of the results (not necessarily the resource documents, but the result of the query)
 java.util.Map queryWithXPathCollectionAsDOM(java.lang.String xPathQuery, java.lang.String collectionPath)
          Query a collection with xpath and return a map of results with keys of the resource IDs and values of w3c DOM documents of the results (not necessarily the resource documents, but the result of the query)
 java.util.Map queryWithXPathCollectionAsString(java.lang.String xPathQuery, java.lang.String collectionPath)
          Query a collection with xpath and return a map of results with keys of the resource IDs and values of Strings of the results (not necessarily the resource documents, but the result of the query)
 
Methods inherited from class uk.co.lakesidetech.springxmldb.dao.AbstractXMLDBDao
getDataSource, getNameSpaces, getXPathQueryServiceFromCollection, getXUpdateServiceFromCollection, processResourceSetToDocuments, processResourceSetToStrings, setDataSource, setNameSpaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseXPathXMLDBDao

public BaseXPathXMLDBDao()
Method Detail

queryWithXPathCollectionAsDOM

public java.util.Map queryWithXPathCollectionAsDOM(java.lang.String xPathQuery,
                                                   java.lang.String collectionPath)
                                            throws XMLDBDataAccessException
Description copied from interface: IXPathXMLDBDao
Query a collection with xpath and return a map of results with keys of the resource IDs and values of w3c DOM documents of the results (not necessarily the resource documents, but the result of the query)

Specified by:
queryWithXPathCollectionAsDOM in interface IXPathXMLDBDao
Parameters:
xPathQuery -
collectionPath -
Returns:
Throws:
XMLDBDataAccessException
See Also:
IXPathXMLDBDao.queryWithXPathCollectionAsDOM(java.lang.String, java.lang.String)

queryWithXPathCollectionAsString

public java.util.Map queryWithXPathCollectionAsString(java.lang.String xPathQuery,
                                                      java.lang.String collectionPath)
                                               throws XMLDBDataAccessException
Description copied from interface: IXPathXMLDBDao
Query a collection with xpath and return a map of results with keys of the resource IDs and values of Strings of the results (not necessarily the resource documents, but the result of the query)

Specified by:
queryWithXPathCollectionAsString in interface IXPathXMLDBDao
Parameters:
xPathQuery -
collectionPath -
Returns:
Throws:
XMLDBDataAccessException
See Also:
IXPathXMLDBDao.queryWithXPathCollectionAsString(java.lang.String, java.lang.String)

queryResourceWithXPathCollectionAsDOM

public java.util.Map queryResourceWithXPathCollectionAsDOM(java.lang.String resourceId,
                                                           java.lang.String xPathQuery,
                                                           java.lang.String collectionPath)
                                                    throws XMLDBDataAccessException
Description copied from interface: IXPathXMLDBDao
Query a particular with xpath and return a map of results with keys of the resource IDs and values of w3c DOM documents of the results (not necessarily the resource documents, but the result of the query)

Specified by:
queryResourceWithXPathCollectionAsDOM in interface IXPathXMLDBDao
Parameters:
resourceId -
xPathQuery -
collectionPath -
Returns:
Throws:
XMLDBDataAccessException
See Also:
IXPathXMLDBDao.queryResourceWithXPathCollectionAsDOM(java.lang.String, java.lang.String, java.lang.String)

queryResourceWithXPathCollectionAsString

public java.util.Map queryResourceWithXPathCollectionAsString(java.lang.String resourceId,
                                                              java.lang.String xPathQuery,
                                                              java.lang.String collectionPath)
                                                       throws XMLDBDataAccessException
Description copied from interface: IXPathXMLDBDao
Query a particular with xpath and return a map of results with keys of the resource IDs and values of String xml of the results (not necessarily the resource documents, but the result of the query)

Specified by:
queryResourceWithXPathCollectionAsString in interface IXPathXMLDBDao
Parameters:
resourceId -
xPathQuery -
collectionPath -
Returns:
Throws:
XMLDBDataAccessException
See Also:
IXPathXMLDBDao.queryResourceWithXPathCollectionAsString(java.lang.String, java.lang.String, java.lang.String)