public class StringResultBuilder extends Object implements JdbcResultBuilder
Description: QueryResultVisitor that can be used for queries that return an answer set with one String column, e.g. useful for SELECT Name ... statements with one or multiple result rows.
| Constructor and Description |
|---|
StringResultBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterExecute(ResultSetMetaData data,
Object queryObject,
List resultList)
The init() method is called once after the SQL statement has been
executed and the result set is known.
|
void |
close(boolean isComplete)
The close() method is invoked, just BEFORE all associated resources (e.g. resultSet)
are closed by the caller.
|
void |
fetch(ResultSet row)
fetch the next row that contains one String column.
|
public void afterExecute(ResultSetMetaData data, Object queryObject, List resultList)
JdbcResultBuilderafterExecute in interface JdbcResultBuilderdata - JDBC result set meta data.resultList - The List where the result objects are added to.public void fetch(ResultSet row) throws SQLException
fetch in interface JdbcResultBuilderrow - the ResultSet where the cursor is located on the current rowSQLExceptionpublic void close(boolean isComplete)
JdbcResultBuilderclose in interface JdbcResultBuilderCopyright © 2008–2018. All rights reserved.