enhance trace filter

This commit is contained in:
温少
2012-01-10 16:30:01 +08:00
parent eaffa75ecb
commit e57da25e0d
4 changed files with 18 additions and 77 deletions
@@ -27,12 +27,14 @@ public interface ResultSetProxy extends ResultSet, WrapperProxy {
StatementProxy getStatementProxy();
String getSql();
int getCursorIndex();
int getFetchRowCount();
long getConstructNano();
void setConstructNano(long constructNano);
void setConstructNano();
}
@@ -68,6 +68,12 @@ public class ResultSetProxyImpl extends WrapperProxyImpl implements ResultSetPro
public void setConstructNano(long constructNano) {
this.constructNano = constructNano;
}
public void setConstructNano() {
if (this.constructNano <= 0) {
this.constructNano = System.nanoTime();
}
}
public int getCursorIndex() {
return cursorIndex;