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

Package class diagram package ThrowingResultSetJdbc4
java.lang.Object
  extended by org.melati.poem.dbms.test.sql.Thrower
      extended by org.melati.poem.dbms.test.sql.ThrowingResultSetJdbc3
          extended by org.melati.poem.dbms.test.sql.ThrowingResultSetJdbc4
All Implemented Interfaces:
ResultSet, Wrapper
Direct Known Subclasses:
ThrowingResultSetVariant

public abstract class ThrowingResultSetJdbc4
extends ThrowingResultSetJdbc3
implements ResultSet

The JDBC4 methods of a Ref, decorated to throw an SQLException on command.

Since:
5 Feb 2008
Author:
timp

Field Summary
 
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
 
Constructor Summary
ThrowingResultSetJdbc4()
           
 
Method Summary
 int getHoldability()
          
 Reader getNCharacterStream(int columnIndex)
          
 Reader getNCharacterStream(String columnLabel)
          
 NClob getNClob(int columnIndex)
          
 NClob getNClob(String columnLabel)
          
 String getNString(int columnIndex)
          
 String getNString(String columnLabel)
          
 RowId getRowId(int columnIndex)
          
 RowId getRowId(String columnLabel)
          
 SQLXML getSQLXML(int columnIndex)
          
 SQLXML getSQLXML(String columnLabel)
          
 boolean isClosed()
          
 boolean isWrapperFor(Class<?> iface)
          
<T1> T1
unwrap(Class<T1> iface)
          
 void updateAsciiStream(int columnIndex, InputStream x)
          
 void updateAsciiStream(int columnIndex, InputStream x, long length)
          
 void updateAsciiStream(String columnLabel, InputStream x)
          
 void updateAsciiStream(String columnLabel, InputStream x, long length)
          
 void updateBinaryStream(int columnIndex, InputStream x)
          
 void updateBinaryStream(int columnIndex, InputStream x, long length)
          
 void updateBinaryStream(String columnLabel, InputStream x)
          
 void updateBinaryStream(String columnLabel, InputStream x, long length)
          
 void updateBlob(int columnIndex, InputStream inputStream)
          
 void updateBlob(int columnIndex, InputStream inputStream, long length)
          
 void updateBlob(String columnLabel, InputStream inputStream)
          
 void updateBlob(String columnLabel, InputStream inputStream, long length)
          
 void updateCharacterStream(int columnIndex, Reader x)
          
 void updateCharacterStream(int columnIndex, Reader x, long length)
          
 void updateCharacterStream(String columnLabel, Reader reader)
          
 void updateCharacterStream(String columnLabel, Reader reader, long length)
          
 void updateClob(int columnIndex, Reader reader)
          
 void updateClob(int columnIndex, Reader reader, long length)
          
 void updateClob(String columnLabel, Reader reader)
          
 void updateClob(String columnLabel, Reader reader, long length)
          
 void updateNCharacterStream(int columnIndex, Reader x)
          
 void updateNCharacterStream(int columnIndex, Reader x, long length)
          
 void updateNCharacterStream(String columnLabel, Reader reader)
          
 void updateNCharacterStream(String columnLabel, Reader reader, long length)
          
 void updateNClob(int columnIndex, NClob clob)
          
 void updateNClob(int columnIndex, Reader reader)
          
 void updateNClob(int columnIndex, Reader reader, long length)
          
 void updateNClob(String columnLabel, NClob clob)
          
 void updateNClob(String columnLabel, Reader reader)
          
 void updateNClob(String columnLabel, Reader reader, long length)
          
 void updateNString(int columnIndex, String string)
          
 void updateNString(String columnLabel, String string)
          
 void updateRowId(int columnIndex, RowId x)
          
 void updateRowId(String columnLabel, RowId x)
          
 void updateSQLXML(int columnIndex, SQLXML xmlObject)
          
 void updateSQLXML(String columnLabel, SQLXML xmlObject)
          
 
Methods inherited from class org.melati.poem.dbms.test.sql.ThrowingResultSetJdbc3
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getInt, getLong, getLong, getMetaData, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getShort, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, 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.ResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getInt, getLong, getLong, getMetaData, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getShort, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
 

Constructor Detail

ThrowingResultSetJdbc4

public ThrowingResultSetJdbc4()
Method Detail

getHoldability

public int getHoldability()
                   throws SQLException

Specified by:
getHoldability in interface ResultSet
Throws:
SQLException
See Also:
ResultSet.getHoldability()

getNCharacterStream

public Reader getNCharacterStream(int columnIndex)
                           throws SQLException

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

getNCharacterStream

public Reader getNCharacterStream(String columnLabel)
                           throws SQLException

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

getNClob

public NClob getNClob(int columnIndex)
               throws SQLException

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

getNClob

public NClob getNClob(String columnLabel)
               throws SQLException

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

getNString

public String getNString(int columnIndex)
                  throws SQLException

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

getNString

public String getNString(String columnLabel)
                  throws SQLException

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

getRowId

public RowId getRowId(int columnIndex)
               throws SQLException

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

getRowId

public RowId getRowId(String columnLabel)
               throws SQLException

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

getSQLXML

public SQLXML getSQLXML(int columnIndex)
                 throws SQLException

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

getSQLXML

public SQLXML getSQLXML(String columnLabel)
                 throws SQLException

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

isClosed

public boolean isClosed()
                 throws SQLException

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

updateAsciiStream

public void updateAsciiStream(int columnIndex,
                              InputStream x,
                              long length)
                       throws SQLException

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

updateAsciiStream

public void updateAsciiStream(int columnIndex,
                              InputStream x)
                       throws SQLException

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

updateAsciiStream

public void updateAsciiStream(String columnLabel,
                              InputStream x,
                              long length)
                       throws SQLException

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

updateAsciiStream

public void updateAsciiStream(String columnLabel,
                              InputStream x)
                       throws SQLException

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

updateBinaryStream

public void updateBinaryStream(int columnIndex,
                               InputStream x,
                               long length)
                        throws SQLException

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

updateBinaryStream

public void updateBinaryStream(int columnIndex,
                               InputStream x)
                        throws SQLException

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

updateBinaryStream

public void updateBinaryStream(String columnLabel,
                               InputStream x,
                               long length)
                        throws SQLException

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

updateBinaryStream

public void updateBinaryStream(String columnLabel,
                               InputStream x)
                        throws SQLException

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

updateBlob

public void updateBlob(int columnIndex,
                       InputStream inputStream,
                       long length)
                throws SQLException

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

updateBlob

public void updateBlob(int columnIndex,
                       InputStream inputStream)
                throws SQLException

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

updateBlob

public void updateBlob(String columnLabel,
                       InputStream inputStream,
                       long length)
                throws SQLException

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

updateBlob

public void updateBlob(String columnLabel,
                       InputStream inputStream)
                throws SQLException

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

updateCharacterStream

public void updateCharacterStream(int columnIndex,
                                  Reader x,
                                  long length)
                           throws SQLException

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

updateCharacterStream

public void updateCharacterStream(int columnIndex,
                                  Reader x)
                           throws SQLException

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

updateCharacterStream

public void updateCharacterStream(String columnLabel,
                                  Reader reader,
                                  long length)
                           throws SQLException

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

updateCharacterStream

public void updateCharacterStream(String columnLabel,
                                  Reader reader)
                           throws SQLException

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

updateClob

public void updateClob(int columnIndex,
                       Reader reader,
                       long length)
                throws SQLException

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

updateClob

public void updateClob(int columnIndex,
                       Reader reader)
                throws SQLException

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

updateClob

public void updateClob(String columnLabel,
                       Reader reader,
                       long length)
                throws SQLException

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

updateClob

public void updateClob(String columnLabel,
                       Reader reader)
                throws SQLException

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

updateNCharacterStream

public void updateNCharacterStream(int columnIndex,
                                   Reader x,
                                   long length)
                            throws SQLException

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

updateNCharacterStream

public void updateNCharacterStream(int columnIndex,
                                   Reader x)
                            throws SQLException

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

updateNCharacterStream

public void updateNCharacterStream(String columnLabel,
                                   Reader reader,
                                   long length)
                            throws SQLException

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

updateNCharacterStream

public void updateNCharacterStream(String columnLabel,
                                   Reader reader)
                            throws SQLException

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

updateNClob

public void updateNClob(int columnIndex,
                        NClob clob)
                 throws SQLException

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

updateNClob

public void updateNClob(int columnIndex,
                        Reader reader,
                        long length)
                 throws SQLException

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

updateNClob

public void updateNClob(int columnIndex,
                        Reader reader)
                 throws SQLException

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

updateNClob

public void updateNClob(String columnLabel,
                        NClob clob)
                 throws SQLException

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

updateNClob

public void updateNClob(String columnLabel,
                        Reader reader,
                        long length)
                 throws SQLException

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

updateNClob

public void updateNClob(String columnLabel,
                        Reader reader)
                 throws SQLException

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

updateNString

public void updateNString(int columnIndex,
                          String string)
                   throws SQLException

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

updateNString

public void updateNString(String columnLabel,
                          String string)
                   throws SQLException

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

updateRowId

public void updateRowId(int columnIndex,
                        RowId x)
                 throws SQLException

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

updateRowId

public void updateRowId(String columnLabel,
                        RowId x)
                 throws SQLException

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

updateSQLXML

public void updateSQLXML(int columnIndex,
                         SQLXML xmlObject)
                  throws SQLException

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

updateSQLXML

public void updateSQLXML(String columnLabel,
                         SQLXML xmlObject)
                  throws SQLException

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

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 <T1> T1 unwrap(Class<T1> 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.