| |
|
| org.xmldb.api.base.Database
All known Subclasses: org.ozoneDB.xml.cli.DatabaseImpl,
Database | public interface Database extends Configurable(Code) | | Database is an encapsulation of the database driver
functionality that is
necessary to access an XML database. Each vendor must provide their own
implmentation of the Database interface. The implementation
is registered with the
DatabaseManager to provide access to the resources of the XML database.
In general usage client applications should only access Database
implementations directly during initialization.
|
acceptsURI | boolean acceptsURI(String uri) throws XMLDBException(Code) | | acceptsURI determines whether this Database implementation
can handle the URI. It should return true
if the Database instance knows how to handle the URI and false otherwise.
Parameters: uri - the URI to check for. true if the URI can be handled, false otherwise. exception: XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendorspecific errors that occur.
ErrroCodes.INVALID_URI If the URI is not in a valid format.
|
getCollection | Collection getCollection(String uri) throws XMLDBException(Code) | | Retrieves a Collection instance based on the URI provided
in the uri parameter. The format of the URI is defined in the
documentation for DatabaseManager.getCollection().
Parameters: uri - the URI to use to locate the collection. The Collection instance exception: XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendorspecific errors that occur.
ErrroCodes.INVALID_URI If the URI is not in a valid format.
|
getConformanceLevel | String getConformanceLevel() throws XMLDBException(Code) | | Returns the XML:DB API Conformance level for the implementation. This can
be used by client programs to determine what functionality is available to
them.
the XML:DB API conformance level for this implementation. exception: XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendorspecific errors that occur.
|
|
|
|