liquibase.database.template.RowCallbackHandler Interface Reference

List of all members.


Detailed Description

An interface used by JdbcTemplate for processing rows of a java.sql.ResultSet on a per-row basis.

Implementations of this interface perform the actual work of processing each row but don't need to worry about exception handling. SQLExceptions will be caught and handled by the calling JdbcTemplate.

In contrast to a ResultSetExtractor, a RowCallbackHandler object is typically stateful: It keeps the result state within the object, to be available for later inspection.

Consider using a RowMapper instead if you need to map exactly one result object per row, assembling them into a List.

Author:
Spring Framework
See also:
JdbcTemplate

RowMapper

ResultSetExtractor

Definition at line 25 of file RowCallbackHandler.java.


Package Functions

void processRow (ResultSet rs)
 Implementations must implement this method to process each row of data in the ResultSet.

Member Function Documentation

void liquibase.database.template.RowCallbackHandler.processRow ( ResultSet  rs  )  [package]

Implementations must implement this method to process each row of data in the ResultSet.

This method should not call next() on the ResultSet; it is only supposed to extract values of the current row.

Exactly what the implementation chooses to do is up to it: A trivial implementation might simply count rows, while another implementation might build an XML document.

Parameters:
rs the ResultSet to process (pre-initialized for the current row)
Exceptions:
java.sql.SQLException if a SQLException is encountered getting column values (that is, there's no need to catch SQLException)


The documentation for this interface was generated from the following file:

doxygen