| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Implementation of RowCallbackHandler. Convenient superclass for callback handlers. An instance can only be used once.
We can either use this on its own (for example, in a test case, to ensure that our result sets have valid dimensions), or use it as a superclass for callback handlers that actually do something, and will benefit from the dimension information it provides.
| Method Summary | |
final int | getColumnCount()Return the number of columns in this result set. |
final String[] | getColumnNames()Return the names of the columns. |
final int[] | getColumnTypes()Return the types of the columns as java.sql.Types constants Valid after processRow is invoked the first time. |
final int | getRowCount()Return the row count of this ResultSet Only valid after processing is complete |
final void | processRow(ResultSet rs)Implementation of ResultSetCallbackHandler. |
| Method Detail |
public final int getColumnCount()
public final String[] getColumnNames()
public final int[] getColumnTypes()
public final int getRowCount()
public final void processRow(ResultSet rs)
throws java.sql.SQLException
Subclasses can perform custom extraction or processing by overriding the processRow(ResultSet, int) method.
| Association Links |
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||