org.sqlite.callback
Class Callback

java.lang.Object
  extended by org.sqlite.callback.Callback
Direct Known Subclasses:
Authorizer, BusyHandler, CollationNeededHandler, CommitHook, ExecCallback, NamedCallback, Profiler, ProgressHandler, RollbackHook, Tracer, UpdateHook

public abstract class Callback
extends java.lang.Object

SQLite Callback function class.

See Also:
Register A Callback To Handle SQLITE_BUSY Errors, Commit And Rollback Notification Callbacks, Collation Needed Callbacks, Define New Collating Sequences, Create Or Redefine SQL Functions, Query Progress Callbacks, Compile-Time Authorization Callbacks, Data Change Notification Callbacks, Tracing And Profiling Functions

Constructor Summary
Callback()
           
 
Method Summary
 void delete()
          delete this object from the heap memory.
 boolean isRegistered()
          true if this object is registered.
abstract  void register(SWIGTYPE_p_sqlite3 db)
          Register this object to the database.
abstract  void unregister(SWIGTYPE_p_sqlite3 db)
          Unregister this object from the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Callback

public Callback()
Method Detail

isRegistered

public boolean isRegistered()
true if this object is registered.

Returns:
true if the function is registered.

register

public abstract void register(SWIGTYPE_p_sqlite3 db)
                       throws java.sql.SQLException
Register this object to the database.

Parameters:
db - the database handle.
Throws:
java.sql.SQLException - if a database access error occurs.

unregister

public abstract void unregister(SWIGTYPE_p_sqlite3 db)
                         throws java.sql.SQLException
Unregister this object from the database.

Parameters:
db - the database handle.
Throws:
java.sql.SQLException - if a database access error occurs.

delete

public final void delete()
delete this object from the heap memory.