|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines a XMLDBDatSource interface for datasources to XML databases. The interface is similar to a standard javax.sql.DataSource except that as XML:DB apis require connections to each collection seperately in a XML database the usual method of getting a connection is to supply the collection path to get a connection to.
Method Summary | |
org.xmldb.api.base.Collection |
getCollection()
Return a XML:DB Collection connection to the XML:DB database. |
org.xmldb.api.base.Collection |
getCollection(java.lang.String collectionPath)
Return a XML:DB Collection connection to the XML:DB database for a specified collection given the collection path. |
org.xmldb.api.base.Collection |
getCollection(java.lang.String username,
java.lang.String password,
java.lang.String collectionPath)
Return a XML:DB Collection connection to the XML:DB database for a specified collection given the collection path and user connection details username and password |
Method Detail |
public org.xmldb.api.base.Collection getCollection() throws org.xmldb.api.base.XMLDBException
org.xmldb.api.base.XMLDBException
- if the collection can not be obtainedpublic org.xmldb.api.base.Collection getCollection(java.lang.String collectionPath) throws org.xmldb.api.base.XMLDBException
collectionPath
- the full collection path to the collection to get for. i.e. /db/plays/shakespeare
org.xmldb.api.base.XMLDBException
public org.xmldb.api.base.Collection getCollection(java.lang.String username, java.lang.String password, java.lang.String collectionPath) throws org.xmldb.api.base.XMLDBException
username
- the connection usernamepassword
- the connection passwordcollectionPath
-
org.xmldb.api.base.XMLDBException
- if the collection can not be obtained
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |