Package org.sqlite

Class ProgressHandler


  • public abstract class ProgressHandler
    extends java.lang.Object
    https://sqlite.org/c3ref/progress_handler.html
    • Constructor Summary

      Constructors 
      Constructor Description
      ProgressHandler()  
    • Method Summary

      Modifier and Type Method Description
      static void clearHandler​(java.sql.Connection conn)
      Clears any progress handler registered with the connection.
      protected abstract int progress()  
      static void setHandler​(java.sql.Connection conn, int vmCalls, ProgressHandler progressHandler)
      Sets a progress handler for the connection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProgressHandler

        public ProgressHandler()
    • Method Detail

      • setHandler

        public static final void setHandler​(java.sql.Connection conn,
                                            int vmCalls,
                                            ProgressHandler progressHandler)
                                     throws java.sql.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:
        java.sql.SQLException
      • clearHandler

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

        protected abstract int progress()
                                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException