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

Package class diagram package 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:
Driver
Direct Known Subclasses:
ThrowingDriverJdbc4

public abstract class ThrowingDriverJdbc3
extends Thrower
implements 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(String url)
          
 Connection connect(String url, Properties info)
          Return the decorated Connection.
 int getMajorVersion()
          
 int getMinorVersion()
          
 DriverPropertyInfo[] getPropertyInfo(String url, 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(String url)
                   throws SQLException

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

connect

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

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

getMajorVersion

public int getMajorVersion()

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

getMinorVersion

public int getMinorVersion()

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

jdbcCompliant

public boolean jdbcCompliant()

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

getPropertyInfo

public DriverPropertyInfo[] getPropertyInfo(String url,
                                            Properties info)
                                     throws SQLException

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


Copyright © 2000-2010 PanEris. All Rights Reserved.