add pscache testcase

This commit is contained in:
wenshao
2012-08-13 21:29:45 +08:00
parent 920ed6947d
commit 705552efd3
3 changed files with 199 additions and 4 deletions
@@ -36,6 +36,7 @@ public final class PreparedStatementHolder {
private boolean enterOracleImplicitCache = false;
private int inUseCount = 0;
private boolean pooling = false;
public PreparedStatementHolder(PreparedStatementKey key, PreparedStatement stmt){
this.key = key;
@@ -99,12 +100,21 @@ public final class PreparedStatementHolder {
public void incrementInUseCount() {
inUseCount++;
}
public void decrementInUseCount() {
inUseCount--;
}
public int getInUseCount() {
return inUseCount;
}
public boolean isPooling() {
return pooling;
}
public void setPooling(boolean pooling) {
this.pooling = pooling;
}
}