Configurable
, Database
public class DatabaseImpl extends SimpleDatabase
Constructor | Description |
---|---|
DatabaseImpl() |
Modifier and Type | Method | Description |
---|---|---|
Collection |
getCollection(java.lang.String uri,
java.lang.String username,
java.lang.String password) |
Retrieves a
Collection instance based on the URI provided
in the uri parameter. |
getProperty, setProperty
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperty, setProperty
acceptsURI, getConformanceLevel, getName, getNames
public Collection getCollection(java.lang.String uri, java.lang.String username, java.lang.String password) throws XMLDBException
Collection
instance based on the URI provided
in the uri
parameter. The URI format for this implementation
is ref:///path where path is a path in the file system. To locate the data
files the database expects a directory data to exist in the current
directory.getCollection
in interface Database
getCollection
in class SimpleDatabase
uri
- the URI to use to locate the collection.password
- The password to use for authentication to the database or
null if the database does not support authentication.Collection
instanceXMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.ErrroCodes.INVALID_URI
If the URI is not in a valid format. ErrroCodes.PERMISSION_DENIED
If the username
and password
were not accepted by the database.Copyright (C) XML:DB Initiative. All rights reserved.%lt;/font>