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

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

public abstract class ThrowingCallableStatementJdbc4
extends ThrowingCallableStatementJdbc3
implements CallableStatement

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

Since:
5 Feb 2008 From src/jdbc4
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
ThrowingCallableStatementJdbc4()
           
 
Method Summary
 Reader getCharacterStream(int parameterIndex)
          
 Reader getCharacterStream(String parameterName)
          
 Reader getNCharacterStream(int parameterIndex)
          
 Reader getNCharacterStream(String parameterName)
          
 NClob getNClob(int parameterIndex)
          
 NClob getNClob(String parameterName)
          
 String getNString(int parameterIndex)
          
 String getNString(String parameterName)
          
 RowId getRowId(int parameterIndex)
          
 RowId getRowId(String parameterName)
          
 SQLXML getSQLXML(int parameterIndex)
          
 SQLXML getSQLXML(String parameterName)
          
 boolean isClosed()
          
 boolean isPoolable()
          
 boolean isWrapperFor(Class<?> iface)
          
 void setAsciiStream(int parameterIndex, InputStream x)
          
 void setAsciiStream(int parameterIndex, InputStream x, long length)
          
 void setAsciiStream(String parameterName, InputStream x)
          
 void setAsciiStream(String parameterName, InputStream x, long length)
          
 void setBinaryStream(int parameterIndex, InputStream x)
          
 void setBinaryStream(int parameterIndex, InputStream x, long length)
          
 void setBinaryStream(String parameterName, InputStream x)
          
 void setBinaryStream(String parameterName, InputStream x, long length)
          
 void setBlob(int parameterIndex, InputStream inputStream)
          
 void setBlob(int parameterIndex, InputStream inputStream, long length)
          
 void setBlob(String parameterName, Blob x)
          
 void setBlob(String parameterName, InputStream inputStream)
          
 void setBlob(String parameterName, InputStream inputStream, long length)
          
 void setCharacterStream(int parameterIndex, Reader reader)
          
 void setCharacterStream(int parameterIndex, Reader reader, long length)
          
 void setCharacterStream(String parameterName, Reader reader)
          
 void setCharacterStream(String parameterName, Reader reader, long length)
          
 void setClob(int parameterIndex, Reader reader)
          
 void setClob(int parameterIndex, Reader reader, long length)
          
 void setClob(String parameterName, Clob x)
          
 void setClob(String parameterName, Reader reader)
          
 void setClob(String parameterName, Reader reader, long length)
          
 void setNCharacterStream(int parameterIndex, Reader value)
          
 void setNCharacterStream(int parameterIndex, Reader value, long length)
          
 void setNCharacterStream(String parameterName, Reader value)
          
 void setNCharacterStream(String parameterName, 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 setNClob(String parameterName, NClob value)
          
 void setNClob(String parameterName, Reader reader)
          
 void setNClob(String parameterName, Reader reader, long length)
          
 void setNString(int parameterIndex, String value)
          
 void setNString(String parameterName, String value)
          
 void setPoolable(boolean poolable)
          
 void setRowId(int parameterIndex, RowId x)
          
 void setRowId(String parameterName, RowId x)
          
 void setSQLXML(int parameterIndex, SQLXML xmlObject)
          
 void setSQLXML(String parameterName, SQLXML xmlObject)
          
<T> T
unwrap(Class<T> iface)
          
 
Methods inherited from class org.melati.poem.dbms.test.sql.ThrowingCallableStatementJdbc3
addBatch, addBatch, cancel, clearBatch, clearParameters, clearWarnings, close, execute, execute, execute, execute, execute, executeBatch, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getArray, getArray, getBigDecimal, getBigDecimal, getBigDecimal, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getClob, getClob, getConnection, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getGeneratedKeys, getInt, getInt, getLong, getLong, getMaxFieldSize, getMaxRows, getMetaData, getMoreResults, getMoreResults, getObject, getObject, getObject, getObject, getParameterMetaData, getQueryTimeout, getRef, getRef, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getShort, getShort, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getUpdateCount, getURL, getURL, getWarnings, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, setArray, setAsciiStream, setAsciiStream, setBigDecimal, setBigDecimal, setBinaryStream, setBinaryStream, setBlob, setBoolean, setBoolean, setByte, setByte, setBytes, setBytes, setCharacterStream, setCharacterStream, setClob, setCursorName, setDate, setDate, setDate, setDate, setDouble, setDouble, setEscapeProcessing, setFetchDirection, setFetchSize, setFloat, setFloat, setInt, setInt, setLong, setLong, setMaxFieldSize, setMaxRows, setNull, setNull, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setObject, setQueryTimeout, setRef, setShort, setShort, setString, setString, setTime, setTime, setTime, setTime, setTimestamp, setTimestamp, setTimestamp, setTimestamp, setUnicodeStream, setURL, setURL, wasNull
 
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.CallableStatement
getArray, getArray, getBigDecimal, getBigDecimal, getBigDecimal, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getClob, getClob, getDate, getDate, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getObject, getObject, getObject, getObject, getRef, getRef, getShort, getShort, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getURL, getURL, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, setAsciiStream, setBigDecimal, setBinaryStream, setBoolean, setByte, setBytes, setCharacterStream, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setURL, wasNull
 
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

ThrowingCallableStatementJdbc4

public ThrowingCallableStatementJdbc4()
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)

getCharacterStream

public Reader getCharacterStream(int parameterIndex)
                          throws SQLException

Specified by:
getCharacterStream in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.getCharacterStream(int)

getCharacterStream

public Reader getCharacterStream(String parameterName)
                          throws SQLException

Specified by:
getCharacterStream in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.getCharacterStream(java.lang.String)

getNCharacterStream

public Reader getNCharacterStream(int parameterIndex)
                           throws SQLException

Specified by:
getNCharacterStream in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.getNCharacterStream(int)

getNCharacterStream

public Reader getNCharacterStream(String parameterName)
                           throws SQLException

Specified by:
getNCharacterStream in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.getNCharacterStream(java.lang.String)

getNClob

public NClob getNClob(int parameterIndex)
               throws SQLException

Specified by:
getNClob in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.getNClob(int)

getNClob

public NClob getNClob(String parameterName)
               throws SQLException

Specified by:
getNClob in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.getNClob(java.lang.String)

getNString

public String getNString(int parameterIndex)
                  throws SQLException

Specified by:
getNString in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.getNString(int)

getNString

public String getNString(String parameterName)
                  throws SQLException

Specified by:
getNString in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.getNString(java.lang.String)

getRowId

public RowId getRowId(int parameterIndex)
               throws SQLException

Specified by:
getRowId in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.getRowId(int)

getRowId

public RowId getRowId(String parameterName)
               throws SQLException

Specified by:
getRowId in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.getRowId(java.lang.String)

getSQLXML

public SQLXML getSQLXML(int parameterIndex)
                 throws SQLException

Specified by:
getSQLXML in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.getSQLXML(int)

getSQLXML

public SQLXML getSQLXML(String parameterName)
                 throws SQLException

Specified by:
getSQLXML in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.getSQLXML(java.lang.String)

setAsciiStream

public void setAsciiStream(String parameterName,
                           InputStream x,
                           long length)
                    throws SQLException

Specified by:
setAsciiStream in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setAsciiStream(java.lang.String, java.io.InputStream, long)

setAsciiStream

public void setAsciiStream(String parameterName,
                           InputStream x)
                    throws SQLException

Specified by:
setAsciiStream in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setAsciiStream(java.lang.String, java.io.InputStream)

setBinaryStream

public void setBinaryStream(String parameterName,
                            InputStream x,
                            long length)
                     throws SQLException

Specified by:
setBinaryStream in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setBinaryStream(java.lang.String, java.io.InputStream, long)

setBinaryStream

public void setBinaryStream(String parameterName,
                            InputStream x)
                     throws SQLException

Specified by:
setBinaryStream in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setBinaryStream(java.lang.String, java.io.InputStream)

setBlob

public void setBlob(String parameterName,
                    Blob x)
             throws SQLException

Specified by:
setBlob in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setBlob(java.lang.String, java.sql.Blob)

setBlob

public void setBlob(String parameterName,
                    InputStream inputStream,
                    long length)
             throws SQLException

Specified by:
setBlob in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setBlob(java.lang.String, java.io.InputStream, long)

setBlob

public void setBlob(String parameterName,
                    InputStream inputStream)
             throws SQLException

Specified by:
setBlob in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setBlob(java.lang.String, java.io.InputStream)

setCharacterStream

public void setCharacterStream(String parameterName,
                               Reader reader,
                               long length)
                        throws SQLException

Specified by:
setCharacterStream in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setCharacterStream(java.lang.String, java.io.Reader, long)

setCharacterStream

public void setCharacterStream(String parameterName,
                               Reader reader)
                        throws SQLException

Specified by:
setCharacterStream in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setCharacterStream(java.lang.String, java.io.Reader)

setClob

public void setClob(String parameterName,
                    Clob x)
             throws SQLException

Specified by:
setClob in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setClob(java.lang.String, java.sql.Clob)

setClob

public void setClob(String parameterName,
                    Reader reader,
                    long length)
             throws SQLException

Specified by:
setClob in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setClob(java.lang.String, java.io.Reader, long)

setClob

public void setClob(String parameterName,
                    Reader reader)
             throws SQLException

Specified by:
setClob in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setClob(java.lang.String, java.io.Reader)

setNCharacterStream

public void setNCharacterStream(String parameterName,
                                Reader value,
                                long length)
                         throws SQLException

Specified by:
setNCharacterStream in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setNCharacterStream(java.lang.String, java.io.Reader, long)

setNCharacterStream

public void setNCharacterStream(String parameterName,
                                Reader value)
                         throws SQLException

Specified by:
setNCharacterStream in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setNCharacterStream(java.lang.String, java.io.Reader)

setNClob

public void setNClob(String parameterName,
                     NClob value)
              throws SQLException

Specified by:
setNClob in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setNClob(java.lang.String, java.sql.NClob)

setNClob

public void setNClob(String parameterName,
                     Reader reader,
                     long length)
              throws SQLException

Specified by:
setNClob in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setNClob(java.lang.String, java.io.Reader, long)

setNClob

public void setNClob(String parameterName,
                     Reader reader)
              throws SQLException

Specified by:
setNClob in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setNClob(java.lang.String, java.io.Reader)

setNString

public void setNString(String parameterName,
                       String value)
                throws SQLException

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

setRowId

public void setRowId(String parameterName,
                     RowId x)
              throws SQLException

Specified by:
setRowId in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setRowId(java.lang.String, java.sql.RowId)

setSQLXML

public void setSQLXML(String parameterName,
                      SQLXML xmlObject)
               throws SQLException

Specified by:
setSQLXML in interface CallableStatement
Throws:
SQLException
See Also:
CallableStatement.setSQLXML(java.lang.String, java.sql.SQLXML)


Copyright © 2000-2010 PanEris. All Rights Reserved.