|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.dbutils.MockResultSet
public class MockResultSet
MockResultSet dynamically implements the ResultSet interface.
| Constructor Summary | |
|---|---|
MockResultSet(ResultSetMetaData metaData,
Object[][] rows)
MockResultSet constructor. |
|
| Method Summary | |
|---|---|
static ResultSet |
create(ResultSetMetaData metaData,
Object[][] rows)
Create a MockResultSet proxy object. |
protected Object |
getBoolean(int columnIndex)
Gets the boolean value at the given column index. |
protected Object |
getByte(int columnIndex)
Gets the byte value at the given column index. |
protected Object |
getDouble(int columnIndex)
Gets the double value at the given column index. |
protected Object |
getFloat(int columnIndex)
Gets the float value at the given column index. |
protected Object |
getInt(int columnIndex)
Gets the int value at the given column index. |
protected Object |
getLong(int columnIndex)
Gets the long value at the given column index. |
protected ResultSetMetaData |
getMetaData()
|
protected Object |
getObject(int columnIndex)
Gets the object at the given column index. |
protected Object |
getShort(int columnIndex)
Gets the short value at the given column index. |
protected String |
getString(int columnIndex)
Gets the String at the given column index. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
|
protected Boolean |
isLast()
|
protected Boolean |
next()
|
protected Boolean |
wasNull()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockResultSet(ResultSetMetaData metaData,
Object[][] rows)
metaData - rows - A null value indicates an empty ResultSet.| Method Detail |
|---|
public static ResultSet create(ResultSetMetaData metaData,
Object[][] rows)
MockResultSet proxy object. This is equivalent to:
ProxyFactory.instance().createResultSet(new MockResultSet(metaData, rows));
metaData - rows - A null value indicates an empty ResultSet.
protected Object getBoolean(int columnIndex)
throws SQLException
columnIndex - A 1 based index.
SQLException - if a database access error occurs
protected Object getByte(int columnIndex)
throws SQLException
columnIndex - A 1 based index.
SQLException - if a database access error occurs
protected Object getDouble(int columnIndex)
throws SQLException
columnIndex - A 1 based index.
SQLException - if a database access error occurs
protected Object getFloat(int columnIndex)
throws SQLException
columnIndex - A 1 based index.
SQLException - if a database access error occurs
protected Object getInt(int columnIndex)
throws SQLException
columnIndex - A 1 based index.
SQLException - if a database access error occurs
protected Object getLong(int columnIndex)
throws SQLException
columnIndex - A 1 based index.
SQLException - if a database access error occurs
protected ResultSetMetaData getMetaData()
throws SQLException
SQLException
protected Object getObject(int columnIndex)
throws SQLException
columnIndex - A 1 based index.
SQLException - if a database access error occurs
protected Object getShort(int columnIndex)
throws SQLException
columnIndex - A 1 based index.
SQLException - if a database access error occurs
protected String getString(int columnIndex)
throws SQLException
columnIndex - A 1 based index.
SQLException - if a database access error occurs
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerThrowable
protected Boolean isLast()
throws SQLException
SQLException
protected Boolean next()
throws SQLException
SQLException
protected Boolean wasNull()
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||