org.knime.base.node.io.database
Class WrappedDriver

java.lang.Object
  extended by org.knime.base.node.io.database.WrappedDriver
All Implemented Interfaces:
Driver

final class WrappedDriver
extends Object
implements Driver

Wraps a Driver object.

Author:
Thomas Gabriel, University of Konstanz

Constructor Summary
WrappedDriver(Driver d)
          Create wrapper.
 
Method Summary
 boolean acceptsURL(String url)
          
 Connection connect(String url, Properties info)
          
 int getMajorVersion()
          
 int getMinorVersion()
          
 DriverPropertyInfo[] getPropertyInfo(String url, Properties info)
          
 int hashCode()
          
 boolean jdbcCompliant()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrappedDriver

WrappedDriver(Driver d)
Create wrapper.

Parameters:
d - For this Driver.
Method Detail

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

toString

public String toString()

Overrides:
toString in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.