public void addBackupPath(String path) { addBackupPath(path, -1); }
public void backupMetadata() throws SQLException { backupDatabase(BACKUP_METADATA_ONLY); }
public void restoreDatabase() throws SQLException { restoreDatabase(0); }
/** * Creates and returns the "backup" service request buffer for the Service Manager. * * @param service * Service handle * @param options * The isc_spb_bkp_* parameters options to be used * @return the "backup" service request buffer for the Service Manager. */ protected ServiceRequestBuffer getBackupSRB(FbService service, int options) throws SQLException { ServiceRequestBuffer backupSPB = service.createServiceRequestBuffer(); backupSPB.addArgument(isc_action_svc_backup); backupSPB.addArgument(isc_spb_dbname, getDatabase()); addBackupsToBackupRequestBuffer(service, backupSPB); if (verboseBackup()) { backupSPB.addArgument(isc_spb_verbose); } backupSPB.addArgument(isc_spb_options, options); return backupSPB; }
public void setDatabase(String database) { super.setDatabase(database); addRestorePath(database, -1); noLimitRestore = true; }
/** * Set the page size that will be used for a restored database. The value * for <code>pageSize</code> must be one of: 4096, 8192 or 16384. The * default value depends on the Firebird version. Pages smaller than 4096 * were dropped in 2006 and are by definition unavailable with the streaming * functionality of the Services API * * @param pageSize * The page size to be used in a restored database, one of 4196, 8192 or 16384 * @see PageSizeConstants */ @Override public void setRestorePageSize(int pageSize) { if (pageSize < 4096) { throw new IllegalArgumentException( "FirebirdSQL versions with streaming restore support don't support pages below 4096"); } super.setRestorePageSize(pageSize); }
addBackupsToRestoreRequestBuffer(service, restoreSPB);
/** * Creates and returns the "backup" service request buffer for the Service Manager. * * @param service * Service handle * @param options * The isc_spb_bkp_* parameters options to be used * @return the "backup" service request buffer for the Service Manager. */ protected ServiceRequestBuffer getBackupSRB(FbService service, int options) throws SQLException { ServiceRequestBuffer backupSPB = service.createServiceRequestBuffer(); backupSPB.addArgument(isc_action_svc_backup); backupSPB.addArgument(isc_spb_dbname, getDatabase()); addBackupsToBackupRequestBuffer(service, backupSPB); if (verboseBackup()) { backupSPB.addArgument(isc_spb_verbose); } backupSPB.addArgument(isc_spb_options, options); return backupSPB; }
public void setDatabase(String database) { super.setDatabase(database); addRestorePath(database, -1); noLimitRestore = true; }
/** * Set the page size that will be used for a restored database. The value * for <code>pageSize</code> must be one of: 4096, 8192 or 16384. The * default value depends on the Firebird version. Pages smaller than 4096 * were dropped in 2006 and are by definition unavailable with the streaming * functionality of the Services API * * @param pageSize * The page size to be used in a restored database, one of 4196, 8192 or 16384 * @see PageSizeConstants */ @Override public void setRestorePageSize(int pageSize) { if (pageSize < 4096) { throw new IllegalArgumentException( "FirebirdSQL versions with streaming restore support don't support pages below 4096"); } super.setRestorePageSize(pageSize); }
addBackupsToRestoreRequestBuffer(service, restoreSPB);
public void backupDatabase() throws SQLException { backupDatabase(0); }
public void addBackupPath(String path) { addBackupPath(path, -1); }
public void restoreDatabase() throws SQLException { restoreDatabase(0); }
public void backupDatabase() throws SQLException { backupDatabase(0); }
public void backupMetadata() throws SQLException { backupDatabase(BACKUP_METADATA_ONLY); }