add stat readStringLength

This commit is contained in:
wenshao
2012-08-27 22:50:25 +08:00
parent 34b13e764f
commit 9b63e9ece2
5 changed files with 88 additions and 21 deletions
@@ -51,11 +51,13 @@ public class ResultSetProxyImpl extends WrapperProxyImpl implements ResultSetPro
private final StatementProxy statement;
private final String sql;
protected int cursorIndex = 0;
protected int fetchRowCount = 0;
protected int cursorIndex = 0;
protected int fetchRowCount = 0;
protected long constructNano;
protected final JdbcSqlStat sqlStat;
private int closeCount = 0;
private int closeCount = 0;
private long readStringLength = 0;
public ResultSetProxyImpl(StatementProxy statement, ResultSet resultSet, long id, String sql){
super(resultSet, id);
@@ -1078,4 +1080,14 @@ public class ResultSetProxyImpl extends WrapperProxyImpl implements ResultSetPro
return closeCount;
}
@Override
public void addReadStringLength(int length) {
this.readStringLength += length;
}
@Override
public long getReadStringLength() {
return readStringLength;
}
}