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 longhandleInternal handle for the native SQLite API.
-
Constructor Summary
Constructors Constructor Description Backup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_finalize()voidbackup()Perform the backup in one step.protected voidfinalize()Destructor for object.protected voidfinish()Finish a backup.intpagecount()Return the total number of pages in the backup source database.intremaining()Return number of remaining pages to be backed up.booleanstep(int n)Perform a backup step.
-
-
-
Method Detail
-
step
public boolean step(int n) throws ExceptionPerform a backup step.- Parameters:
n- number of pages to backup- Returns:
- true when backup completed
- Throws:
Exception
-
remaining
public int remaining() throws ExceptionReturn number of remaining pages to be backed up.- Throws:
Exception
-
-