Package SQLite

Class Backup


  • public class Backup
    extends Object
    Class wrapping an SQLite backup object.
    • Field Detail

      • handle

        protected long handle
        Internal handle for the native SQLite API.
    • Constructor Detail

      • Backup

        public Backup()
    • Method Detail

      • finalize

        protected void finalize()
        Destructor for object.
        Overrides:
        finalize in class Object
      • step

        public boolean step​(int n)
                     throws Exception
        Perform a backup step.
        Parameters:
        n - number of pages to backup
        Returns:
        true when backup completed
        Throws:
        Exception
      • backup

        public void backup()
                    throws Exception
        Perform the backup in one step.
        Throws:
        Exception
      • remaining

        public int remaining()
                      throws Exception
        Return number of remaining pages to be backed up.
        Throws:
        Exception
      • pagecount

        public int pagecount()
                      throws Exception
        Return the total number of pages in the backup source database.
        Throws:
        Exception