|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object swpatho.ap1.editor.db.BefundDatabase
A Database establishes a connection with a XML Database which stores the XML data and supports the XML:DB API. It is used to query the underlying XML database and improves query performance by caching the queries and their results. Furthermore, it provides access to the collections and services
Constructor Summary | |
BefundDatabase(java.lang.String DBDriver,
java.lang.String befundCollectionPath)
Creates a Database object with the given parameters. |
Method Summary | |
void |
close()
Closes a Database Object so that all internals are properly closed and (hopefully) no memory leaks occur. |
Collection |
getbefundCollection()
Returns the collection for this Database |
java.lang.String |
getbefundCollectionPath()
Returns the currently set collection path |
java.lang.String |
getDBDriver()
Returns the database driver that was used in this Database object to establish a connection with the XML database. |
XPathQueryService |
getQueryService()
Returns the service for this Database |
ResourceSet |
query(java.lang.String xpath)
Queries the database |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BefundDatabase(java.lang.String DBDriver, java.lang.String befundCollectionPath) throws DBException
DBDriver
- The driver for the database,
e.g. "org.apache.xindice.client.xmldb.DatabaseImpl"
for Xindice 1.0befundCollectionPath
- The path to the collection in
the database,
e.g. "xmldb:xindice:///db/Befunde"
DBException
- When any of the parameters is null or if
cacheSize is <= 0.Method Detail |
public java.lang.String getbefundCollectionPath()
public java.lang.String getDBDriver()
public Collection getbefundCollection()
public XPathQueryService getQueryService()
public ResourceSet query(java.lang.String xpath) throws DBException
xpath
- The XPath query that should be executed
DBException
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |