mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
仿照JBOSS实现PreparedStatementCache
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@912 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -335,7 +335,7 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean {
|
||||
SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.DATE,
|
||||
SimpleType.STRING, SimpleType.STRING //
|
||||
|
||||
, new ArrayType<Long>(1, SimpleType.LONG)
|
||||
, new ArrayType<Long>(SimpleType.LONG, true)
|
||||
};
|
||||
|
||||
String[] indexNames = {
|
||||
@@ -368,7 +368,7 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean {
|
||||
"DbType",
|
||||
"URL" //
|
||||
|
||||
, "ExecuteCountHistogram"};
|
||||
, "Histogram"};
|
||||
String[] indexDescriptions = indexNames;
|
||||
COMPOSITE_TYPE = new CompositeType("SqlStatistic", "Sql Statistic", indexNames, indexDescriptions, indexTypes);
|
||||
|
||||
@@ -421,7 +421,7 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean {
|
||||
map.put("DbType", dbType);
|
||||
map.put("URL", null);
|
||||
|
||||
map.put("ExecuteCountHistogram", this.histogram.toArray());
|
||||
map.put("Histogram", this.histogram.toArray());
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user