add readBytes Count

This commit is contained in:
wenshao
2012-08-28 06:03:05 +08:00
parent 9b63e9ece2
commit 7feed4ad47
5 changed files with 81 additions and 26 deletions
@@ -58,6 +58,7 @@ public class ResultSetProxyImpl extends WrapperProxyImpl implements ResultSetPro
private int closeCount = 0;
private long readStringLength = 0;
private long readBytesLength = 0;
public ResultSetProxyImpl(StatementProxy statement, ResultSet resultSet, long id, String sql){
super(resultSet, id);
@@ -1089,5 +1090,15 @@ public class ResultSetProxyImpl extends WrapperProxyImpl implements ResultSetPro
public long getReadStringLength() {
return readStringLength;
}
@Override
public void addReadBytesLength(int length) {
this.readBytesLength += length;
}
@Override
public long getReadBytesLength() {
return readBytesLength;
}
}