mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactored code, use public field instead of public getter.
This commit is contained in:
@@ -24,19 +24,19 @@ import java.sql.PreparedStatement;
|
||||
*/
|
||||
public final class PreparedStatementHolder {
|
||||
|
||||
private final PreparedStatementKey key;
|
||||
private final PreparedStatement statement;
|
||||
private int hitCount = 0;
|
||||
public final PreparedStatementKey key;
|
||||
public final PreparedStatement statement;
|
||||
private int hitCount = 0;
|
||||
|
||||
private int fetchRowPeak = -1;
|
||||
private int fetchRowPeak = -1;
|
||||
|
||||
private int defaultRowPrefetch = -1;
|
||||
private int rowPrefetch = -1;
|
||||
private int defaultRowPrefetch = -1;
|
||||
private int rowPrefetch = -1;
|
||||
|
||||
private boolean enterOracleImplicitCache = false;
|
||||
private boolean enterOracleImplicitCache = false;
|
||||
|
||||
private int inUseCount = 0;
|
||||
private boolean pooling = false;
|
||||
private int inUseCount = 0;
|
||||
private boolean pooling = false;
|
||||
|
||||
public PreparedStatementHolder(PreparedStatementKey key, PreparedStatement stmt){
|
||||
this.key = key;
|
||||
@@ -77,14 +77,6 @@ public final class PreparedStatementHolder {
|
||||
}
|
||||
}
|
||||
|
||||
public PreparedStatement getStatement() {
|
||||
return statement;
|
||||
}
|
||||
|
||||
public PreparedStatementKey getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void incrementHitCount() {
|
||||
hitCount++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user