| java.lang.Object org.apache.commons.beanutils.TestResultSet
TestResultSet | public class TestResultSet implements InvocationHandler(Code) | | Mock object that implements enough of java.sql.ResultSet
to exercise the
ResultSetDyaClass functionality.
author: Craig R. McClanahan version: $Revision: 556233 $ $Date: 2007-07-14 07:37:06 +0100 (Sat, 14 Jul 2007) $ |
Field Summary | |
protected ResultSetMetaData | resultSetMetaData Meta data for the result set. | protected int | row Current row number (0 means "before the first one"). | protected long | timestamp The constant (per run) value used to initialize date/time/timestamp. |
Method Summary | |
public boolean | absolute(int row) | public void | afterLast() | public void | beforeFirst() | public void | cancelRowUpdates() | public void | clearWarnings() | public void | close() | public static ResultSet | createProxy() Factory method for creating
ResultSet proxies. | public static ResultSet | createProxy(InvocationHandler invocationHandler) Factory method for creating
ResultSet proxies. | public void | deleteRow() | public int | findColumn(String columnName) | public boolean | first() | public Array | getArray(int columnIndex) | public Array | getArray(String columnName) | public InputStream | getAsciiStream(int columnIndex) | public InputStream | getAsciiStream(String columnName) | public BigDecimal | getBigDecimal(int columnIndex) | public BigDecimal | getBigDecimal(int columnIndex, int scale) | public BigDecimal | getBigDecimal(String columnName) | public BigDecimal | getBigDecimal(String columnName, int scale) | public InputStream | getBinaryStream(int columnIndex) | public InputStream | getBinaryStream(String columnName) | public Blob | getBlob(int columnIndex) | public Blob | getBlob(String columnName) | public boolean | getBoolean(int columnIndex) | public boolean | getBoolean(String columnName) | public byte | getByte(int columnIndex) | public byte | getByte(String columnName) | public byte[] | getBytes(int columnIndex) | public byte[] | getBytes(String columnName) | public Reader | getCharacterStream(int columnIndex) | public Reader | getCharacterStream(String columnName) | public Clob | getClob(int columnIndex) | public Clob | getClob(String columnName) | public int | getConcurrency() | public String | getCursorName() | public Date | getDate(String columnName) | public Date | getDate(int columnIndex) | public Date | getDate(int columnIndex, Calendar cal) | public Date | getDate(String columnName, Calendar cal) | public double | getDouble(int columnIndex) | public double | getDouble(String columnName) | public int | getFetchDirection() | public int | getFetchSize() | public float | getFloat(int columnIndex) | public float | getFloat(String columnName) | public int | getInt(int columnIndex) | public int | getInt(String columnName) | public long | getLong(int columnIndex) | public long | getLong(String columnName) | public ResultSetMetaData | getMetaData() | public Object | getObject(String columnName) | public Object | getObject(int columnIndex) | public Object | getObject(int columnIndex, Map map) | public Object | getObject(String columnName, Map map) | public Ref | getRef(int columnIndex) | public Ref | getRef(String columnName) | public int | getRow() | public short | getShort(int columnIndex) | public short | getShort(String columnName) | public Statement | getStatement() | public String | getString(int columnIndex) | public String | getString(String columnName) | public Time | getTime(String columnName) | public Time | getTime(int columnIndex) | public Time | getTime(int columnIndex, Calendar cal) | public Time | getTime(String columnName, Calendar cal) | public Timestamp | getTimestamp(String columnName) | public Timestamp | getTimestamp(int columnIndex) | public Timestamp | getTimestamp(int columnIndex, Calendar cal) | public Timestamp | getTimestamp(String columnName, Calendar cal) | public int | getType() | public URL | getURL(int columnIndex) | public URL | getURL(String columnName) | public InputStream | getUnicodeStream(int columnIndex) | public InputStream | getUnicodeStream(String columnName) | public SQLWarning | getWarnings() | public void | insertRow() | public Object | invoke(Object proxy, Method method, Object[] args) Handles method invocation on the ResultSet proxy. | 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 rows) | public boolean | rowDeleted() | public boolean | rowInserted() | public boolean | rowUpdated() | public void | setFetchDirection(int direction) | public void | setFetchSize(int size) | public void | updateArray(int columnPosition, Array x) | public void | updateArray(String columnName, Array x) | public void | updateAsciiStream(int columnPosition, InputStream x, int len) | public void | updateAsciiStream(String columnName, InputStream x, int len) | public void | updateBigDecimal(int columnPosition, BigDecimal x) | public void | updateBigDecimal(String columnName, BigDecimal x) | public void | updateBinaryStream(int columnPosition, InputStream x, int len) | public void | updateBinaryStream(String columnName, InputStream x, int len) | public void | updateBlob(int columnPosition, Blob x) | public void | updateBlob(String columnName, Blob x) | public void | updateBoolean(int columnPosition, boolean x) | public void | updateBoolean(String columnName, boolean x) | public void | updateByte(int columnPosition, byte x) | public void | updateByte(String columnName, byte x) | public void | updateBytes(int columnPosition, byte x) | public void | updateBytes(String columnName, byte x) | public void | updateCharacterStream(int columnPosition, Reader x, int len) | public void | updateCharacterStream(String columnName, Reader x, int len) | public void | updateClob(int columnPosition, Clob x) | public void | updateClob(String columnName, Clob x) | public void | updateDate(int columnPosition, Date x) | public void | updateDate(String columnName, Date x) | public void | updateDouble(int columnPosition, double x) | public void | updateDouble(String columnName, double x) | public void | updateFloat(int columnPosition, float x) | public void | updateFloat(String columnName, float x) | public void | updateInt(int columnPosition, int x) | public void | updateInt(String columnName, int x) | public void | updateLong(int columnPosition, long x) | public void | updateLong(String columnName, long x) | public void | updateNull(int columnPosition) | public void | updateNull(String columnName) | public void | updateObject(String columnName, Object x) | public void | updateObject(int columnPosition, Object x) | public void | updateObject(int columnPosition, Object x, int scale) | public void | updateObject(String columnName, Object x, int scale) | public void | updateRef(int columnPosition, Ref x) | public void | updateRef(String columnName, Ref x) | public void | updateRow() | public void | updateShort(int columnPosition, short x) | public void | updateShort(String columnName, short x) | public void | updateString(int columnPosition, String x) | public void | updateString(String columnName, String x) | public void | updateTime(int columnPosition, Time x) | public void | updateTime(String columnName, Time x) | public void | updateTimestamp(int columnPosition, Timestamp x) | public void | updateTimestamp(String columnName, Timestamp x) | public boolean | wasNull() |
row | protected int row(Code) | | Current row number (0 means "before the first one").
|
timestamp | protected long timestamp(Code) | | The constant (per run) value used to initialize date/time/timestamp.
|
TestResultSet | public TestResultSet()(Code) | | Create a proxy ResultSet.
|
TestResultSet | public TestResultSet(ResultSetMetaData resultSetMetaData)(Code) | | Create a proxy ResultSet with the specified meta data.
Parameters: resultSetMetaData - The result set meta data |
createProxy | public static ResultSet createProxy()(Code) | | Factory method for creating
ResultSet proxies.
A result set proxy |
createProxy | public static ResultSet createProxy(InvocationHandler invocationHandler)(Code) | | Factory method for creating
ResultSet proxies.
Parameters: invocationHandler - Invocation Handler A result set proxy |
invoke | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable(Code) | | Handles method invocation on the ResultSet proxy.
Parameters: proxy - The proxy ResultSet object Parameters: method - the method being invoked Parameters: args - The method arguments The result of invoking the method. throws: Throwable - if an error occurs. |
updateBoolean | public void updateBoolean(int columnPosition, boolean x) throws SQLException(Code) | | |
updateDouble | public void updateDouble(int columnPosition, double x) throws SQLException(Code) | | |
|
|