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
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.
-
Field Details
-
handle
protected long handleInternal handle for the native SQLite API.
-
-
Constructor Details
-
Backup
public Backup()
-
-
Method Details
-
finish
Finish a backup.- Throws:
Exception
-
finalize
protected void finalize()Destructor for object. -
_finalize
- Throws:
Exception
-
step
Perform a backup step.- Parameters:
n- number of pages to backup- Returns:
- true when backup completed
- Throws:
Exception
-
backup
Perform the backup in one step.- Throws:
Exception
-
remaining
Return number of remaining pages to be backed up.- Throws:
Exception
-
pagecount
Return the total number of pages in the backup source database.- Throws:
Exception
-