uk.co.lakesidetech.springxmldb.dao.exist
Class ExistDatabaseManageXMLDBDao

java.lang.Object
  extended byuk.co.lakesidetech.springxmldb.dao.AbstractXMLDBDao
      extended byuk.co.lakesidetech.springxmldb.dao.exist.ExistDatabaseManageXMLDBDao
All Implemented Interfaces:
IDatabaseManageXMLDBDao

public class ExistDatabaseManageXMLDBDao
extends AbstractXMLDBDao
implements IDatabaseManageXMLDBDao

Implementation of IDatabaseManageXMLDBDao using the eXist specifc service for managing the database

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
ExistDatabaseManageXMLDBDao()
           
 
Method Summary
protected  org.exist.xmldb.DatabaseInstanceManager getDatabaseInstanceManagerFromCollection(org.xmldb.api.base.Collection collection)
          Returns a eXist DatabaseInstanceManager for a given collection
 void shutdown()
          Shutdown the database at the URI given by the dao datasource
 
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

ExistDatabaseManageXMLDBDao

public ExistDatabaseManageXMLDBDao()
Method Detail

getDatabaseInstanceManagerFromCollection

protected org.exist.xmldb.DatabaseInstanceManager getDatabaseInstanceManagerFromCollection(org.xmldb.api.base.Collection collection)
                                                                                    throws org.xmldb.api.base.XMLDBException
Returns a eXist DatabaseInstanceManager for a given collection

Parameters:
collection - the collection to get
Returns:
a DatabaseInstanceManager
Throws:
org.xmldb.api.base.XMLDBException - if service is not supported (database is not eXist?)

shutdown

public void shutdown()
              throws XMLDBDataAccessException
Description copied from interface: IDatabaseManageXMLDBDao
Shutdown the database at the URI given by the dao datasource

Specified by:
shutdown in interface IDatabaseManageXMLDBDao
Throws:
XMLDBDataAccessException
See Also:
IDatabaseManageXMLDBDao.shutdown()