|
||||||||||
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.BusyHandler
public abstract class BusyHandler
SQLITE_BUSY Error Handler class.
JdbcConnection.setBusyHandler(BusyHandler)
,
JdbcConnection.clearBusyHandler()
Constructor Summary | |
---|---|
BusyHandler()
|
Method Summary | |
---|---|
void |
register(SWIGTYPE_p_sqlite3 db)
invoke sqlite3_busy_handler() 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 int |
xBusy(int count)
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 |
---|
public BusyHandler()
Method Detail |
---|
public final void register(SWIGTYPE_p_sqlite3 db) throws java.sql.SQLException
register
in class Callback
db
- the database handle.
java.sql.SQLException
- When the return value of the sqlite3_busy_handler() function is not SQLITE_OK.Database.setBusyHandler(BusyHandler)
public final void unregister(SWIGTYPE_p_sqlite3 db) throws java.sql.SQLException
unregister
in class Callback
db
- the database handle.
java.sql.SQLException
- When the return value of the sqlite3_busy_handler() function is not SQLITE_OK.Database.clearBusyHandler()
protected abstract int xBusy(int count)
count
- the number of times that the busy handler has been invoked for this locking event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |