摘要:
JDBC4.1更新了两个新特性1. Connection,ResultSet 和 Statement 都实现了Closeable 接口,所有在 try-with-resources 语句中调用,就可以自动关闭相关资源了Java代码try(Statementstmt=con.createStatement()){ … }2. RowSet 1.1:引入RowSetFactory接口和RowSetProvider类,可以创建JDBC driver支持的各种 row setsJava代码RowSetFactorymyRowSetFactory=null; JdbcRowSetjdbcRs=null; 阅读全文
posted @ 2011-05-20 17:20
JAVA程序缘
阅读(735)
评论(0)
推荐(0)