I need to return a scrollable result set from the code below:
ResultSet columnMetaData = connection.getMetaData().getColumns(null, null, "my_table", "%");
However, the getColumns()
API doesn't appear to provide a way for me to say what kind of result set type I'd like the ResultSet
to be. It only returns a TYPE_FORWARD_ONLY
result set. The only examples I've found for creating a scrollable result set involve creating a Statement
. But I can only get a DatabaseMetaData
object (and thereby call the getColumns
method) from the Connection
object, not a Statement
.
Does anyone know of a way to return a scrollable result set from calling getColumns()
?
By the way, the code above is used with xerial's SQLite JDBC Driver.