public class ResultSetAdapter extends java.lang.Object implements ParametersCallback, java.io.Closeable
ParametersCallback
.
This class exposes pseudo column rownum
-current row number starting at 1.
Constructor and Description |
---|
ResultSetAdapter(java.sql.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.
|
java.lang.Object |
getParameter(java.lang.String name)
Returns the value of parameter specified by name.
|
boolean |
next() |
public ResultSetAdapter(java.sql.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 java.lang.Object getParameter(java.lang.String name)
ParametersCallback
The callback internally delegates a call to parent callbacks if the parameter cannot be found.
getParameter
in interface ParametersCallback
name
- 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 java.io.Closeable
close
in interface java.lang.AutoCloseable
Copyright © Copyright 2006-2019 The Scriptella Project Team.