|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.sixdml.excelon.xlnSixdmlDatabase
xlnSixdmlDatabase.java The database object that represents an interface to the eXcelon DXE database. It represents an XMLStore whose name is "sixdml". Created: Sat Jan 12 02:15:15 2002
| Field Summary | |
private org.sixdml.excelon.xlnSixdmlCollection |
dbRoot
The root collection of the database. |
private HashMap |
properties
This is the table of properties for the needed by the Configurable interface. |
private com.exln.dxe.Session |
session
A session provides the context in which an application can access XMLStores. |
private com.exln.dxe.XMLStore |
xmlStore
The underlying eXcelon DXE XMLStore where this database is stored. |
| Constructor Summary | |
xlnSixdmlDatabase()
Initializes the class. |
|
| Method Summary | |
boolean |
acceptsURI(String uri)
Determines whether this Database implementation can handle the URI. |
org.sixdml.dbmanagement.SixdmlIndex |
createIndex(String name,
HashMap indexFields)
Creates an index with a name, an indexFields table and an underlying DXE database. |
Collection |
getCollection(String uri,
String username,
String password)
Retrieves a Collection instance based on the URI provided in the uri parameter. |
String |
getConformanceLevel()
Returns the XML:DB API Conformance level for the implementation. |
String |
getName()
Returns the name associated with the Database instance. |
String |
getProperty(String name)
Returns the value of the property identified by name. |
Resource |
getResource(String uri,
String username,
String password)
Gets the specified resource from the database. |
Service |
getService(String name,
String version)
Returns all the top level documents and collections in the database. |
Service[] |
getServices()
Provides a list of all services known to the collection. |
org.sixdml.dbmanagement.SixdmlIndexType[] |
getSupportedIndexTypes()
Gets the types of index that are supported by the this database. |
org.sixdml.transform.SixdmlTransformType[] |
getSupportedTransformTypes()
Gets the types of transforms that are supported by the this database. |
static void |
main(String[] args)
Main used for testing class. |
void |
setProperty(String name,
String value)
Sets the property name to have the value provided in value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private org.sixdml.excelon.xlnSixdmlCollection dbRoot
private com.exln.dxe.Session session
private com.exln.dxe.XMLStore xmlStore
private HashMap properties
Configurable interface.
Configurable| Constructor Detail |
public xlnSixdmlDatabase()
| Method Detail |
public org.sixdml.dbmanagement.SixdmlIndex createIndex(String name,
HashMap indexFields)
throws UnsupportedIndexTypeException
createIndex in interface SixdmlDatabasename - the name of the index.indexFields - the index fields for the class.
XMLDBException - if an error occurs.
UnsupportedIndexTypeException - if the type of index requested is unsupported by the
database.public String getProperty(String name)
getProperty in interface Configurable
public void setProperty(String name,
String value)
setProperty in interface Configurablename - the name of the property to set.value - the value to set for the property.
public Resource getResource(String uri,
String username,
String password)
getResource in interface SixdmlDatabaseuri - the name or path to the resource to obtain.username - The username to use for authentication to the database or
null if the database does not support authentication.password - The password to use for authentication to the database or
null if the database does not support authentication.
public org.sixdml.dbmanagement.SixdmlIndexType[] getSupportedIndexTypes()
getSupportedIndexTypes in interface SixdmlDatabaseXMLDBException - if an error occurs.public org.sixdml.transform.SixdmlTransformType[] getSupportedTransformTypes()
getSupportedTransformTypes in interface SixdmlDatabaseXMLDBException - if an error occurs.public String getName()
getName in interface Databasepublic String getConformanceLevel()
getConformanceLevel in interface Databasepublic boolean acceptsURI(String uri)
acceptsURI in interface Databaseuri - the URI to check for.
public Collection getCollection(String uri,
String username,
String password)
getCollection in interface Databaseuri - the URI to use to locate the collection.username - The username to use for authentication to the database or
null if the database does not support authentication.password - The password to use for authentication to the database or
null if the database does not support authentication.
XMLDBException - if no such collection exists
public Service getService(String name,
String version)
getService in interface SixdmlDatabasename - the name of the service to return.version - the version number of the service to return.
public Service[] getServices()
getServices in interface SixdmlDatabase
public static void main(String[] args)
throws Exception
args - IGNORED
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||