| java.lang.Object net.sourceforge.squirrel_sql.mo.sql.MockResultSet
MockResultSet | public class MockResultSet implements ResultSet(Code) | | A Mock ResultSet object useful for unit tests that require ResultSets.
author: manningr |
Method Summary | |
public boolean | absolute(int arg0) | public void | addRow(Object[] values) Adds a row of values to the result. | public void | afterLast() | public void | beforeFirst() | public void | cancelRowUpdates() | public void | clearWarnings() | public void | close() | public void | deleteRow() | public int | findColumn(String arg0) | public boolean | first() | public Array | getArray(int arg0) | public Array | getArray(String arg0) | public InputStream | getAsciiStream(int arg0) | public InputStream | getAsciiStream(String arg0) | public BigDecimal | getBigDecimal(int arg0) | public BigDecimal | getBigDecimal(String arg0) | public BigDecimal | getBigDecimal(int arg0, int arg1) | public BigDecimal | getBigDecimal(String arg0, int arg1) | public InputStream | getBinaryStream(int arg0) | public InputStream | getBinaryStream(String arg0) | public Blob | getBlob(int arg0) | public Blob | getBlob(String arg0) | public boolean | getBoolean(int arg0) | public boolean | getBoolean(String arg0) | public byte | getByte(int arg0) | public byte | getByte(String arg0) | public byte[] | getBytes(int arg0) | public byte[] | getBytes(String arg0) | public Reader | getCharacterStream(int arg0) | public Reader | getCharacterStream(String arg0) | public Clob | getClob(int arg0) | public Clob | getClob(String arg0) | public int | getConcurrency() | public String | getCursorName() | public Date | getDate(int colIdx) | public Date | getDate(String arg0) | public Date | getDate(int arg0, Calendar arg1) | public Date | getDate(String arg0, Calendar arg1) | public double | getDouble(int arg0) | public double | getDouble(String arg0) | public int | getFetchDirection() | public int | getFetchSize() | public float | getFloat(int arg0) | public float | getFloat(String arg0) | public int | getInt(int arg0) | public int | getInt(String arg0) | public long | getLong(int arg0) | public long | getLong(String arg0) | public ResultSetMetaData | getMetaData() | public Object | getObject(int column) | public Object | getObject(String arg0) | public Object | getObject(int arg0, Map arg1) | public Object | getObject(String arg0, Map arg1) | public Ref | getRef(int arg0) | public Ref | getRef(String arg0) | public int | getRow() | public short | getShort(int arg0) | public short | getShort(String arg0) | public Statement | getStatement() | public String | getString(int arg0) | public String | getString(String arg0) | public Time | getTime(int arg0) | public Time | getTime(String arg0) | public Time | getTime(int arg0, Calendar arg1) | public Time | getTime(String arg0, Calendar arg1) | public Timestamp | getTimestamp(int column) | public Timestamp | getTimestamp(String arg0) | public Timestamp | getTimestamp(int arg0, Calendar arg1) | public Timestamp | getTimestamp(String arg0, Calendar arg1) | public int | getType() | public URL | getURL(int arg0) | public URL | getURL(String arg0) | public InputStream | getUnicodeStream(int arg0) | public InputStream | getUnicodeStream(String arg0) | public SQLWarning | getWarnings() | public void | insertRow() | public boolean | isAfterLast() | public boolean | isBeforeFirst() | public boolean | isFirst() | public boolean | isLast() | public boolean | last() | public void | moveToCurrentRow() | public void | moveToInsertRow() | public boolean | next() | public boolean | previous() | public void | refreshRow() | public boolean | relative(int arg0) | public boolean | rowDeleted() | public boolean | rowInserted() | public boolean | rowUpdated() | public void | setFetchDirection(int arg0) | public void | setFetchSize(int arg0) | public void | setMetaData(ResultSetMetaData md) | public void | setTableColumnInfos(TableColumnInfo[] infos) | public void | updateArray(int arg0, Array arg1) | public void | updateArray(String arg0, Array arg1) | public void | updateAsciiStream(int arg0, InputStream arg1, int arg2) | public void | updateAsciiStream(String arg0, InputStream arg1, int arg2) | public void | updateBigDecimal(int arg0, BigDecimal arg1) | public void | updateBigDecimal(String arg0, BigDecimal arg1) | public void | updateBinaryStream(int arg0, InputStream arg1, int arg2) | public void | updateBinaryStream(String arg0, InputStream arg1, int arg2) | public void | updateBlob(int arg0, Blob arg1) | public void | updateBlob(String arg0, Blob arg1) | public void | updateBoolean(int arg0, boolean arg1) | public void | updateBoolean(String arg0, boolean arg1) | public void | updateByte(int arg0, byte arg1) | public void | updateByte(String arg0, byte arg1) | public void | updateBytes(int arg0, byte[] arg1) | public void | updateBytes(String arg0, byte[] arg1) | public void | updateCharacterStream(int arg0, Reader arg1, int arg2) | public void | updateCharacterStream(String arg0, Reader arg1, int arg2) | public void | updateClob(int arg0, Clob arg1) | public void | updateClob(String arg0, Clob arg1) | public void | updateDate(int arg0, Date arg1) | public void | updateDate(String arg0, Date arg1) | public void | updateDouble(int arg0, double arg1) | public void | updateDouble(String arg0, double arg1) | public void | updateFloat(int arg0, float arg1) | public void | updateFloat(String arg0, float arg1) | public void | updateInt(int arg0, int arg1) | public void | updateInt(String arg0, int arg1) | public void | updateLong(int arg0, long arg1) | public void | updateLong(String arg0, long arg1) | public void | updateNull(int arg0) | public void | updateNull(String arg0) | public void | updateObject(int arg0, Object arg1) | public void | updateObject(String arg0, Object arg1) | public void | updateObject(int arg0, Object arg1, int arg2) | public void | updateObject(String arg0, Object arg1, int arg2) | public void | updateRef(int arg0, Ref arg1) | public void | updateRef(String arg0, Ref arg1) | public void | updateRow() | public void | updateShort(int arg0, short arg1) | public void | updateShort(String arg0, short arg1) | public void | updateString(int arg0, String arg1) | public void | updateString(String arg0, String arg1) | public void | updateTime(int arg0, Time arg1) | public void | updateTime(String arg0, Time arg1) | public void | updateTimestamp(int arg0, Timestamp arg1) | public void | updateTimestamp(String arg0, Timestamp arg1) | public boolean | wasNull() |
cursorIndex | int cursorIndex(Code) | | The index into rowData of the next row to be used to return column
values
|
MockResultSet | public MockResultSet()(Code) | | |
MockResultSet | public MockResultSet(TableColumnInfo[] infos)(Code) | | Parameters: infos - an array of TableColumnInfo items that describe the columnsof the result set. |
addRow | public void addRow(Object[] values)(Code) | | Adds a row of values to the result. Successive calls create additional
rows.
Parameters: values - |
|
|