return conn.prepareStatement("select * from dual",0,0,0);
}
}
private void doTestPoolPreparedStatements(PrepareStatementCallback callBack)
throws Exception {
DriverAdapterCPDS mypcds = new DriverAdapterCPDS();
DataSource myds = null;
mypcds.setDriver("org.apache.commons.dbcp2.TesterDriver");
mypcds.setUrl("jdbc:apache:commons:testdriver");
mypcds.setUser("foo");
mypcds.setPassword("bar");
mypcds.setPoolPreparedStatements(true);
mypcds.setMaxPreparedStatements(10);
SharedPoolDataSource tds = new SharedPoolDataSource();
tds.setConnectionPoolDataSource(mypcds);
tds.setMaxTotal(getMaxTotal());
tds.setDefaultMaxWaitMillis((int)getMaxWaitMillis());