T - The type of the converted objects.public abstract class JdbcConverter<T> extends java.lang.Object implements Converter<java.sql.ResultSet,T>
ResultSet into
objects of type T. The convertOneRow(java.sql.ResultSet) method
should be implemented by consumers of this class.| Modifier and Type | Field and Description |
|---|---|
protected java.sql.ResultSet |
resultSet |
| Constructor and Description |
|---|
JdbcConverter() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
convertOneRow(java.sql.ResultSet resultSet)
Implementation-specific conversion between a resultSet and a java object
of type T.
|
T |
get()
Get the next available data entity in the desired type
|
void |
initialize(java.sql.ResultSet input)
Initialize the raw data.
|
boolean |
next()
Indicate whether or not more data can be expected from this converter.
|
public void initialize(java.sql.ResultSet input)
throws java.io.IOException
ConverterXmlConverter, for example,
the DOM-model is created in this method.initialize in interface Converter<java.sql.ResultSet,T>input - the raw input.java.io.IOException - in case the raw input can't be processed by this converter.public T get()
Converterpublic abstract T convertOneRow(java.sql.ResultSet resultSet)
resultSet - the resultset, obtained by the JDBC call.public boolean next()
Converterfalse a call to Converter.get()
will fail.