|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.lakesidetech.springxmldb.dao.AbstractXMLDBDao
A abstract Dao object for accessing XML databases. This class provides base functionality for creating daos which access XML databases mainly through the XML:DB apis.
http://xmldb-org.sourceforge.net/xapi/api/index.html
Field Summary | |
protected XMLDBDataSource |
dataSource
the database source for the xml database |
static java.lang.String |
RESOURCETYPE_XMLRESOURCE
|
protected static java.lang.String |
XPATHQUERYSERVICE_NAME
|
protected static java.lang.String |
XPATHQUERYSERVICE_VERSION
|
protected static java.lang.String |
XUPDATEQUERYSERVICE_NAME
|
protected static java.lang.String |
XUPDATEQUERYSERVICE_VERSION
|
Constructor Summary | |
AbstractXMLDBDao()
|
Method Summary | |
XMLDBDataSource |
getDataSource()
|
java.util.Map |
getNameSpaces()
|
protected org.xmldb.api.modules.XPathQueryService |
getXPathQueryServiceFromCollection(org.xmldb.api.base.Collection collection)
Returns a configured XPathQueryService from a given collection |
protected org.xmldb.api.modules.XUpdateQueryService |
getXUpdateServiceFromCollection(org.xmldb.api.base.Collection collection)
Returns a configured XUpdateQueryService from a given collection |
protected java.util.Map |
processResourceSetToDocuments(org.xmldb.api.base.ResourceSet resultSet)
Processes a resource set of XML:DB resources (providing only they are XML type) to a Map of XML DOM documents keyed on the id of the document. |
protected java.util.Map |
processResourceSetToStrings(org.xmldb.api.base.ResourceSet resultSet)
|
void |
setDataSource(XMLDBDataSource dataSource)
|
void |
setNameSpaces(java.util.Map map)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String RESOURCETYPE_XMLRESOURCE
protected static final java.lang.String XUPDATEQUERYSERVICE_NAME
protected static final java.lang.String XUPDATEQUERYSERVICE_VERSION
protected static final java.lang.String XPATHQUERYSERVICE_VERSION
protected static final java.lang.String XPATHQUERYSERVICE_NAME
protected XMLDBDataSource dataSource
Constructor Detail |
public AbstractXMLDBDao()
Method Detail |
protected org.xmldb.api.modules.XPathQueryService getXPathQueryServiceFromCollection(org.xmldb.api.base.Collection collection) throws org.xmldb.api.base.XMLDBException
collection
- The XML:DB collection
org.xmldb.api.base.XMLDBException
- If the collection cannot provide that serviceprotected org.xmldb.api.modules.XUpdateQueryService getXUpdateServiceFromCollection(org.xmldb.api.base.Collection collection) throws org.xmldb.api.base.XMLDBException
collection
- The XML:DB collection
org.xmldb.api.base.XMLDBException
- If the collection cannot provide that serviceprotected java.util.Map processResourceSetToDocuments(org.xmldb.api.base.ResourceSet resultSet) throws XMLDBDataAccessException
resultSet
- The XML:DB ResourceSet
XMLDBDataAccessException
protected java.util.Map processResourceSetToStrings(org.xmldb.api.base.ResourceSet resultSet) throws XMLDBDataAccessException
XMLDBDataAccessException
public java.util.Map getNameSpaces()
public void setNameSpaces(java.util.Map map)
map
- public XMLDBDataSource getDataSource()
public void setDataSource(XMLDBDataSource dataSource)
dataSource
- The dataSource to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |