|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.sixdml.xindice.xiSixdmlDatabase
xiSixdmlDatabase.java The database object that represents an interface to the Xindice database.
| Field Summary | |
(package private) Database |
database
The Xindice Database object wrapped by this class. |
private static xiSixdmlDatabase |
db
Used for retrieving services. |
(package private) String |
driver
Class name of Xindice database driver. |
| Constructor Summary | |
xiSixdmlDatabase()
Initializes the class. |
|
| Method Summary | |
boolean |
acceptsURI(String str)
Determines whether this Database implementation can handle the URI. |
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. |
(package private) static xiSixdmlDatabase |
getDB()
Creates singleton xiSixdmlDatabase instance for use in retrieving resources and collections. |
String |
getName()
Returns the name associated with the Database instance. |
String |
getProperty(String str)
Returns the value of the property identified by name. |
Resource |
getResource(String name,
String username,
String password)
Gets the specified resource from the database. |
Service |
getService(String name,
String version)
Returns a Service instance for the requested service name and version. |
Service |
getService(String name,
String version,
xiSixdmlCollection collection)
Returns a Service instance for the requested service name and version. |
Service[] |
getServices()
Provides a list of all services known to the collection. |
(package private) Service[] |
getServices(xiSixdmlCollection collection)
Provides a list of all services known to the collection. |
SixdmlIndexType[] |
getSupportedIndexTypes()
Gets the types of index that are supported by the this database. |
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 str,
String str1)
Sets the property name to have the value provided in value. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
String driver
Database database
private static xiSixdmlDatabase db
getService(String, String),
getServices()| Constructor Detail |
public xiSixdmlDatabase()
| Method Detail |
static xiSixdmlDatabase getDB()
db
public Resource getResource(String name,
String username,
String password)
throws XMLDBException
getResource in interface SixdmlDatabasename - the resource to obtain. This should be in the format
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 an error occurs.ErrorCodes.NO_SUCH_COLLECTION,
ErrorMessages.DUPLICATE_COLLECTION
public SixdmlIndexType[] getSupportedIndexTypes()
throws XMLDBException
XMLDBException - if an error occurs.
public SixdmlTransformType[] getSupportedTransformTypes()
throws XMLDBException
XMLDBException - if an error occurs.
public Service[] getServices()
throws XMLDBException
getServices in interface SixdmlDatabaseXMLDBException - if an error occurs.
Service[] getServices(xiSixdmlCollection collection)
throws XMLDBException
collection - The SixdmlCollection to use to initialize the xiSixdmlCollectionManagementService.XMLDBException - if an error occurs.
public Service getService(String name,
String version)
throws XMLDBException
getService in interface SixdmlDatabasename - the name of the service to return.version - the version number of the service to return.XMLDBException - if an error occurs.
public Service getService(String name,
String version,
xiSixdmlCollection collection)
throws XMLDBException
name - the name of the service to return.version - the version number of the service to return.collection - The SixdmlCollection to use to initialize the xiSixdmlCollectionManagementService.XMLDBException - if an error occurs.
public boolean acceptsURI(String str)
throws XMLDBException
acceptsURI in interface Databaseuri - the URI to check for.
public Collection getCollection(String uri,
String username,
String password)
throws XMLDBException
getCollection in interface Databaseuri - the URI to use to locate the collection. This must be a hierarchical directory
path NOT a URI scheme such as xindice:// or xmldb://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 String getConformanceLevel()
throws XMLDBException
getConformanceLevel in interface Database
public String getName()
throws XMLDBException
getName in interface Database
public String getProperty(String str)
throws XMLDBException
getProperty in interface Configurable
public void setProperty(String str,
String str1)
throws XMLDBException
setProperty in interface Configurablename - the name of the property to set.value - the value to set for the property.
public static void main(String[] args)
throws Exception
args - IGNORED
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||