//cacheCallableStmts属性默认是false
DEBUG.P("getCacheCallableStatements()=" + getCacheCallableStatements());
if (getCacheCallableStatements()) {
//callableStmtCacheSize属性默认是100
this.parsedCallableStatementCache = new LRUCache(getCallableStatementCacheSize());
}
//allowMultiQueries属性默认是false
if (getAllowMultiQueries()) {
setCacheResultSetMetadata(false); // we don't handle this yet
}
DEBUG.P("getAllowMultiQueries()=" + getAllowMultiQueries());
DEBUG.P("getCacheResultSetMetadata()=" + getCacheResultSetMetadata());
//当cacheResultSetMetadata=true 且 allowMultiQueries=false
if (getCacheResultSetMetadata()) {
//metadataCacheSize属性默认是50,
//相当于可以缓存50条不同查询sql对应的ResultSetMetadata
this.resultSetMetadataCache = new LRUCache(getMetadataCacheSize());
}
} finally {//我加上的
DEBUG.P(0, this, "initializeDriverProperties(1)");
}