|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xindice.client.xmldb.CommonConfigurable | +--org.apache.xindice.client.xmldb.DatabaseImpl
DatabaseImpl is the XML:DB driver implementation for Xindice. It is the entry point into the Xindice 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 xindice.naming.ior using setProperty. By default the system is bootstrapped via HTTP and doesn't use a CORBA naming service. 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 |
CORBA_NAMING_PROP
Property name to use to set the URI where a CORBA name service can be located. |
static java.lang.String |
DEFAULT_BOOTSTRAP_URI
Default location where the bootstrap IOR can be located. |
static java.lang.String |
DEFAULT_CORBA_NAME
Default CORBA name service name for the Database instance. |
static java.lang.String |
INSTANCE_NAME
Name used in the uri for collections associated with this instance. |
static java.lang.String |
ORB_CLASS_PROP
Property name to use to set the name of the ORB Class. |
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 Xindice 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.apache.xindice.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_BOOTSTRAP_URI
public static final java.lang.String CORBA_NAMING_PROP
public static final java.lang.String ORB_CLASS_PROP
public static final java.lang.String ORB_SINGLETON_CLASS_PROP
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
-
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |