|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xindice.client.xmldb.CommonConfigurable
org.apache.xindice.client.xmldb.embed.DatabaseImpl
org.apache.xindice.client.xmldb.managed.DatabaseImpl
The xindice-managed is a xindice client driver that requires third party code to create the database within the constraints of the client classloader. Typically it is used in embedded environments where database creation is managed by the third party code. This driver will throw an exception if the database instance you are trying to access hasn't been registered.
| Field Summary | |
static String |
DRIVER_NAME
Prefix used to denote XML:DB URI's that should use this driver |
| Fields inherited from class org.apache.xindice.client.xmldb.embed.DatabaseImpl |
PROP_XINDICE_CONFIGURATION, PROP_XINDICE_DB_HOME, PROP_XINDICE_MANAGED, SYSPROP_XINDICE_CONFIGURATION, SYSPROP_XINDICE_DB_HOME, SYSPROP_XINDICE_MANAGED |
| Constructor Summary | |
DatabaseImpl()
Creates new DatabaseImpl instance. |
|
DatabaseImpl(CommonConfigurable config)
Create a new DatabaseImpl object with a copy of the properties from the config parameter. |
|
| Method Summary | |
boolean |
acceptsURI(String uri)
Determines whether this Database implementation can handle
the URI. |
String |
getName()
Returns the prefix used in XML:DB to denote URI's that this driver can handle. |
String[] |
getNames()
Returns an array of names associated with the Database instance. |
protected boolean |
isManaged()
|
| Methods inherited from class org.apache.xindice.client.xmldb.embed.DatabaseImpl |
getCollection, getConfiguration, getConformanceLevel |
| Methods inherited from class org.apache.xindice.client.xmldb.CommonConfigurable |
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 |
public static final String DRIVER_NAME
| Constructor Detail |
public DatabaseImpl()
DatabaseImpl instance.
public DatabaseImpl(CommonConfigurable config)
config parameter.
This allows to pass properties such as PROP_XINDICE_CONFIGURATION
to this instance. Usually this is done by instantiating not this
class, but DatabaseImpl,
set all the necessary parameters, and then get a collection.
config - from which the initial parameters for this
DatabaseImpl object are copied.| Method Detail |
protected boolean isManaged()
isManaged in class DatabaseImplpublic boolean acceptsURI(String uri)
DatabaseImplDatabase implementation can handle
the URI. It should return true if the Database instance knows how to
handle the URI and false otherwise.
acceptsURI in interface org.xmldb.api.base.DatabaseacceptsURI in class DatabaseImpluri - the URI to check for.
public String getName()
DatabaseImpl
getName in interface org.xmldb.api.base.DatabasegetName in class DatabaseImplpublic String[] getNames()
DatabaseImpl
getNames in interface org.xmldb.api.base.DatabasegetNames in class DatabaseImpl
|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||