|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscriptella.jdbc.ResultSetAdapter
public class ResultSetAdapter
Represents SQL query result set as ParametersCallback.
This class exposes pseudo column rownum -current row number starting at 1.
| Constructor Summary | |
|---|---|
ResultSetAdapter(java.sql.ResultSet resultSet,
ParametersCallback parametersCallback,
scriptella.jdbc.JdbcTypesConverter converter)
Instantiates an adapter, prepares a cache and builds a map of column names. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying resultset. |
java.lang.Object |
getParameter(java.lang.String name)
Returns the value of parameter specified by name. |
boolean |
next()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public boolean next()
ResultSet.next()public java.lang.Object getParameter(java.lang.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 java.io.Closeable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||