|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlite.callback.Callback
org.sqlite.event.UpdateHook
public abstract class UpdateHook
INSERT, UPDATE, DELETE hook class.
JdbcConnection.setUpdateHook(UpdateHook),
JdbcConnection.clearUpdateHook()| Constructor Summary | |
|---|---|
UpdateHook()
|
|
| 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_update_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 |
xUpdate(int action,
java.lang.String dbName,
java.lang.String tableName,
long rowId)
invoke when a row is updated, inserted or deleted. |
| 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 |
|---|
public UpdateHook()
| Method Detail |
|---|
public final void register(SWIGTYPE_p_sqlite3 db)
register in class Callbackdb - the database handle.Database.setUpdateHook(UpdateHook)public final void unregister(SWIGTYPE_p_sqlite3 db)
unregister in class Callbackdb - the database handle.clear(org.sqlite.swig.SWIGTYPE_p_sqlite3)public static final void clear(SWIGTYPE_p_sqlite3 db)
db - the database handle.Database.clearUpdateHook()
protected abstract void xUpdate(int action,
java.lang.String dbName,
java.lang.String tableName,
long rowId)
action - SQLITE_INSERT or SQLITE_DELETE or SQLITE_UPDATEdbName - database nametableName - table namerowId - rowid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||