org.melati.poem.dbms.test.sql
Class ThrowingDriverJdbc3

java.lang.Object
  extended by org.melati.poem.dbms.test.sql.Thrower
      extended by org.melati.poem.dbms.test.sql.ThrowingDriverJdbc3
All Implemented Interfaces:
java.sql.Driver
Direct Known Subclasses:
ThrowingDriverVariant

public abstract class ThrowingDriverJdbc3
extends Thrower
implements java.sql.Driver

The JDBC3 members of a Driver, decorated to throw an SQLException on command.

Since:
5 Feb 2008
Author:
timp

Constructor Summary
ThrowingDriverJdbc3()
           
 
Method Summary
 boolean acceptsURL(java.lang.String url)
          
 java.sql.Connection connect(java.lang.String url, java.util.Properties info)
          Return the decorated Connection.
 int getMajorVersion()
          
 int getMinorVersion()
          
 java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url, java.util.Properties info)
          
 boolean jdbcCompliant()
          
 
Methods inherited from class org.melati.poem.dbms.test.sql.Thrower
shouldThrow, startThrowing, startThrowingAfter, stopThrowing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowingDriverJdbc3

public ThrowingDriverJdbc3()
Method Detail

acceptsURL

public boolean acceptsURL(java.lang.String url)
                   throws java.sql.SQLException

Specified by:
acceptsURL in interface java.sql.Driver
Throws:
java.sql.SQLException
See Also:
Driver.acceptsURL(java.lang.String)

connect

public java.sql.Connection connect(java.lang.String url,
                                   java.util.Properties info)
                            throws java.sql.SQLException
Return the decorated Connection.

Specified by:
connect in interface java.sql.Driver
Throws:
java.sql.SQLException
See Also:
Driver.connect(java.lang.String, java.util.Properties)

getMajorVersion

public int getMajorVersion()

Specified by:
getMajorVersion in interface java.sql.Driver
See Also:
Driver.getMajorVersion()

getMinorVersion

public int getMinorVersion()

Specified by:
getMinorVersion in interface java.sql.Driver
See Also:
Driver.getMinorVersion()

jdbcCompliant

public boolean jdbcCompliant()

Specified by:
jdbcCompliant in interface java.sql.Driver
See Also:
Driver.jdbcCompliant()

getPropertyInfo

public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
                                                     java.util.Properties info)
                                              throws java.sql.SQLException

Specified by:
getPropertyInfo in interface java.sql.Driver
Throws:
java.sql.SQLException
See Also:
Driver.getPropertyInfo(java.lang.String, java.util.Properties)


Copyright © 2000-2008 PanEris. All Rights Reserved.