|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResultSetCollector
Collect a result set, ultimately available from getRow(). A ResultSetSpy instance may call a ResultSetCollector instance's methodReturned and preMethod as and when appropriate. The ResultSetCollector is then expected to build a simple representation of the rows and columns in getRow()/getColumnCount()/getColumnName().
| Method Summary | |
|---|---|
int |
getColumnCount()
|
String |
getColumnName(int column)
|
List<List<Object>> |
getRows()
|
boolean |
methodReturned(ResultSetSpy resultSetSpy,
String methodCall,
Object returnValue,
Object targetObject,
Object... methodParams)
Expected to be called by a ResultSetSpy for all jdbc methods. |
void |
preMethod(ResultSetSpy resultSetSpy,
String methodCall,
Object... methodParams)
Expected to be called by a ResultSetSpy for prior to the execution of all jdbc methods. |
void |
reset()
Clear the result set so far. |
| Method Detail |
|---|
boolean methodReturned(ResultSetSpy resultSetSpy,
String methodCall,
Object returnValue,
Object targetObject,
Object... methodParams)
void preMethod(ResultSetSpy resultSetSpy,
String methodCall,
Object... methodParams)
List<List<Object>> getRows()
int getColumnCount()
String getColumnName(int column)
void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||