mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
oracle optimize
This commit is contained in:
@@ -26,13 +26,25 @@ public final class PreparedStatementHolder {
|
||||
|
||||
private final PreparedStatementKey key;
|
||||
private final PreparedStatement statement;
|
||||
private int hitCount = 0;
|
||||
private int hitCount = 0;
|
||||
|
||||
private int fetchRowPeak = -1;
|
||||
|
||||
public PreparedStatementHolder(PreparedStatementKey key, PreparedStatement stmt){
|
||||
this.key = key;
|
||||
this.statement = stmt;
|
||||
}
|
||||
|
||||
public int getFetchRowPeak() {
|
||||
return fetchRowPeak;
|
||||
}
|
||||
|
||||
public void setFetchRowPeak(int fetchRowPeak) {
|
||||
if (fetchRowPeak > this.fetchRowPeak) {
|
||||
this.fetchRowPeak = fetchRowPeak;
|
||||
}
|
||||
}
|
||||
|
||||
public PreparedStatement getStatement() {
|
||||
return statement;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user