调用CachedRowSetImpl类时,出现以下错误:Access restriction: The type CachedRowSetImpl is not accessible due to restriction on required library C:\glassfish3\jdk7\... Read More
posted @ 2014-07-23 13:24 itbird Views(3144) Comments(0) Diggs(0) Edit
很多情况我们使用ResultSet 就会因为这样那样的问题,rs被关闭或数据链接被关闭,导致ResultSet不能使用。其实这个问题我们可以用CachedRowSetImpl来解决。我的理解是这是一个结果的缓存类,保存在其中的数据不会随着数据库和ResultSet的连接的关闭而丢失,可以传递。 使... Read More
posted @ 2014-07-23 12:47 itbird Views(7490) Comments(0) Diggs(0) Edit
Java中读写资源文件最重要的类是Properties1) 资源文件要求如下:1、properties文件是一个文本文件2、properties文件的语法有两种,一种是注释,一种属性配置。注 释:前面加上#号属性配置:以“键=值”的方式书写一个属性的配置信息。3、properties文件的一个属性配... Read More
posted @ 2014-07-23 11:11 itbird Views(8381) Comments(1) Diggs(2) Edit