org.sqlite.profiler
Class Tracer

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

public abstract class Tracer
extends Callback

SQL statement tracing class.

See Also:
Tracing And Profiling Functions, JdbcConnection.setTracer(Tracer), JdbcConnection.clearTracer()

Constructor Summary
Tracer()
           
 
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_trace() 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 xTrace(java.lang.String sql)
          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

Tracer

public Tracer()
Method Detail

register

public final void register(SWIGTYPE_p_sqlite3 db)
invoke sqlite3_trace() 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.setTracer(Tracer)

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.clearTracer()

xTrace

protected abstract void xTrace(java.lang.String sql)
Called from the sqlite3_step() function.

Parameters:
sql - SQL to be evaluated