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

Package class diagram package ThrowingPreparedStatementJdbc4
java.lang.Object
  extended by org.melati.poem.dbms.test.sql.Thrower
      extended by org.melati.poem.dbms.test.sql.ThrowingPreparedStatementJdbc3
          extended by org.melati.poem.dbms.test.sql.ThrowingPreparedStatementJdbc4
All Implemented Interfaces:
PreparedStatement, Statement, Wrapper
Direct Known Subclasses:
ThrowingPreparedStatementVariant

public abstract class ThrowingPreparedStatementJdbc4
extends ThrowingPreparedStatementJdbc3
implements PreparedStatement

The JDBC4 members of a PreparedStatement, decorated to throw an SQLException on command.

Since:
5 Feb 2008
Author:
timp

Field Summary
 
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
Constructor Summary
ThrowingPreparedStatementJdbc4()
           
 
Method Summary
 boolean isClosed()
          
 boolean isPoolable()
          
 boolean isWrapperFor(Class<?> iface)
          
 void setAsciiStream(int parameterIndex, InputStream x)
          
 void setAsciiStream(int parameterIndex, InputStream x, long length)
          
 void setBinaryStream(int parameterIndex, InputStream x)
          
 void setBinaryStream(int parameterIndex, InputStream x, long length)
          
 void setBlob(int parameterIndex, InputStream inputStream)
          
 void setBlob(int parameterIndex, InputStream inputStream, long length)
          
 void setCharacterStream(int parameterIndex, Reader reader)
          
 void setCharacterStream(int parameterIndex, Reader reader, long length)
          
 void setClob(int parameterIndex, Reader reader)
          
 void setClob(int parameterIndex, Reader reader, long length)
          
 void setNCharacterStream(int parameterIndex, Reader value)
          
 void setNCharacterStream(int parameterIndex, Reader value, long length)
          
 void setNClob(int parameterIndex, NClob value)
          
 void setNClob(int parameterIndex, Reader reader)
          
 void setNClob(int parameterIndex, Reader reader, long length)
          
 void setNString(int parameterIndex, String value)
          
 void setPoolable(boolean poolable)
          
 void setRowId(int parameterIndex, RowId x)
          
 void setSQLXML(int parameterIndex, SQLXML xmlObject)
          
<T> T
unwrap(Class<T> iface)
          
 
Methods inherited from class org.melati.poem.dbms.test.sql.ThrowingPreparedStatementJdbc3
addBatch, addBatch, cancel, clearBatch, clearParameters, clearWarnings, close, execute, execute, execute, execute, execute, executeBatch, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMetaData, getMoreResults, getMoreResults, getParameterMetaData, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setCursorName, setDate, setDate, setDouble, setEscapeProcessing, setFetchDirection, setFetchSize, setFloat, setInt, setLong, setMaxFieldSize, setMaxRows, setNull, setNull, setObject, setObject, setObject, setQueryTimeout, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
 
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.PreparedStatement
addBatch, clearParameters, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
 
Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout
 

Constructor Detail

ThrowingPreparedStatementJdbc4

public ThrowingPreparedStatementJdbc4()
Method Detail

setAsciiStream

public void setAsciiStream(int parameterIndex,
                           InputStream x,
                           long length)
                    throws SQLException

Specified by:
setAsciiStream in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setAsciiStream(int, java.io.InputStream, long)

setAsciiStream

public void setAsciiStream(int parameterIndex,
                           InputStream x)
                    throws SQLException

Specified by:
setAsciiStream in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setAsciiStream(int, java.io.InputStream)

setBinaryStream

public void setBinaryStream(int parameterIndex,
                            InputStream x,
                            long length)
                     throws SQLException

Specified by:
setBinaryStream in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setBinaryStream(int, java.io.InputStream, long)

setBinaryStream

public void setBinaryStream(int parameterIndex,
                            InputStream x)
                     throws SQLException

Specified by:
setBinaryStream in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setBinaryStream(int, java.io.InputStream)

setBlob

public void setBlob(int parameterIndex,
                    InputStream inputStream,
                    long length)
             throws SQLException

Specified by:
setBlob in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setBlob(int, java.io.InputStream, long)

setBlob

public void setBlob(int parameterIndex,
                    InputStream inputStream)
             throws SQLException

Specified by:
setBlob in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setBlob(int, java.io.InputStream)

setCharacterStream

public void setCharacterStream(int parameterIndex,
                               Reader reader,
                               long length)
                        throws SQLException

Specified by:
setCharacterStream in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setCharacterStream(int, java.io.Reader, long)

setCharacterStream

public void setCharacterStream(int parameterIndex,
                               Reader reader)
                        throws SQLException

Specified by:
setCharacterStream in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setCharacterStream(int, java.io.Reader)

setClob

public void setClob(int parameterIndex,
                    Reader reader,
                    long length)
             throws SQLException

Specified by:
setClob in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setClob(int, java.io.Reader, long)

setClob

public void setClob(int parameterIndex,
                    Reader reader)
             throws SQLException

Specified by:
setClob in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setClob(int, java.io.Reader)

setNCharacterStream

public void setNCharacterStream(int parameterIndex,
                                Reader value,
                                long length)
                         throws SQLException

Specified by:
setNCharacterStream in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setNCharacterStream(int, java.io.Reader, long)

setNCharacterStream

public void setNCharacterStream(int parameterIndex,
                                Reader value)
                         throws SQLException

Specified by:
setNCharacterStream in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setNCharacterStream(int, java.io.Reader)

setNClob

public void setNClob(int parameterIndex,
                     NClob value)
              throws SQLException

Specified by:
setNClob in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setNClob(int, java.sql.NClob)

setNClob

public void setNClob(int parameterIndex,
                     Reader reader,
                     long length)
              throws SQLException

Specified by:
setNClob in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setNClob(int, java.io.Reader, long)

setNClob

public void setNClob(int parameterIndex,
                     Reader reader)
              throws SQLException

Specified by:
setNClob in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setNClob(int, java.io.Reader)

setNString

public void setNString(int parameterIndex,
                       String value)
                throws SQLException

Specified by:
setNString in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setNString(int, java.lang.String)

setRowId

public void setRowId(int parameterIndex,
                     RowId x)
              throws SQLException

Specified by:
setRowId in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setRowId(int, java.sql.RowId)

setSQLXML

public void setSQLXML(int parameterIndex,
                      SQLXML xmlObject)
               throws SQLException

Specified by:
setSQLXML in interface PreparedStatement
Throws:
SQLException
See Also:
PreparedStatement.setSQLXML(int, java.sql.SQLXML)

isClosed

public boolean isClosed()
                 throws SQLException

Specified by:
isClosed in interface Statement
Throws:
SQLException
See Also:
Statement.isClosed()

isPoolable

public boolean isPoolable()
                   throws SQLException

Specified by:
isPoolable in interface Statement
Throws:
SQLException
See Also:
Statement.isPoolable()

setPoolable

public void setPoolable(boolean poolable)
                 throws SQLException

Specified by:
setPoolable in interface Statement
Throws:
SQLException
See Also:
Statement.setPoolable(boolean)

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.