public void setDatabase(String database) { super.setDatabase(database); addRestorePath(database, -1); noLimitRestore = true; }
public void backupDatabase(int options) throws SQLException { try (FbService service = attachServiceManager()) { executeServicesOperation(service, getBackupSRB(service, options)); } }
/** * Get a mostly-empty repair-operation request buffer that can be * filled as needed. * * @param service * Service handle * @param options * The options bitmask for the request buffer */ private ServiceRequestBuffer createStatsSRB(FbService service, int options) { return createRequestBuffer(service, isc_action_svc_db_stats, options); }
@Override public String toString() { return getUserName() + " | " + getPassword() + " | " + getFirstName() + " | " + getMiddleName() + " | " + getLastName() + " | " + getUserId() + " | " + getGroupId(); } }
public void delete(User user) throws SQLException, IOException { if (user.getUserName() == null) { throw new SQLException("UserName is required."); } // Only parameter for delete action is username. All others should be null. User delUser = new FBUser(); delUser.setUserName(user.getUserName()); userAction(isc_action_svc_delete_user, delUser); }
public void getHeaderPage() throws SQLException { try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = createStatsSRB(service, isc_spb_sts_hdr_pages); executeServicesOperation(service, srb); } }
public void getDatabaseStatistics() throws SQLException { try (FbService service = attachServiceManager()) { ServiceRequestBuffer srb = createDefaultStatsSRB(service); executeServicesOperation(service, srb); } }
public void restoreDatabase(int options) throws SQLException { try (FbService service = attachServiceManager()) { executeServicesOperation(service, getRestoreSRB(service, options)); } }
public void add(User user) throws SQLException, IOException { if (user.getUserName() == null) { throw new SQLException("UserName is required."); } userAction(isc_action_svc_add_user, user); }
/** * Get a mostly-empty properties-operation request buffer that can be * filled as needed. * * @param service * Service handle * @param options * The options bitmask for the request buffer */ private ServiceRequestBuffer createPropertiesSRB(FbService service, int options) { return createRequestBuffer(service, isc_action_svc_properties, options); }
@Override public void commitTransaction(final long transactionId) throws SQLException { handleTransaction(transactionId, isc_spb_rpr_commit_trans, isc_spb_rpr_commit_trans_64); }
/** * Get a mostly empty repair-operation buffer that can be filled in as * needed. The buffer created by this method cannot have the options * bitmask set on it. */ private ServiceRequestBuffer createDefaultRepairSRB(FbService service) { return createRepairSRB(service, 0); }
/** * Get a mostly empty buffer that can be filled in as needed. * The buffer created by this method cannot have the options bitmask * set on it. * * @param service * Service handle */ private ServiceRequestBuffer createDefaultStatsSRB(FbService service) { return createStatsSRB(service, 0); }
/** * Get a mostly empty properties-operation buffer that can be filled in as * needed. The buffer created by this method cannot have the options * bitmask set on it. */ private ServiceRequestBuffer createDefaultPropertiesSRB(FbService service) { return createPropertiesSRB(service, 0); }
public void delete(User user) throws SQLException, IOException { if (user.getUserName() == null) { throw new SQLException("UserName is required."); } // Only parameter for delete action is username. All others should be null. User delUser = new FBUser(); delUser.setUserName(user.getUserName()); userAction(isc_action_svc_delete_user, delUser); }
public void backupDatabase(int options) throws SQLException { try (FbService service = attachServiceManager()) { executeServicesOperation(service, getBackupSRB(service, options)); } }
public void setDatabase(String database) { super.setDatabase(database); addRestorePath(database, -1); noLimitRestore = true; }
/** * Get a mostly-empty repair-operation request buffer that can be * filled as needed. * * @param service * Service handle * @param options * The options bitmask for the request buffer */ private ServiceRequestBuffer createStatsSRB(FbService service, int options) { return createRequestBuffer(service, isc_action_svc_db_stats, options); }
/** * Get a mostly-empty properties-operation request buffer that can be * filled as needed. * * @param service * Service handle * @param options * The options bitmask for the request buffer */ private ServiceRequestBuffer createPropertiesSRB(FbService service, int options) { return createRequestBuffer(service, isc_action_svc_properties, options); }
@Override public void rollbackTransaction(final long transactionId) throws SQLException { handleTransaction(transactionId, isc_spb_rpr_rollback_trans, isc_spb_rpr_rollback_trans_64); }