| От | Jakub Labath |
|---|---|
| Тема | Re: JDBC 2 ResultSet and cursors |
| Дата | |
| Msg-id | 20011016112157.A30288@labath.org обсуждение исходный текст |
| Ответ на | JDBC 2 ResultSet and cursors (Kovács Péter <peter.kovacs@sysdata.siemens.hu>) |
| Список | pgsql-jdbc |
Hi Peter
> Why the scrollable result sets are not implemented in the current jdbc
> driver? Is it technically impossible or just no one needed this feature yet?
As far as I know the read-only result sets are working in the recent drivers.
for instance
Statement stm = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
ResultSet rs = stm.executeQuery("SELECT * FROM foolist");
rs.afterLast();
System.out.println("Printing it reversed");
while (rs.previous()){
System.out.println(rs.getString("id")+", "+rs.getString("text"));
}
works just fine with the latest stable driver
the same is true for last()/first() relative() and absolute() methods.
Regards
--
Jakub Labath
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера