tribble.sql.test
Class FakeResultSet

java.lang.Object
  extended by tribble.sql.ResultSetAdapter
      extended by tribble.sql.test.FakeResultSet
All Implemented Interfaces:
java.sql.ResultSet

 class FakeResultSet
extends ResultSetAdapter

Fake JDBC result set driver class.

Source code:
Available at: http://david.tribble.com/src/java/tribble/sql/test/FakeResultSet.java
Documentation:
Available at: http://david.tribble.com/docs/tribble/sql/test/FakeResultSet.html

Since:
2008-09-02
Version:
@(#)$Revision: 1.3 $ $Date: 2008/09/06 18:42:15 $
Author:
David R. Tribble (david@tribble.com)

Copyright ©2008 by David R. Tribble, all rights reserved.
Permission is granted to any person or entity except those designated by by the United States Department of State as a terrorist, or terrorist government or agency, to use and distribute this source code provided that the original copyright notice remains present and unaltered.

See Also:
Test1, FakeStatement

Field Summary
(package private) static java.lang.String REV
           
 
Fields inherited from class tribble.sql.ResultSetAdapter
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
FakeResultSet(java.lang.String stmt)
          Constructor.
 
Method Summary
 boolean getBoolean(int col)
           
 java.sql.Date getDate(int col)
           
 int getInt(int col)
           
 java.lang.Object getObject(int col)
           
 java.lang.String getString(int col)
           
 java.sql.Time getTime(int col)
           
 java.sql.Timestamp getTimestamp(int col)
           
 boolean next()
           
 boolean wasNull()
           
 
Methods inherited from class tribble.sql.ResultSetAdapter
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getLong, getLong, getMetaData, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getShort, getStatement, getString, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, 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, updateUnicodeStream, updateUnicodeStream, updateURL, updateURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REV

static final java.lang.String REV
See Also:
Constant Field Values
Constructor Detail

FakeResultSet

FakeResultSet(java.lang.String stmt)
Constructor.

Since:
1.1, 2008-09-02
Method Detail

next

public boolean next()
Specified by:
next in interface java.sql.ResultSet
Overrides:
next in class ResultSetAdapter

wasNull

public boolean wasNull()
Specified by:
wasNull in interface java.sql.ResultSet
Overrides:
wasNull in class ResultSetAdapter

getBoolean

public boolean getBoolean(int col)
Specified by:
getBoolean in interface java.sql.ResultSet
Overrides:
getBoolean in class ResultSetAdapter

getInt

public int getInt(int col)
Specified by:
getInt in interface java.sql.ResultSet
Overrides:
getInt in class ResultSetAdapter

getString

public java.lang.String getString(int col)
                           throws java.sql.SQLException
Specified by:
getString in interface java.sql.ResultSet
Overrides:
getString in class ResultSetAdapter
Throws:
java.sql.SQLException

getDate

public java.sql.Date getDate(int col)
Specified by:
getDate in interface java.sql.ResultSet
Overrides:
getDate in class ResultSetAdapter

getTime

public java.sql.Time getTime(int col)
Specified by:
getTime in interface java.sql.ResultSet
Overrides:
getTime in class ResultSetAdapter

getTimestamp

public java.sql.Timestamp getTimestamp(int col)
Specified by:
getTimestamp in interface java.sql.ResultSet
Overrides:
getTimestamp in class ResultSetAdapter

getObject

public java.lang.Object getObject(int col)
Specified by:
getObject in interface java.sql.ResultSet
Overrides:
getObject in class ResultSetAdapter