org.ozoneDB.xml.cli
Class DatabaseImpl

java.lang.Object
  |
  +--org.ozoneDB.xml.cli.AbstractConfigurable
        |
        +--org.ozoneDB.xml.cli.DatabaseImpl
All Implemented Interfaces:
Configurable, Database

public class DatabaseImpl
extends AbstractConfigurable
implements Database

Version:
$Revision: 1.1 $
Author:
SMB

Field Summary
static java.lang.String CONFORMANCE_LEVEL
           
static java.lang.String DATABASE_NAME
           
 
Constructor Summary
DatabaseImpl()
          Zero-argument constructor.
 
Method Summary
 boolean acceptsURI(java.lang.String uri)
          acceptsURI determines whether this Database implementation can handle the URI.
 Collection getCollection(java.lang.String uri)
          Retrieves a Collection instance based on the URI provided in the uri parameter.
 java.lang.String getConformanceLevel()
          Returns the XML:DB API Conformance level for the implementation.
 java.lang.String getName()
          Returns the name associated with the Configurable object.
 
Methods inherited from class org.ozoneDB.xml.cli.AbstractConfigurable
getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xmldb.api.base.Configurable
getProperty, setProperty
 

Field Detail

CONFORMANCE_LEVEL

public static java.lang.String CONFORMANCE_LEVEL

DATABASE_NAME

public static java.lang.String DATABASE_NAME
Constructor Detail

DatabaseImpl

public DatabaseImpl()
Zero-argument constructor.

Method Detail

getName

public java.lang.String getName()
                         throws XMLDBException
Description copied from interface: Configurable
Returns the name associated with the Configurable object.

Specified by:
getName in interface Configurable
Returns:
the name of the object.
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.

getCollection

public Collection getCollection(java.lang.String uri)
                         throws XMLDBException
Description copied from interface: Database
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().

Specified by:
getCollection in interface Database
Parameters:
uri - the URI to use to locate the collection.
Returns:
The Collection instance
Throws:
XMLDBException - 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.

acceptsURI

public boolean acceptsURI(java.lang.String uri)
                   throws XMLDBException
Description copied from interface: Database
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.

Specified by:
acceptsURI in interface Database
Parameters:
uri - the URI to check for.
Returns:
true if the URI can be handled, false otherwise.
Throws:
XMLDBException - 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.

getConformanceLevel

public java.lang.String getConformanceLevel()
                                     throws XMLDBException
Description copied from interface: Database
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.

Specified by:
getConformanceLevel in interface Database
Returns:
the XML:DB API conformance level for this implementation.
Throws:
XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.


Copyright © 2002 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.