org.sqlite.event
Class RollbackHook

java.lang.Object
  extended by org.sqlite.callback.Callback
      extended by org.sqlite.event.RollbackHook

public abstract class RollbackHook
extends Callback

ROLLBACK TRANSACTION hook class.

See Also:
Commit And Rollback Notification Callbacks, JdbcConnection.setRollbackHook(RollbackHook), JdbcConnection.clearRollbackHook()

Constructor Summary
RollbackHook()
           
 
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_rollback_hook() 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 xRollback()
          invoked whenever a transaction is rollbacked.
 
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

RollbackHook

public RollbackHook()
Method Detail

register

public final void register(SWIGTYPE_p_sqlite3 db)
invoke sqlite3_rollback_hook() 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.setRollbackHook(RollbackHook)

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

xRollback

protected abstract void xRollback()
invoked whenever a transaction is rollbacked.