org.sqlite.profiler
Class Profiler

java.lang.Object
  extended by org.sqlite.callback.Callback
      extended by org.sqlite.profiler.Profiler

public abstract class Profiler
extends Callback

SQL statement profiling class.

See Also:
Tracing And Profiling Functions, JdbcConnection.setProfiler(Profiler), JdbcConnection.clearProfiler()

Constructor Summary
Profiler()
           
 
Method Summary
static void clear(SWIGTYPE_p_sqlite3 db)
          Unregister this object from the database.
WARNING! Do not use this method because it is called internally.
 void register(SWIGTYPE_p_sqlite3 db)
          invoke sqlite3_profile() function and this object is registered in the database.
WARNING! Do not use this method because it is called internally.
 void unregister(SWIGTYPE_p_sqlite3 db)
          Unregister this object from the database.
WARNING! Do not use this method because it is called internally.
protected abstract  void xProfile(java.lang.String sql, long elapseTime)
          Called from the sqlite3_step() function.
 
Methods inherited from class org.sqlite.callback.Callback
delete, isRegistered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Profiler

public Profiler()
Method Detail

register

public final void register(SWIGTYPE_p_sqlite3 db)
invoke sqlite3_profile() function and this object is registered in the database.
WARNING! Do not use this method because it is called internally.

Specified by:
register in class Callback
Parameters:
db - the database handle.
See Also:
Database.setProfiler(Profiler)

unregister

public final void unregister(SWIGTYPE_p_sqlite3 db)
Unregister this object from the database.
WARNING! Do not use this method because it is called internally.

Specified by:
unregister in class Callback
Parameters:
db - the database handle.
See Also:
clear(org.sqlite.swig.SWIGTYPE_p_sqlite3)

clear

public static final void clear(SWIGTYPE_p_sqlite3 db)
Unregister this object from the database.
WARNING! Do not use this method because it is called internally.

Parameters:
db - the database handle.
See Also:
Database.clearProfiler()

xProfile

protected abstract void xProfile(java.lang.String sql,
                                 long elapseTime)
Called from the sqlite3_step() function.

Parameters:
sql - SQL to be evaluated
elapseTime - an estimate of wall-clock time of how long that statement took to execute