/** * Initiate a database backup, SQLite 3.x only. * * @param dest destination database * @param destName schema of destination database to be backed up * @param srcName schema of source database * @return Backup object to perform the backup operation */ public Backup backup(Database dest, String destName, String srcName) throws SQLite.Exception { synchronized(this) { Backup b = new Backup(); _backup(b, dest, destName, this, srcName); return b; } }
/** * Finish a backup. */ protected void finish() throws SQLite.Exception { synchronized(this) { _finalize(); } }
/** * Return the total number of pages in the backup source database. */ public int pagecount() throws SQLite.Exception { synchronized(this) { return _pagecount(); } }
/** * Perform the backup in one step. */ public void backup() throws SQLite.Exception { synchronized(this) { _step(-1); } }
/** * Return number of remaining pages to be backed up. */ public int remaining() throws SQLite.Exception { synchronized(this) { return _remaining(); } }
Backup backup = new Backup(); BackupInfo backupInfo = new BackupInfo(idBackup, description, contactsCount, restoreCount, timestamp); backup.setBackupContacts(listBackupContacts); listBackupsToReturn.add(backup); backup.setBackupInfo(backupInfo); aux = idBackup;
/** * Perform a backup step. * * @param n number of pages to backup * @return true when backup completed */ public boolean step(int n) throws SQLite.Exception { synchronized(this) { return _step(n); } }
/** * Return number of remaining pages to be backed up. */ public int remaining() throws SQLite.Exception { synchronized(this) { return _remaining(); } }
/** * Destructor for object. */ protected void finalize() { synchronized(this) { try { _finalize(); } catch (SQLite.Exception e) { } } }
/** * Perform the backup in one step. */ public void backup() throws SQLite.Exception { synchronized(this) { _step(-1); } }
/** * Initiate a database backup, SQLite 3.x only. * * @param dest destination database * @param destName schema of destination database to be backed up * @param srcName schema of source database * @return Backup object to perform the backup operation */ public Backup backup(Database dest, String destName, String srcName) throws SQLite.Exception { synchronized(this) { Backup b = new Backup(); _backup(b, dest, destName, this, srcName); return b; } }
/** * Return number of remaining pages to be backed up. */ public int remaining() throws SQLite.Exception { synchronized(this) { return _remaining(); } }
/** * Return the total number of pages in the backup source database. */ public int pagecount() throws SQLite.Exception { synchronized(this) { return _pagecount(); } }
/** * Finish a backup. */ protected void finish() throws SQLite.Exception { synchronized(this) { _finalize(); } }
/** * Perform a backup step. * * @param n number of pages to backup * @return true when backup completed */ public boolean step(int n) throws SQLite.Exception { synchronized(this) { return _step(n); } }
/** * Initiate a database backup, SQLite 3.x only. * * @param dest destination database * @param destName schema of destination database to be backed up * @param srcName schema of source database * @return Backup object to perform the backup operation */ public Backup backup(Database dest, String destName, String srcName) throws SQLite.Exception { synchronized(this) { Backup b = new Backup(); _backup(b, dest, destName, this, srcName); return b; } }
/** * Return number of remaining pages to be backed up. */ public int remaining() throws SQLite.Exception { synchronized(this) { return _remaining(); } }
/** * Return the total number of pages in the backup source database. */ public int pagecount() throws SQLite.Exception { synchronized(this) { return _pagecount(); } }
/** * Destructor for object. */ protected void finalize() { synchronized(this) { try { _finalize(); } catch (SQLite.Exception e) { } } }
/** * Perform a backup step. * * @param n number of pages to backup * @return true when backup completed */ public boolean step(int n) throws SQLite.Exception { synchronized(this) { return _step(n); } }