[#1472] Add a Settings.executeDebugging property, and move server-side

Console logic to core - Fixed some warnings
This commit is contained in:
Lukas Eder 2012-09-08 11:09:22 +02:00
parent f19c6630fe
commit cd0aac47e9
2 changed files with 16 additions and 1 deletions

View File

@ -43,7 +43,12 @@ import java.io.Serializable;
*/
public class ResultSetLoggingData implements Serializable {
private static volatile int nextID;
/**
* Generated UID
*/
private static final long serialVersionUID = 6968225986331050805L;
private static volatile int nextID;
private int id;
private long lifeTime;

View File

@ -1197,6 +1197,16 @@ abstract class UsageTrackingResultSet extends JDBC41ResultSet implements ResultS
notifyData(disposeTime - creationTime, readRows, readCount, writeCount);
}
/**
* Subclasses may override this method to be notified of data
*
* @param lifeTime The time between <code>ResultSet</code> creation and its
* closing.
* @param readRows The rows read
* @param readCount The read operations performed
* @param writeCount The write operations performed
*/
@SuppressWarnings("hiding")
protected abstract void notifyData(long lifeTime, int readRows, int readCount, int writeCount);
}