com.softwareag.xtools.quip.xqueryAPI
Class DriverManager
java.lang.Object
|
+--com.softwareag.xtools.quip.xqueryAPI.DriverManager
- public class DriverManager
- extends Object
The DriverManager is the entrypoint for using XQuery drivers.
- Version:
- 1.0
- Author:
- Patrick.Lehti@softwareag.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DriverManager
public DriverManager()
deregisterDriver
public static void deregisterDriver(Driver driver)
- Deregisters a driver.
- Parameters:
driver - the driver to deregister
registerDriver
public static void registerDriver(Driver driver)
- Registers a new driver.
- Parameters:
driver - a driver to register
getDrivers
public static List getDrivers()
- Gets all available drivers.
- Returns:
- a unmodifiable List of Driver
getConnection
public static Connection getConnection(String url)
throws XQueryException
- Returns a Connection for the specified URL.
- Parameters:
url - the target URL for the requested url- Returns:
- a new Connection to the given URL, or null if no driver is available for this URL
- Throws:
XQueryException - if any error occurs during connect
getConnection
public static Connection getConnection(String url,
Properties info)
throws XQueryException
- Returns a Connection for the specified URL and the given properties.
- Parameters:
url - the target URL for the requested connectioninfo - additional properties for the connnection- Returns:
- a new Connection to the given URL, or null if no driver is available for this URL
- Throws:
XQueryException - if any error occurs during connect to the database
getDriver
public static Driver getDriver(String url)
throws XQueryException
- Returns a Driver for the given URL.
- Parameters:
url - the target URL for the requested connection- Returns:
- a driver for the given URL, or null if no driver exists for that URL
- Throws:
XQueryException - if any error occurs
Copyright (c) 2001 Software AG. All Rights Reserved.