|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xquark.xml.xdbc.XMLDriverManager
This class is used for managing a set of drivers and/or connections.
Method Summary | |
static void |
deregisterDriver(XMLDriver driver)
Removes the specified driver from the driver manager list. |
static XMLConnection |
getConnection(java.lang.String uri)
Attempts to establish a connection to the given data source URI. |
static XMLConnection |
getConnection(java.lang.String uri,
java.lang.String user,
java.lang.String password)
Attempts to establish a connection to the given data source URI with a login/password. |
static XMLDataSource |
getDataSource(java.lang.String uri)
Returns a handler to a data source with the specified URI. |
static XMLDriver |
getDriver(java.lang.String uri)
Attempts to locate a driver that understands the given URI. |
static java.util.Iterator |
getDrivers()
Returns an iterator on registered XMLDBC drivers. |
int |
getLoginTimeout()
Gets the maximum time in seconds that all data source objects obtained from the manager can wait when attempting to log in to a data source |
java.io.PrintWriter |
getLogWriter()
Retrieves the default log writer currently used by all data source objects obtained from the manager. |
static void |
registerDriver(XMLDriver driver)
Adds the given driver in the driver manager list. |
void |
setLoginTimeout(int seconds)
Sets the maximum time in seconds that all data source objects obtained from the manager will wait when attempting to log in to a data source. |
static void |
setLogWriter(java.io.PrintWriter writer)
Sets the default logging/tracing java.io.PrintWriter object that is used by all data source objects obtained from the manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static XMLDriver getDriver(java.lang.String uri) throws XMLDBCException
uri
- an URI corresponding to an existing driver.
XMLDBCException
- if a data source access error occurs.public static XMLConnection getConnection(java.lang.String uri) throws XMLDBCException
uri
- an URI corresponding to an existing driver.
XMLDBCException
- if a data source access error occurs.public static XMLConnection getConnection(java.lang.String uri, java.lang.String user, java.lang.String password) throws XMLDBCException
uri
- an URI corresponding to an existing driver.user
- a login to access data source account.password
- a password to access data source account.
XMLDBCException
- if a data source access error occurs.public static XMLDataSource getDataSource(java.lang.String uri) throws XMLDBCException
uri
- an URI corresponding to a data source.
XMLDBCException
- if a data source access error occurs.public static void setLogWriter(java.io.PrintWriter writer)
writer
- the new logging/tracing java.io.PrintWriter object, or null to disable logging and tracingpublic java.io.PrintWriter getLogWriter()
public void setLoginTimeout(int seconds)
seconds
- The login time limit in secondspublic int getLoginTimeout()
public static void registerDriver(XMLDriver driver) throws XMLDBCException
driver
- the new XMLDBC driver that must be registered with the
driver manager.
XMLDBCException
- if a data source access error occurs.public static void deregisterDriver(XMLDriver driver) throws XMLDBCException
driver
- the XMLDBC driver that must be dropped from the driver manager.
XMLDBCException
- if a data source access error occurs.public static java.util.Iterator getDrivers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |