优化Connection对象:
1.设置适当的参数 DriverManager.getConnection(String url,Properties props);
例如: Properties props=new Properties();
props.put("user","wuwei");
props.put("password","wuwei");
props.put("defaultRowPrefectch","30");
props.put("dufaultBatchValue","5");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@hostsString",props);
对象可以通过设置setDefaultRowPrefetch(int) 和 setDefaultBatchValue(int) 两个参数类优化连接其中的setDefaultRowPrefetch(int) 和 setDefaultBatchValue(int),这个是什么类或者接口的方法啊?
setDefaultRowPrefetch(int),这个oracle.jdbc.internal.OracleConnection里有,还有哪有吗?