enhance management

This commit is contained in:
wenshao
2011-12-08 09:58:32 +08:00
parent e27532ce32
commit a92d21cfab
12 changed files with 178 additions and 155 deletions
@@ -264,6 +264,8 @@ public class DruidDataSourceC3P0Adapter implements DataSource, DruidDataSourceC3
}
public void setMaxStatementsPerConnection(int maxStatementsPerConnection) {
dataSource.setPoolPreparedStatements(maxStatementsPerConnection > 0);
dataSource.setMaxPoolPreparedStatementPerConnectionSize(maxStatementsPerConnection);
}
@@ -272,6 +274,8 @@ public class DruidDataSourceC3P0Adapter implements DataSource, DruidDataSourceC3
}
public void setMaxStatements(int maxStatements) {
dataSource.setPoolPreparedStatements(maxStatements > 0);
dataSource.setMaxOpenPreparedStatements(maxStatements);
}