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

Package class diagram package ThrowingConnectionJdbc4
java.lang.Object
  extended by org.melati.poem.dbms.test.sql.Thrower
      extended by org.melati.poem.dbms.test.sql.ThrowingConnectionJdbc3
          extended by org.melati.poem.dbms.test.sql.ThrowingConnectionJdbc4
All Implemented Interfaces:
Connection, Wrapper
Direct Known Subclasses:
ThrowingConnectionVariant

public abstract class ThrowingConnectionJdbc4
extends ThrowingConnectionJdbc3
implements Connection

A JDBC4 Connection, decorated to throw an SQLException on command.

Since:
5 Feb 2008
Author:
timp

Field Summary
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
ThrowingConnectionJdbc4()
           
 
Method Summary
 Array createArrayOf(String typeName, Object[] elements)
          
 Blob createBlob()
          
 Clob createClob()
          
 NClob createNClob()
          
 SQLXML createSQLXML()
          
 Struct createStruct(String typeName, Object[] attributes)
          
 Properties getClientInfo()
          
 String getClientInfo(String name)
          
 boolean isValid(int timeout)
          
 boolean isWrapperFor(Class<?> iface)
          
 void setClientInfo(Properties properties)
          
 void setClientInfo(String name, String value)
          
<T> T
unwrap(Class<T> iface)
          
 
Methods inherited from class org.melati.poem.dbms.test.sql.ThrowingConnectionJdbc3
clearWarnings, close, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
 
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
 
Methods inherited from interface java.sql.Connection
clearWarnings, close, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
 

Constructor Detail

ThrowingConnectionJdbc4

public ThrowingConnectionJdbc4()
Method Detail

createArrayOf

public Array createArrayOf(String typeName,
                           Object[] elements)
                    throws SQLException

Specified by:
createArrayOf in interface Connection
Throws:
SQLException
See Also:
Connection.createArrayOf(java.lang.String, java.lang.Object[])

createBlob

public Blob createBlob()
                throws SQLException

Specified by:
createBlob in interface Connection
Throws:
SQLException
See Also:
Connection.createBlob()

createClob

public Clob createClob()
                throws SQLException

Specified by:
createClob in interface Connection
Throws:
SQLException
See Also:
Connection.createClob()

createNClob

public NClob createNClob()
                  throws SQLException

Specified by:
createNClob in interface Connection
Throws:
SQLException
See Also:
Connection.createNClob()

createSQLXML

public SQLXML createSQLXML()
                    throws SQLException

Specified by:
createSQLXML in interface Connection
Throws:
SQLException
See Also:
Connection.createSQLXML()

createStruct

public Struct createStruct(String typeName,
                           Object[] attributes)
                    throws SQLException

Specified by:
createStruct in interface Connection
Throws:
SQLException
See Also:
Connection.createStruct(java.lang.String, java.lang.Object[])

getClientInfo

public Properties getClientInfo()
                         throws SQLException

Specified by:
getClientInfo in interface Connection
Throws:
SQLException
See Also:
Connection.getClientInfo()

getClientInfo

public String getClientInfo(String name)
                     throws SQLException

Specified by:
getClientInfo in interface Connection
Throws:
SQLException
See Also:
Connection.getClientInfo(java.lang.String)

isValid

public boolean isValid(int timeout)
                throws SQLException

Specified by:
isValid in interface Connection
Throws:
SQLException
See Also:
Connection.isValid(int)

setClientInfo

public void setClientInfo(Properties properties)
                   throws SQLClientInfoException

Specified by:
setClientInfo in interface Connection
Throws:
SQLClientInfoException
See Also:
Connection.setClientInfo(java.util.Properties)

setClientInfo

public void setClientInfo(String name,
                          String value)
                   throws SQLClientInfoException

Specified by:
setClientInfo in interface Connection
Throws:
SQLClientInfoException
See Also:
Connection.setClientInfo(java.lang.String, java.lang.String)

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
                     throws SQLException

Specified by:
isWrapperFor in interface Wrapper
Throws:
SQLException
See Also:
Wrapper.isWrapperFor(java.lang.Class)

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException

Specified by:
unwrap in interface Wrapper
Throws:
SQLException
See Also:
Wrapper.unwrap(java.lang.Class)


Copyright © 2000-2010 PanEris. All Rights Reserved.