org.apache.cayenne.access.select
Interface RowReader<T>


public interface RowReader<T>

A strategy class that encapsulates an algorithm for converting a single ResultSet row into a DataRow.

Since:
3.0

Method Summary
 T readRow(ResultSet resultSet)
          Extracts a DataRow from the ResultSet at its current position.
 void setColumnOffset(int offset)
          Sets an absolute offset of the first column processed by the reader from the begginging of the result set row.
 

Method Detail

readRow

T readRow(ResultSet resultSet)
          throws CayenneException
Extracts a DataRow from the ResultSet at its current position.

Throws:
CayenneException

setColumnOffset

void setColumnOffset(int offset)
Sets an absolute offset of the first column processed by the reader from the begginging of the result set row.



Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.