Package SQLite

Class Backup

java.lang.Object
SQLite.Backup

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

    Fields
    Modifier and Type Field Description
    protected long handle
    Internal handle for the native SQLite API.
  • Constructor Summary

    Constructors
    Constructor Description
    Backup()  
  • Method Summary

    Modifier and Type Method Description
    protected void _finalize()  
    void backup()
    Perform the backup in one step.
    protected void finalize()
    Destructor for object.
    protected void finish()
    Finish a backup.
    int pagecount()
    Return the total number of pages in the backup source database.
    int remaining()
    Return number of remaining pages to be backed up.
    boolean step​(int n)
    Perform a backup step.

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • handle

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

    • Backup

      public Backup()
  • Method Details

    • finish

      protected void finish() throws Exception
      Finish a backup.
      Throws:
      Exception
    • finalize

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

      protected void _finalize() throws Exception
      Throws:
      Exception
    • 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