把testOnBorrow的实现移到Lock之外实现

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@209 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-05-28 08:09:36 +00:00
parent 2b1c21d27e
commit 1701de5ed5
4 changed files with 192 additions and 13 deletions
@@ -635,7 +635,7 @@ public abstract class DruidAbstractDataSource implements DataSource, DataSourceP
}
}
public void validateConnection(Connection conn) throws SQLException {
protected void validateConnection(Connection conn) throws SQLException {
String query = getValidationQuery();
if (conn.isClosed()) {
throw new SQLException("validateConnection: connection closed");