org.apache.openejb.resource.jdbc.driver
Class AlternativeDriver

java.lang.Object
  extended by org.apache.openejb.resource.jdbc.driver.AlternativeDriver
All Implemented Interfaces:
Driver

public class AlternativeDriver
extends Object
implements Driver

Version:
$Rev$ $Date$

Constructor Summary
AlternativeDriver(Driver driver, String url)
           
 
Method Summary
 boolean acceptsURL(String url)
           
 Connection connect(String url, Properties info)
           
 void deregister()
           
 Driver getDelegate()
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 Logger getParentLogger()
           
 DriverPropertyInfo[] getPropertyInfo(String url, Properties info)
           
 String getUrl()
           
 boolean jdbcCompliant()
           
 void register()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlternativeDriver

public AlternativeDriver(Driver driver,
                         String url)
Method Detail

getDelegate

public Driver getDelegate()

getUrl

public String getUrl()

register

public void register()
              throws SQLException
Throws:
SQLException

deregister

public void deregister()
                throws SQLException
Throws:
SQLException

connect

public Connection connect(String url,
                          Properties info)
                   throws SQLException
Specified by:
connect in interface Driver
Throws:
SQLException

acceptsURL

public boolean acceptsURL(String url)
                   throws SQLException
Specified by:
acceptsURL in interface Driver
Throws:
SQLException

getPropertyInfo

public DriverPropertyInfo[] getPropertyInfo(String url,
                                            Properties info)
                                     throws SQLException
Specified by:
getPropertyInfo in interface Driver
Throws:
SQLException

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface Driver

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface Driver

jdbcCompliant

public boolean jdbcCompliant()
Specified by:
jdbcCompliant in interface Driver

getParentLogger

public Logger getParentLogger()
                       throws SQLFeatureNotSupportedException
Throws:
SQLFeatureNotSupportedException


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.