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

Constructor Summary
DriverManager()
           
 
Method Summary
static void deregisterDriver(Driver driver)
          Deregisters a driver.
static Connection getConnection(String url)
          Returns a Connection for the specified URL.
static Connection getConnection(String url, Properties info)
          Returns a Connection for the specified URL and the given properties.
static Driver getDriver(String url)
          Returns a Driver for the given URL.
static List getDrivers()
          Gets all available drivers.
static void registerDriver(Driver driver)
          Registers a new driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverManager

public DriverManager()
Method Detail

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 connection
info - 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.