|
dbXML API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.dbxml.client.xmldb.CommonConfigurable | +--org.dbxml.client.xmldb.DatabaseImpl
DatabaseImpl is the XML:DB driver implementation for dbXML. It is the entry point into the dbXML server but is not intended for direct use by users. Users access it indirectly through the XML:DB DatabaseManager implementation. This API is an implementation of the XML:DB API. More information on this API can be found by looking at http://www.xmldb.org/xapi/index.html
The location to find the NamingService ior can be specified by setting the property dbxml.naming.ior using setProperty. By default it will be set to "http://localhost:8080/NamingService" The CORBA ORB implementation can be switched by setting the properties org.omg.CORBA.ORBClass and org.omg.CORBA.ORBSingletonClass with the values provided by your orb vendor. The values are set using setProperty().
Field Summary | |
static java.lang.String |
CONFORMANCE_LEVEL
The XML:DB API Core Level Conformance of this implementation. |
static java.lang.String |
DEFAULT_CORBA_NAME
Default CORBA name service name for the Database instance. |
static java.lang.String |
DEFAULT_NAMING_URI
Default location where the Name service IOR can be located. |
static java.lang.String |
DEFAULT_ORB_CLASS
Default ORB class. |
static java.lang.String |
DEFAULT_ORB_NAMING_PROP
Property name to use to set the naming service up for resolve_initial_refs |
static java.lang.String |
DEFAULT_ORB_SINGLETON_CLASS
Default ORBSingleton class. |
static java.lang.String |
INSTANCE_NAME
Name used in the uri for collections associated with this instance. |
static java.lang.String |
NAMING_PROP
Property name to set when needing to change the location of the naming service URI. |
static java.lang.String |
ORB_CLASS_PROP
Property name to use to set the name of the ORB Class. |
static java.lang.String |
ORB_NAMING_PROP
Property name to use to set the name of the ORB property to use to configure where to find the NameService ref. |
static java.lang.String |
ORB_SINGLETON_CLASS_PROP
Property name to use to set the name of the ORB singleton Class. |
static java.lang.String |
SEP
The characters expected to separate the INSTANCE_NAME from the database name. |
Constructor Summary | |
DatabaseImpl()
Constructor for the DatabaseImpl object |
Method Summary | |
boolean |
acceptsURI(java.lang.String uri)
Used by org.xmldb.api.base.DatabaseManager to determine if this database instance is the proper one to handle a request or not. |
Collection |
getCollection(java.lang.String uri,
java.lang.String username,
java.lang.String password)
Creates a Collection instance using the URI to locate the collection in the dbXML instance. |
java.lang.String |
getConformanceLevel()
Gets the ConformanceLevel attribute of the DatabaseImpl object |
java.lang.String |
getName()
Gets the instance Name |
Methods inherited from class org.dbxml.client.xmldb.CommonConfigurable |
getProperty, setProperty |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xmldb.api.base.Configurable |
getProperty, setProperty |
Field Detail |
public static java.lang.String INSTANCE_NAME
public static java.lang.String SEP
public static java.lang.String CONFORMANCE_LEVEL
public static final java.lang.String DEFAULT_CORBA_NAME
public static final java.lang.String DEFAULT_NAMING_URI
public static final java.lang.String NAMING_PROP
public static final java.lang.String ORB_NAMING_PROP
public static final java.lang.String DEFAULT_ORB_NAMING_PROP
public static final java.lang.String ORB_CLASS_PROP
public static final java.lang.String ORB_SINGLETON_CLASS_PROP
public static final java.lang.String DEFAULT_ORB_CLASS
public static final java.lang.String DEFAULT_ORB_SINGLETON_CLASS
Constructor Detail |
public DatabaseImpl()
Method Detail |
public java.lang.String getName() throws XMLDBException
getName
in interface Database
XMLDBException
- public Collection getCollection(java.lang.String uri, java.lang.String username, java.lang.String password) throws XMLDBException
getCollection
in interface Database
uri
- The URI specifing the location of the collection.XMLDBException
- public java.lang.String getConformanceLevel() throws XMLDBException
getConformanceLevel
in interface Database
XMLDBException
- Description of Exceptionpublic boolean acceptsURI(java.lang.String uri) throws XMLDBException
acceptsURI
in interface Database
uri
- The uri to test - see getCollection for a description of the
format.XMLDBException
-
|
dbXML API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |