Package org.sqlite
Class ProgressHandler
java.lang.Object
org.sqlite.ProgressHandler
https://www.sqlite.org/c3ref/progress_handler.html
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidclearHandler(Connection conn) Clears any progress handler registered with the connection.protected abstract intprogress()static final voidsetHandler(Connection conn, int vmCalls, ProgressHandler progressHandler) Sets a progress handler for the connection.
-
Constructor Details
-
ProgressHandler
public ProgressHandler()
-
-
Method Details
-
setHandler
public static final void setHandler(Connection conn, int vmCalls, ProgressHandler progressHandler) throws SQLException Sets a progress handler for the connection.- Parameters:
conn- the SQLite connectionvmCalls- the approximate number of virtual machine instructions that are evaluated between successive invocations of the progressHandlerprogressHandler- the progressHandler- Throws:
SQLException
-
clearHandler
Clears any progress handler registered with the connection.- Parameters:
conn- the SQLite connection- Throws:
SQLException
-
progress
- Throws:
SQLException
-