Package org.sqlite

Class ProgressHandler


  • public abstract class ProgressHandler
    extends Object
    https://www.sqlite.org/c3ref/progress_handler.html
    • Constructor Detail

      • ProgressHandler

        public ProgressHandler()
    • Method Detail

      • 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 connection
        vmCalls - the approximate number of virtual machine instructions that are evaluated between successive invocations of the progressHandler
        progressHandler - the progressHandler
        Throws:
        SQLException
      • clearHandler

        public static final void clearHandler​(Connection conn)
                                       throws SQLException
        Clears any progress handler registered with the connection.
        Parameters:
        conn - the SQLite connection
        Throws:
        SQLException