public class ResultSetAdapter extends Object implements ParametersCallback, Closeable
ParametersCallback.
This class exposes pseudo column rownum -current row number starting at 1.
| Constructor and Description |
|---|
ResultSetAdapter(ResultSet resultSet,
ParametersCallback parametersCallback,
scriptella.jdbc.JdbcTypesConverter converter)
Instantiates an adapter, prepares a cache and builds a map of column names.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying resultset.
|
Object |
getParameter(String name)
Returns the value of parameter specified by name.
|
boolean |
next() |
public ResultSetAdapter(ResultSet resultSet, ParametersCallback parametersCallback, scriptella.jdbc.JdbcTypesConverter converter)
resultSet - resultset to adapt.parametersCallback - parent parameter callback.converter - type converter to use for getting column values as object.public boolean next()
ResultSet.next()public Object getParameter(String name)
ParametersCallbackThe callback internally delegates a call to parent callbacks if the parameter cannot be found.
getParameter in interface ParametersCallbackname - parameter name. Providers are allowed (but not required) to ignore a case of the name parameter
to comply with their internal model. For example JDBC drivers are case-insensitive to column names.public void close()
This method should operate without raising exceptions.
close in interface Closeableclose in interface AutoCloseableCopyright © 2006-2012. All Rights Reserved.