com.github.smokestack.jdbc
Class MockResultSet

java.lang.Object
  extended by com.github.smokestack.jdbc.MockResultSet
All Implemented Interfaces:
ResultSet

public class MockResultSet
extends Object
implements ResultSet

Author:
gliptak

Nested Class Summary
static class MockResultSet.ResultSetState
           
 
Field Summary
protected  MockResultSet.ResultSetState mockState
           
 
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
MockResultSet(String sql)
           
 
Method Summary
 boolean _absolute(int row)
           
 void _afterLast()
           
 void _beforeFirst()
           
 void _cancelRowUpdates()
           
 void _clearWarnings()
           
 void _close()
           
 void _deleteRow()
           
 int _findColumn(String columnName)
           
 boolean _first()
           
 Array _getArray(int i)
           
 Array _getArray(String colName)
           
 InputStream _getAsciiStream(int columnIndex)
           
 InputStream _getAsciiStream(String columnName)
           
 BigDecimal _getBigDecimal(int columnIndex)
           
 BigDecimal _getBigDecimal(int columnIndex, int scale)
           
 BigDecimal _getBigDecimal(String columnName)
           
 BigDecimal _getBigDecimal(String columnName, int scale)
           
 InputStream _getBinaryStream(int columnIndex)
           
 InputStream _getBinaryStream(String columnName)
           
 Blob _getBlob(int i)
           
 Blob _getBlob(String colName)
           
 boolean _getBoolean(int columnIndex)
           
 boolean _getBoolean(String columnName)
           
 byte _getByte(int columnIndex)
           
 byte _getByte(String columnName)
           
 byte[] _getBytes(int columnIndex)
           
 byte[] _getBytes(String columnName)
           
 Reader _getCharacterStream(int columnIndex)
           
 Reader _getCharacterStream(String columnName)
           
 Clob _getClob(int i)
           
 Clob _getClob(String colName)
           
 int _getConcurrency()
           
 String _getCursorName()
           
 Date _getDate(int columnIndex)
           
 Date _getDate(int columnIndex, Calendar cal)
           
 Date _getDate(String columnName)
           
 Date _getDate(String columnName, Calendar cal)
           
 double _getDouble(int columnIndex)
           
 double _getDouble(String columnName)
           
 int _getFetchDirection()
           
 int _getFetchSize()
           
 float _getFloat(int columnIndex)
           
 float _getFloat(String columnName)
           
 int _getInt(int columnIndex)
           
 int _getInt(String columnName)
           
 long _getLong(int i)
           
 long _getLong(String columnName)
           
 ResultSetMetaData _getMetaData()
           
 Object _getObject(int columnIndex)
           
 Object _getObject(int i, Map<String,Class<?>> map)
           
 Object _getObject(String columnName)
           
 Object _getObject(String colName, Map<String,Class<?>> map)
           
 Ref _getRef(int i)
           
 Ref _getRef(String colName)
           
 int _getRow()
           
 short _getShort(int columnIndex)
           
 short _getShort(String columnName)
           
 Statement _getStatement()
           
 String _getString(int columnIndex)
           
 String _getString(String columnName)
           
 Time _getTime(int columnIndex)
           
 Time _getTime(int columnIndex, Calendar cal)
           
 Time _getTime(String columnName)
           
 Time _getTime(String columnName, Calendar cal)
           
 Timestamp _getTimestamp(int columnIndex)
           
 Timestamp _getTimestamp(int columnIndex, Calendar cal)
           
 Timestamp _getTimestamp(String columnName)
           
 Timestamp _getTimestamp(String columnName, Calendar cal)
           
 int _getType()
           
 InputStream _getUnicodeStream(int columnIndex)
           
 InputStream _getUnicodeStream(String columnName)
           
 URL _getURL(int columnIndex)
           
 URL _getURL(String columnName)
           
 SQLWarning _getWarnings()
           
 void _insertRow()
           
 boolean _isAfterLast()
           
 boolean _isBeforeFirst()
           
 boolean _isFirst()
           
 boolean _isLast()
           
 boolean _last()
           
 void _moveToCurrentRow()
           
 void _moveToInsertRow()
           
 boolean _next()
           
 boolean _previous()
           
 void _refreshRow()
           
 boolean _relative(int rows)
           
 boolean _rowDeleted()
           
 boolean _rowInserted()
           
 boolean _rowUpdated()
           
 void _setFetchDirection(int direction)
           
 void _setFetchSize(int rows)
           
 void _updateArray(int columnIndex, Array x)
           
 void _updateArray(String columnName, Array x)
           
 void _updateAsciiStream(int columnIndex, InputStream x, int length)
           
 void _updateAsciiStream(String columnName, InputStream x, int length)
           
 void _updateBigDecimal(int columnIndex, BigDecimal x)
           
 void _updateBigDecimal(String columnName, BigDecimal x)
           
 void _updateBinaryStream(int columnIndex, InputStream x, int length)
           
 void _updateBinaryStream(String columnName, InputStream x, int length)
           
 void _updateBlob(int columnIndex, Blob x)
           
 void _updateBlob(String columnName, Blob x)
           
 void _updateBoolean(int columnIndex, boolean x)
           
 void _updateBoolean(String columnName, boolean x)
           
 void _updateByte(int columnIndex, byte x)
           
 void _updateByte(String columnName, byte x)
           
 void _updateBytes(int columnIndex, byte[] x)
           
 void _updateBytes(String columnName, byte[] x)
           
 void _updateCharacterStream(int columnIndex, Reader x, int length)
           
 void _updateCharacterStream(String columnName, Reader reader, int length)
           
 void _updateClob(int columnIndex, Clob x)
           
 void _updateClob(String columnName, Clob x)
           
 void _updateDate(int columnIndex, Date x)
           
 void _updateDate(String columnName, Date x)
           
 void _updateDouble(int columnIndex, double x)
           
 void _updateDouble(String columnName, double x)
           
 void _updateFloat(int columnIndex, float x)
           
 void _updateFloat(String columnName, float x)
           
 void _updateInt(int columnIndex, int x)
           
 void _updateInt(String columnName, int x)
           
 void _updateLong(int columnIndex, long x)
           
 void _updateLong(String columnName, long x)
           
 void _updateNull(int columnIndex)
           
 void _updateNull(String columnName)
           
 void _updateObject(int columnIndex, Object x)
           
 void _updateObject(int columnIndex, Object x, int scale)
           
 void _updateObject(String columnName, Object x)
           
 void _updateObject(String columnName, Object x, int scale)
           
 void _updateRef(int columnIndex, Ref x)
           
 void _updateRef(String columnName, Ref x)
           
 void _updateRow()
           
 void _updateShort(int columnIndex, short x)
           
 void _updateShort(String columnName, short x)
           
 void _updateString(int columnIndex, String x)
           
 void _updateString(String columnName, String x)
           
 void _updateTime(int columnIndex, Time x)
           
 void _updateTime(String columnName, Time x)
           
 void _updateTimestamp(int columnIndex, Timestamp x)
           
 void _updateTimestamp(String columnName, Timestamp x)
           
 boolean _wasNull()
           
 boolean absolute(int row)
           
 void afterLast()
           
 void assertClosed()
           
 void assertExplicitClose()
           
protected  void autoClose()
           
 void beforeFirst()
           
 void cancelRowUpdates()
           
 void clearWarnings()
           
 void close()
           
 void deleteRow()
           
 int findColumn(String columnName)
           
 boolean first()
           
 Array getArray(int i)
           
 Array getArray(String colName)
           
 InputStream getAsciiStream(int columnIndex)
           
 InputStream getAsciiStream(String columnName)
           
 BigDecimal getBigDecimal(int columnIndex)
           
 BigDecimal getBigDecimal(int columnIndex, int scale)
           
 BigDecimal getBigDecimal(String columnName)
           
 BigDecimal getBigDecimal(String columnName, int scale)
           
 InputStream getBinaryStream(int columnIndex)
           
 InputStream getBinaryStream(String columnName)
           
 Blob getBlob(int i)
           
 Blob getBlob(String colName)
           
 boolean getBoolean(int columnIndex)
           
 boolean getBoolean(String columnName)
           
 byte getByte(int columnIndex)
           
 byte getByte(String columnName)
           
 byte[] getBytes(int columnIndex)
           
 byte[] getBytes(String columnName)
           
 Reader getCharacterStream(int columnIndex)
           
 Reader getCharacterStream(String columnName)
           
 Clob getClob(int i)
           
 Clob getClob(String colName)
           
 int getConcurrency()
           
 String getCursorName()
           
 Date getDate(int columnIndex)
           
 Date getDate(int columnIndex, Calendar cal)
           
 Date getDate(String columnName)
           
 Date getDate(String columnName, Calendar cal)
           
 double getDouble(int columnIndex)
           
 double getDouble(String columnName)
           
 int getFetchDirection()
           
 int getFetchSize()
           
 float getFloat(int columnIndex)
           
 float getFloat(String columnName)
           
 int getInt(int columnIndex)
           
 int getInt(String columnName)
           
 long getLong(int columnIndex)
           
 long getLong(String columnName)
           
 ResultSetMetaData getMetaData()
           
 Object getObject(int columnIndex)
           
 Object getObject(int i, Map<String,Class<?>> map)
           
 Object getObject(String columnName)
           
 Object getObject(String colName, Map<String,Class<?>> map)
           
 Ref getRef(int i)
           
 Ref getRef(String colName)
           
 int getRow()
           
 short getShort(int columnIndex)
           
 short getShort(String columnName)
           
 Statement getStatement()
           
 String getString(int columnIndex)
           
 String getString(String columnName)
           
 Time getTime(int columnIndex)
           
 Time getTime(int columnIndex, Calendar cal)
           
 Time getTime(String columnName)
           
 Time getTime(String columnName, Calendar cal)
           
 Timestamp getTimestamp(int columnIndex)
           
 Timestamp getTimestamp(int columnIndex, Calendar cal)
           
 Timestamp getTimestamp(String columnName)
           
 Timestamp getTimestamp(String columnName, Calendar cal)
           
 int getType()
           
 InputStream getUnicodeStream(int columnIndex)
           
 InputStream getUnicodeStream(String columnName)
           
 URL getURL(int columnIndex)
           
 URL getURL(String columnName)
           
 SQLWarning getWarnings()
           
 void insertRow()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 boolean isFirst()
           
 boolean isLast()
           
 boolean last()
           
 void moveToCurrentRow()
           
 void moveToInsertRow()
           
 boolean next()
           
 boolean previous()
           
 void refreshRow()
           
 boolean relative(int rows)
           
 boolean rowDeleted()
           
 boolean rowInserted()
           
 boolean rowUpdated()
           
 void setFetchDirection(int direction)
           
 void setFetchSize(int rows)
           
 void setParent(MockStatement mockStatement)
           
 String toString()
           
 void updateArray(int columnIndex, Array x)
           
 void updateArray(String columnName, Array x)
           
 void updateAsciiStream(int columnIndex, InputStream x, int length)
           
 void updateAsciiStream(String columnName, InputStream x, int length)
           
 void updateBigDecimal(int columnIndex, BigDecimal x)
           
 void updateBigDecimal(String columnName, BigDecimal x)
           
 void updateBinaryStream(int columnIndex, InputStream x, int length)
           
 void updateBinaryStream(String columnName, InputStream x, int length)
           
 void updateBlob(int columnIndex, Blob x)
           
 void updateBlob(String columnName, Blob x)
           
 void updateBoolean(int columnIndex, boolean x)
           
 void updateBoolean(String columnName, boolean x)
           
 void updateByte(int columnIndex, byte x)
           
 void updateByte(String columnName, byte x)
           
 void updateBytes(int columnIndex, byte[] x)
           
 void updateBytes(String columnName, byte[] x)
           
 void updateCharacterStream(int columnIndex, Reader x, int length)
           
 void updateCharacterStream(String columnName, Reader reader, int length)
           
 void updateClob(int columnIndex, Clob x)
           
 void updateClob(String columnName, Clob x)
           
 void updateDate(int columnIndex, Date x)
           
 void updateDate(String columnName, Date x)
           
 void updateDouble(int columnIndex, double x)
           
 void updateDouble(String columnName, double x)
           
 void updateFloat(int columnIndex, float x)
           
 void updateFloat(String columnName, float x)
           
 void updateInt(int columnIndex, int x)
           
 void updateInt(String columnName, int x)
           
 void updateLong(int columnIndex, long x)
           
 void updateLong(String columnName, long x)
           
 void updateNull(int columnIndex)
           
 void updateNull(String columnName)
           
 void updateObject(int columnIndex, Object x)
           
 void updateObject(int columnIndex, Object x, int scale)
           
 void updateObject(String columnName, Object x)
           
 void updateObject(String columnName, Object x, int scale)
           
 void updateRef(int columnIndex, Ref x)
           
 void updateRef(String columnName, Ref x)
           
 void updateRow()
           
 void updateShort(int columnIndex, short x)
           
 void updateShort(String columnName, short x)
           
 void updateString(int columnIndex, String x)
           
 void updateString(String columnName, String x)
           
 void updateTime(int columnIndex, Time x)
           
 void updateTime(String columnName, Time x)
           
 void updateTimestamp(int columnIndex, Timestamp x)
           
 void updateTimestamp(String columnName, Timestamp x)
           
 boolean wasNull()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mockState

protected MockResultSet.ResultSetState mockState
Constructor Detail

MockResultSet

public MockResultSet(String sql)
Method Detail

absolute

public boolean absolute(int row)
                 throws SQLException
Specified by:
absolute in interface ResultSet
Throws:
SQLException

_absolute

public boolean _absolute(int row)

afterLast

public void afterLast()
               throws SQLException
Specified by:
afterLast in interface ResultSet
Throws:
SQLException

_afterLast

public void _afterLast()

beforeFirst

public void beforeFirst()
                 throws SQLException
Specified by:
beforeFirst in interface ResultSet
Throws:
SQLException

_beforeFirst

public void _beforeFirst()

cancelRowUpdates

public void cancelRowUpdates()
                      throws SQLException
Specified by:
cancelRowUpdates in interface ResultSet
Throws:
SQLException

_cancelRowUpdates

public void _cancelRowUpdates()

clearWarnings

public void clearWarnings()
                   throws SQLException
Specified by:
clearWarnings in interface ResultSet
Throws:
SQLException

_clearWarnings

public void _clearWarnings()

close

public void close()
           throws SQLException
Specified by:
close in interface ResultSet
Throws:
SQLException

_close

public void _close()

deleteRow

public void deleteRow()
               throws SQLException
Specified by:
deleteRow in interface ResultSet
Throws:
SQLException

_deleteRow

public void _deleteRow()

findColumn

public int findColumn(String columnName)
               throws SQLException
Specified by:
findColumn in interface ResultSet
Throws:
SQLException

_findColumn

public int _findColumn(String columnName)

first

public boolean first()
              throws SQLException
Specified by:
first in interface ResultSet
Throws:
SQLException

_first

public boolean _first()

getArray

public Array getArray(int i)
               throws SQLException
Specified by:
getArray in interface ResultSet
Throws:
SQLException

_getArray

public Array _getArray(int i)

getArray

public Array getArray(String colName)
               throws SQLException
Specified by:
getArray in interface ResultSet
Throws:
SQLException

_getArray

public Array _getArray(String colName)

getAsciiStream

public InputStream getAsciiStream(int columnIndex)
                           throws SQLException
Specified by:
getAsciiStream in interface ResultSet
Throws:
SQLException

_getAsciiStream

public InputStream _getAsciiStream(int columnIndex)

getAsciiStream

public InputStream getAsciiStream(String columnName)
                           throws SQLException
Specified by:
getAsciiStream in interface ResultSet
Throws:
SQLException

_getAsciiStream

public InputStream _getAsciiStream(String columnName)

getBigDecimal

public BigDecimal getBigDecimal(int columnIndex)
                         throws SQLException
Specified by:
getBigDecimal in interface ResultSet
Throws:
SQLException

_getBigDecimal

public BigDecimal _getBigDecimal(int columnIndex)

getBigDecimal

public BigDecimal getBigDecimal(String columnName)
                         throws SQLException
Specified by:
getBigDecimal in interface ResultSet
Throws:
SQLException

_getBigDecimal

public BigDecimal _getBigDecimal(String columnName)

getBigDecimal

public BigDecimal getBigDecimal(int columnIndex,
                                int scale)
                         throws SQLException
Specified by:
getBigDecimal in interface ResultSet
Throws:
SQLException

_getBigDecimal

public BigDecimal _getBigDecimal(int columnIndex,
                                 int scale)

getBigDecimal

public BigDecimal getBigDecimal(String columnName,
                                int scale)
                         throws SQLException
Specified by:
getBigDecimal in interface ResultSet
Throws:
SQLException

_getBigDecimal

public BigDecimal _getBigDecimal(String columnName,
                                 int scale)

getBinaryStream

public InputStream getBinaryStream(int columnIndex)
                            throws SQLException
Specified by:
getBinaryStream in interface ResultSet
Throws:
SQLException

_getBinaryStream

public InputStream _getBinaryStream(int columnIndex)

getBinaryStream

public InputStream getBinaryStream(String columnName)
                            throws SQLException
Specified by:
getBinaryStream in interface ResultSet
Throws:
SQLException

_getBinaryStream

public InputStream _getBinaryStream(String columnName)

getBlob

public Blob getBlob(int i)
             throws SQLException
Specified by:
getBlob in interface ResultSet
Throws:
SQLException

_getBlob

public Blob _getBlob(int i)

getBlob

public Blob getBlob(String colName)
             throws SQLException
Specified by:
getBlob in interface ResultSet
Throws:
SQLException

_getBlob

public Blob _getBlob(String colName)

getBoolean

public boolean getBoolean(int columnIndex)
                   throws SQLException
Specified by:
getBoolean in interface ResultSet
Throws:
SQLException

_getBoolean

public boolean _getBoolean(int columnIndex)

getBoolean

public boolean getBoolean(String columnName)
                   throws SQLException
Specified by:
getBoolean in interface ResultSet
Throws:
SQLException

_getBoolean

public boolean _getBoolean(String columnName)

getByte

public byte getByte(int columnIndex)
             throws SQLException
Specified by:
getByte in interface ResultSet
Throws:
SQLException

_getByte

public byte _getByte(int columnIndex)

getByte

public byte getByte(String columnName)
             throws SQLException
Specified by:
getByte in interface ResultSet
Throws:
SQLException

_getByte

public byte _getByte(String columnName)

getBytes

public byte[] getBytes(int columnIndex)
                throws SQLException
Specified by:
getBytes in interface ResultSet
Throws:
SQLException

_getBytes

public byte[] _getBytes(int columnIndex)

getBytes

public byte[] getBytes(String columnName)
                throws SQLException
Specified by:
getBytes in interface ResultSet
Throws:
SQLException

_getBytes

public byte[] _getBytes(String columnName)

getCharacterStream

public Reader getCharacterStream(int columnIndex)
                          throws SQLException
Specified by:
getCharacterStream in interface ResultSet
Throws:
SQLException

_getCharacterStream

public Reader _getCharacterStream(int columnIndex)

getCharacterStream

public Reader getCharacterStream(String columnName)
                          throws SQLException
Specified by:
getCharacterStream in interface ResultSet
Throws:
SQLException

_getCharacterStream

public Reader _getCharacterStream(String columnName)

getClob

public Clob getClob(int i)
             throws SQLException
Specified by:
getClob in interface ResultSet
Throws:
SQLException

_getClob

public Clob _getClob(int i)

getClob

public Clob getClob(String colName)
             throws SQLException
Specified by:
getClob in interface ResultSet
Throws:
SQLException

_getClob

public Clob _getClob(String colName)

getConcurrency

public int getConcurrency()
                   throws SQLException
Specified by:
getConcurrency in interface ResultSet
Throws:
SQLException

_getConcurrency

public int _getConcurrency()

getCursorName

public String getCursorName()
                     throws SQLException
Specified by:
getCursorName in interface ResultSet
Throws:
SQLException

_getCursorName

public String _getCursorName()

getDate

public Date getDate(int columnIndex)
             throws SQLException
Specified by:
getDate in interface ResultSet
Throws:
SQLException

_getDate

public Date _getDate(int columnIndex)

getDate

public Date getDate(String columnName)
             throws SQLException
Specified by:
getDate in interface ResultSet
Throws:
SQLException

_getDate

public Date _getDate(String columnName)

getDate

public Date getDate(int columnIndex,
                    Calendar cal)
             throws SQLException
Specified by:
getDate in interface ResultSet
Throws:
SQLException

_getDate

public Date _getDate(int columnIndex,
                     Calendar cal)

getDate

public Date getDate(String columnName,
                    Calendar cal)
             throws SQLException
Specified by:
getDate in interface ResultSet
Throws:
SQLException

_getDate

public Date _getDate(String columnName,
                     Calendar cal)

getDouble

public double getDouble(int columnIndex)
                 throws SQLException
Specified by:
getDouble in interface ResultSet
Throws:
SQLException

_getDouble

public double _getDouble(int columnIndex)

getDouble

public double getDouble(String columnName)
                 throws SQLException
Specified by:
getDouble in interface ResultSet
Throws:
SQLException

_getDouble

public double _getDouble(String columnName)

getFetchDirection

public int getFetchDirection()
                      throws SQLException
Specified by:
getFetchDirection in interface ResultSet
Throws:
SQLException

_getFetchDirection

public int _getFetchDirection()

getFetchSize

public int getFetchSize()
                 throws SQLException
Specified by:
getFetchSize in interface ResultSet
Throws:
SQLException

_getFetchSize

public int _getFetchSize()

getFloat

public float getFloat(int columnIndex)
               throws SQLException
Specified by:
getFloat in interface ResultSet
Throws:
SQLException

_getFloat

public float _getFloat(int columnIndex)

getFloat

public float getFloat(String columnName)
               throws SQLException
Specified by:
getFloat in interface ResultSet
Throws:
SQLException

_getFloat

public float _getFloat(String columnName)

getInt

public int getInt(int columnIndex)
           throws SQLException
Specified by:
getInt in interface ResultSet
Throws:
SQLException

_getInt

public int _getInt(int columnIndex)

getInt

public int getInt(String columnName)
           throws SQLException
Specified by:
getInt in interface ResultSet
Throws:
SQLException

_getInt

public int _getInt(String columnName)

getLong

public long getLong(int columnIndex)
             throws SQLException
Specified by:
getLong in interface ResultSet
Throws:
SQLException

_getLong

public long _getLong(int i)

getLong

public long getLong(String columnName)
             throws SQLException
Specified by:
getLong in interface ResultSet
Throws:
SQLException

_getLong

public long _getLong(String columnName)

getMetaData

public ResultSetMetaData getMetaData()
                              throws SQLException
Specified by:
getMetaData in interface ResultSet
Throws:
SQLException

_getMetaData

public ResultSetMetaData _getMetaData()

getObject

public Object getObject(int columnIndex)
                 throws SQLException
Specified by:
getObject in interface ResultSet
Throws:
SQLException

_getObject

public Object _getObject(int columnIndex)

getObject

public Object getObject(String columnName)
                 throws SQLException
Specified by:
getObject in interface ResultSet
Throws:
SQLException

_getObject

public Object _getObject(String columnName)

getObject

public Object getObject(int i,
                        Map<String,Class<?>> map)
                 throws SQLException
Specified by:
getObject in interface ResultSet
Throws:
SQLException

_getObject

public Object _getObject(int i,
                         Map<String,Class<?>> map)

getObject

public Object getObject(String colName,
                        Map<String,Class<?>> map)
                 throws SQLException
Specified by:
getObject in interface ResultSet
Throws:
SQLException

_getObject

public Object _getObject(String colName,
                         Map<String,Class<?>> map)

getRef

public Ref getRef(int i)
           throws SQLException
Specified by:
getRef in interface ResultSet
Throws:
SQLException

_getRef

public Ref _getRef(int i)

getRef

public Ref getRef(String colName)
           throws SQLException
Specified by:
getRef in interface ResultSet
Throws:
SQLException

_getRef

public Ref _getRef(String colName)

getRow

public int getRow()
           throws SQLException
Specified by:
getRow in interface ResultSet
Throws:
SQLException

_getRow

public int _getRow()

getShort

public short getShort(int columnIndex)
               throws SQLException
Specified by:
getShort in interface ResultSet
Throws:
SQLException

_getShort

public short _getShort(int columnIndex)

getShort

public short getShort(String columnName)
               throws SQLException
Specified by:
getShort in interface ResultSet
Throws:
SQLException

_getShort

public short _getShort(String columnName)

getStatement

public Statement getStatement()
                       throws SQLException
Specified by:
getStatement in interface ResultSet
Throws:
SQLException

_getStatement

public Statement _getStatement()

getString

public String getString(int columnIndex)
                 throws SQLException
Specified by:
getString in interface ResultSet
Throws:
SQLException

_getString

public String _getString(int columnIndex)
                  throws SQLException
Throws:
SQLException

getString

public String getString(String columnName)
                 throws SQLException
Specified by:
getString in interface ResultSet
Throws:
SQLException

_getString

public String _getString(String columnName)
                  throws SQLException
Throws:
SQLException

getTime

public Time getTime(int columnIndex)
             throws SQLException
Specified by:
getTime in interface ResultSet
Throws:
SQLException

_getTime

public Time _getTime(int columnIndex)

getTime

public Time getTime(String columnName)
             throws SQLException
Specified by:
getTime in interface ResultSet
Throws:
SQLException

_getTime

public Time _getTime(String columnName)

getTime

public Time getTime(int columnIndex,
                    Calendar cal)
             throws SQLException
Specified by:
getTime in interface ResultSet
Throws:
SQLException

_getTime

public Time _getTime(int columnIndex,
                     Calendar cal)

getTime

public Time getTime(String columnName,
                    Calendar cal)
             throws SQLException
Specified by:
getTime in interface ResultSet
Throws:
SQLException

_getTime

public Time _getTime(String columnName,
                     Calendar cal)

getTimestamp

public Timestamp getTimestamp(int columnIndex)
                       throws SQLException
Specified by:
getTimestamp in interface ResultSet
Throws:
SQLException

_getTimestamp

public Timestamp _getTimestamp(int columnIndex)

getTimestamp

public Timestamp getTimestamp(String columnName)
                       throws SQLException
Specified by:
getTimestamp in interface ResultSet
Throws:
SQLException

_getTimestamp

public Timestamp _getTimestamp(String columnName)

getTimestamp

public Timestamp getTimestamp(int columnIndex,
                              Calendar cal)
                       throws SQLException
Specified by:
getTimestamp in interface ResultSet
Throws:
SQLException

_getTimestamp

public Timestamp _getTimestamp(int columnIndex,
                               Calendar cal)

getTimestamp

public Timestamp getTimestamp(String columnName,
                              Calendar cal)
                       throws SQLException
Specified by:
getTimestamp in interface ResultSet
Throws:
SQLException

_getTimestamp

public Timestamp _getTimestamp(String columnName,
                               Calendar cal)

getType

public int getType()
            throws SQLException
Specified by:
getType in interface ResultSet
Throws:
SQLException

_getType

public int _getType()

getURL

public URL getURL(int columnIndex)
           throws SQLException
Specified by:
getURL in interface ResultSet
Throws:
SQLException

_getURL

public URL _getURL(int columnIndex)

getURL

public URL getURL(String columnName)
           throws SQLException
Specified by:
getURL in interface ResultSet
Throws:
SQLException

_getURL

public URL _getURL(String columnName)

getUnicodeStream

public InputStream getUnicodeStream(int columnIndex)
                             throws SQLException
Specified by:
getUnicodeStream in interface ResultSet
Throws:
SQLException

_getUnicodeStream

public InputStream _getUnicodeStream(int columnIndex)

getUnicodeStream

public InputStream getUnicodeStream(String columnName)
                             throws SQLException
Specified by:
getUnicodeStream in interface ResultSet
Throws:
SQLException

_getUnicodeStream

public InputStream _getUnicodeStream(String columnName)

getWarnings

public SQLWarning getWarnings()
                       throws SQLException
Specified by:
getWarnings in interface ResultSet
Throws:
SQLException

_getWarnings

public SQLWarning _getWarnings()

insertRow

public void insertRow()
               throws SQLException
Specified by:
insertRow in interface ResultSet
Throws:
SQLException

_insertRow

public void _insertRow()

isAfterLast

public boolean isAfterLast()
                    throws SQLException
Specified by:
isAfterLast in interface ResultSet
Throws:
SQLException

_isAfterLast

public boolean _isAfterLast()

isBeforeFirst

public boolean isBeforeFirst()
                      throws SQLException
Specified by:
isBeforeFirst in interface ResultSet
Throws:
SQLException

_isBeforeFirst

public boolean _isBeforeFirst()

isFirst

public boolean isFirst()
                throws SQLException
Specified by:
isFirst in interface ResultSet
Throws:
SQLException

_isFirst

public boolean _isFirst()

isLast

public boolean isLast()
               throws SQLException
Specified by:
isLast in interface ResultSet
Throws:
SQLException

_isLast

public boolean _isLast()

last

public boolean last()
             throws SQLException
Specified by:
last in interface ResultSet
Throws:
SQLException

_last

public boolean _last()

moveToCurrentRow

public void moveToCurrentRow()
                      throws SQLException
Specified by:
moveToCurrentRow in interface ResultSet
Throws:
SQLException

_moveToCurrentRow

public void _moveToCurrentRow()

moveToInsertRow

public void moveToInsertRow()
                     throws SQLException
Specified by:
moveToInsertRow in interface ResultSet
Throws:
SQLException

_moveToInsertRow

public void _moveToInsertRow()

next

public boolean next()
             throws SQLException
Specified by:
next in interface ResultSet
Throws:
SQLException

_next

public boolean _next()
              throws SQLException
Throws:
SQLException

previous

public boolean previous()
                 throws SQLException
Specified by:
previous in interface ResultSet
Throws:
SQLException

_previous

public boolean _previous()

refreshRow

public void refreshRow()
                throws SQLException
Specified by:
refreshRow in interface ResultSet
Throws:
SQLException

_refreshRow

public void _refreshRow()

relative

public boolean relative(int rows)
                 throws SQLException
Specified by:
relative in interface ResultSet
Throws:
SQLException

_relative

public boolean _relative(int rows)

rowDeleted

public boolean rowDeleted()
                   throws SQLException
Specified by:
rowDeleted in interface ResultSet
Throws:
SQLException

_rowDeleted

public boolean _rowDeleted()

rowInserted

public boolean rowInserted()
                    throws SQLException
Specified by:
rowInserted in interface ResultSet
Throws:
SQLException

_rowInserted

public boolean _rowInserted()

rowUpdated

public boolean rowUpdated()
                   throws SQLException
Specified by:
rowUpdated in interface ResultSet
Throws:
SQLException

_rowUpdated

public boolean _rowUpdated()

setFetchDirection

public void setFetchDirection(int direction)
                       throws SQLException
Specified by:
setFetchDirection in interface ResultSet
Throws:
SQLException

_setFetchDirection

public void _setFetchDirection(int direction)

setFetchSize

public void setFetchSize(int rows)
                  throws SQLException
Specified by:
setFetchSize in interface ResultSet
Throws:
SQLException

_setFetchSize

public void _setFetchSize(int rows)

updateArray

public void updateArray(int columnIndex,
                        Array x)
                 throws SQLException
Specified by:
updateArray in interface ResultSet
Throws:
SQLException

_updateArray

public void _updateArray(int columnIndex,
                         Array x)

updateArray

public void updateArray(String columnName,
                        Array x)
                 throws SQLException
Specified by:
updateArray in interface ResultSet
Throws:
SQLException

_updateArray

public void _updateArray(String columnName,
                         Array x)

updateAsciiStream

public void updateAsciiStream(int columnIndex,
                              InputStream x,
                              int length)
                       throws SQLException
Specified by:
updateAsciiStream in interface ResultSet
Throws:
SQLException

_updateAsciiStream

public void _updateAsciiStream(int columnIndex,
                               InputStream x,
                               int length)

updateAsciiStream

public void updateAsciiStream(String columnName,
                              InputStream x,
                              int length)
                       throws SQLException
Specified by:
updateAsciiStream in interface ResultSet
Throws:
SQLException

_updateAsciiStream

public void _updateAsciiStream(String columnName,
                               InputStream x,
                               int length)

updateBigDecimal

public void updateBigDecimal(int columnIndex,
                             BigDecimal x)
                      throws SQLException
Specified by:
updateBigDecimal in interface ResultSet
Throws:
SQLException

_updateBigDecimal

public void _updateBigDecimal(int columnIndex,
                              BigDecimal x)

updateBigDecimal

public void updateBigDecimal(String columnName,
                             BigDecimal x)
                      throws SQLException
Specified by:
updateBigDecimal in interface ResultSet
Throws:
SQLException

_updateBigDecimal

public void _updateBigDecimal(String columnName,
                              BigDecimal x)

updateBinaryStream

public void updateBinaryStream(int columnIndex,
                               InputStream x,
                               int length)
                        throws SQLException
Specified by:
updateBinaryStream in interface ResultSet
Throws:
SQLException

_updateBinaryStream

public void _updateBinaryStream(int columnIndex,
                                InputStream x,
                                int length)

updateBinaryStream

public void updateBinaryStream(String columnName,
                               InputStream x,
                               int length)
                        throws SQLException
Specified by:
updateBinaryStream in interface ResultSet
Throws:
SQLException

_updateBinaryStream

public void _updateBinaryStream(String columnName,
                                InputStream x,
                                int length)

updateBlob

public void updateBlob(int columnIndex,
                       Blob x)
                throws SQLException
Specified by:
updateBlob in interface ResultSet
Throws:
SQLException

_updateBlob

public void _updateBlob(int columnIndex,
                        Blob x)

updateBlob

public void updateBlob(String columnName,
                       Blob x)
                throws SQLException
Specified by:
updateBlob in interface ResultSet
Throws:
SQLException

_updateBlob

public void _updateBlob(String columnName,
                        Blob x)

updateBoolean

public void updateBoolean(int columnIndex,
                          boolean x)
                   throws SQLException
Specified by:
updateBoolean in interface ResultSet
Throws:
SQLException

_updateBoolean

public void _updateBoolean(int columnIndex,
                           boolean x)

updateBoolean

public void updateBoolean(String columnName,
                          boolean x)
                   throws SQLException
Specified by:
updateBoolean in interface ResultSet
Throws:
SQLException

_updateBoolean

public void _updateBoolean(String columnName,
                           boolean x)

updateByte

public void updateByte(int columnIndex,
                       byte x)
                throws SQLException
Specified by:
updateByte in interface ResultSet
Throws:
SQLException

_updateByte

public void _updateByte(int columnIndex,
                        byte x)

updateByte

public void updateByte(String columnName,
                       byte x)
                throws SQLException
Specified by:
updateByte in interface ResultSet
Throws:
SQLException

_updateByte

public void _updateByte(String columnName,
                        byte x)

updateBytes

public void updateBytes(int columnIndex,
                        byte[] x)
                 throws SQLException
Specified by:
updateBytes in interface ResultSet
Throws:
SQLException

_updateBytes

public void _updateBytes(int columnIndex,
                         byte[] x)

updateBytes

public void updateBytes(String columnName,
                        byte[] x)
                 throws SQLException
Specified by:
updateBytes in interface ResultSet
Throws:
SQLException

_updateBytes

public void _updateBytes(String columnName,
                         byte[] x)

updateCharacterStream

public void updateCharacterStream(int columnIndex,
                                  Reader x,
                                  int length)
                           throws SQLException
Specified by:
updateCharacterStream in interface ResultSet
Throws:
SQLException

_updateCharacterStream

public void _updateCharacterStream(int columnIndex,
                                   Reader x,
                                   int length)

updateCharacterStream

public void updateCharacterStream(String columnName,
                                  Reader reader,
                                  int length)
                           throws SQLException
Specified by:
updateCharacterStream in interface ResultSet
Throws:
SQLException

_updateCharacterStream

public void _updateCharacterStream(String columnName,
                                   Reader reader,
                                   int length)

updateClob

public void updateClob(int columnIndex,
                       Clob x)
                throws SQLException
Specified by:
updateClob in interface ResultSet
Throws:
SQLException

_updateClob

public void _updateClob(int columnIndex,
                        Clob x)

updateClob

public void updateClob(String columnName,
                       Clob x)
                throws SQLException
Specified by:
updateClob in interface ResultSet
Throws:
SQLException

_updateClob

public void _updateClob(String columnName,
                        Clob x)

updateDate

public void updateDate(int columnIndex,
                       Date x)
                throws SQLException
Specified by:
updateDate in interface ResultSet
Throws:
SQLException

_updateDate

public void _updateDate(int columnIndex,
                        Date x)

updateDate

public void updateDate(String columnName,
                       Date x)
                throws SQLException
Specified by:
updateDate in interface ResultSet
Throws:
SQLException

_updateDate

public void _updateDate(String columnName,
                        Date x)

updateDouble

public void updateDouble(int columnIndex,
                         double x)
                  throws SQLException
Specified by:
updateDouble in interface ResultSet
Throws:
SQLException

_updateDouble

public void _updateDouble(int columnIndex,
                          double x)

updateDouble

public void updateDouble(String columnName,
                         double x)
                  throws SQLException
Specified by:
updateDouble in interface ResultSet
Throws:
SQLException

_updateDouble

public void _updateDouble(String columnName,
                          double x)

updateFloat

public void updateFloat(int columnIndex,
                        float x)
                 throws SQLException
Specified by:
updateFloat in interface ResultSet
Throws:
SQLException

_updateFloat

public void _updateFloat(int columnIndex,
                         float x)

updateFloat

public void updateFloat(String columnName,
                        float x)
                 throws SQLException
Specified by:
updateFloat in interface ResultSet
Throws:
SQLException

_updateFloat

public void _updateFloat(String columnName,
                         float x)

updateInt

public void updateInt(int columnIndex,
                      int x)
               throws SQLException
Specified by:
updateInt in interface ResultSet
Throws:
SQLException

_updateInt

public void _updateInt(int columnIndex,
                       int x)

updateInt

public void updateInt(String columnName,
                      int x)
               throws SQLException
Specified by:
updateInt in interface ResultSet
Throws:
SQLException

_updateInt

public void _updateInt(String columnName,
                       int x)

updateLong

public void updateLong(int columnIndex,
                       long x)
                throws SQLException
Specified by:
updateLong in interface ResultSet
Throws:
SQLException

_updateLong

public void _updateLong(int columnIndex,
                        long x)

updateLong

public void updateLong(String columnName,
                       long x)
                throws SQLException
Specified by:
updateLong in interface ResultSet
Throws:
SQLException

_updateLong

public void _updateLong(String columnName,
                        long x)

updateNull

public void updateNull(int columnIndex)
                throws SQLException
Specified by:
updateNull in interface ResultSet
Throws:
SQLException

_updateNull

public void _updateNull(int columnIndex)

updateNull

public void updateNull(String columnName)
                throws SQLException
Specified by:
updateNull in interface ResultSet
Throws:
SQLException

_updateNull

public void _updateNull(String columnName)

updateObject

public void updateObject(int columnIndex,
                         Object x)
                  throws SQLException
Specified by:
updateObject in interface ResultSet
Throws:
SQLException

_updateObject

public void _updateObject(int columnIndex,
                          Object x)

updateObject

public void updateObject(String columnName,
                         Object x)
                  throws SQLException
Specified by:
updateObject in interface ResultSet
Throws:
SQLException

_updateObject

public void _updateObject(String columnName,
                          Object x)

updateObject

public void updateObject(int columnIndex,
                         Object x,
                         int scale)
                  throws SQLException
Specified by:
updateObject in interface ResultSet
Throws:
SQLException

_updateObject

public void _updateObject(int columnIndex,
                          Object x,
                          int scale)

updateObject

public void updateObject(String columnName,
                         Object x,
                         int scale)
                  throws SQLException
Specified by:
updateObject in interface ResultSet
Throws:
SQLException

_updateObject

public void _updateObject(String columnName,
                          Object x,
                          int scale)

updateRef

public void updateRef(int columnIndex,
                      Ref x)
               throws SQLException
Specified by:
updateRef in interface ResultSet
Throws:
SQLException

_updateRef

public void _updateRef(int columnIndex,
                       Ref x)

updateRef

public void updateRef(String columnName,
                      Ref x)
               throws SQLException
Specified by:
updateRef in interface ResultSet
Throws:
SQLException

_updateRef

public void _updateRef(String columnName,
                       Ref x)

updateRow

public void updateRow()
               throws SQLException
Specified by:
updateRow in interface ResultSet
Throws:
SQLException

_updateRow

public void _updateRow()

updateShort

public void updateShort(int columnIndex,
                        short x)
                 throws SQLException
Specified by:
updateShort in interface ResultSet
Throws:
SQLException

_updateShort

public void _updateShort(int columnIndex,
                         short x)

updateShort

public void updateShort(String columnName,
                        short x)
                 throws SQLException
Specified by:
updateShort in interface ResultSet
Throws:
SQLException

_updateShort

public void _updateShort(String columnName,
                         short x)

updateString

public void updateString(int columnIndex,
                         String x)
                  throws SQLException
Specified by:
updateString in interface ResultSet
Throws:
SQLException

_updateString

public void _updateString(int columnIndex,
                          String x)

updateString

public void updateString(String columnName,
                         String x)
                  throws SQLException
Specified by:
updateString in interface ResultSet
Throws:
SQLException

_updateString

public void _updateString(String columnName,
                          String x)

updateTime

public void updateTime(int columnIndex,
                       Time x)
                throws SQLException
Specified by:
updateTime in interface ResultSet
Throws:
SQLException

_updateTime

public void _updateTime(int columnIndex,
                        Time x)

updateTime

public void updateTime(String columnName,
                       Time x)
                throws SQLException
Specified by:
updateTime in interface ResultSet
Throws:
SQLException

_updateTime

public void _updateTime(String columnName,
                        Time x)

updateTimestamp

public void updateTimestamp(int columnIndex,
                            Timestamp x)
                     throws SQLException
Specified by:
updateTimestamp in interface ResultSet
Throws:
SQLException

_updateTimestamp

public void _updateTimestamp(int columnIndex,
                             Timestamp x)

updateTimestamp

public void updateTimestamp(String columnName,
                            Timestamp x)
                     throws SQLException
Specified by:
updateTimestamp in interface ResultSet
Throws:
SQLException

_updateTimestamp

public void _updateTimestamp(String columnName,
                             Timestamp x)

wasNull

public boolean wasNull()
                throws SQLException
Specified by:
wasNull in interface ResultSet
Throws:
SQLException

_wasNull

public boolean _wasNull()

autoClose

protected void autoClose()

assertClosed

public void assertClosed()

assertExplicitClose

public void assertExplicitClose()

setParent

public void setParent(MockStatement mockStatement)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 Smokestack. All Rights Reserved.