@Override public GDSServerVersion getServerVersion() throws SQLException { try (FbService service = attachServiceManager()) { return service.getServerVersion(); } } }
public void setDatabase(String database) { super.setDatabase(database); }
/** * Execute a Services API operation in the database. All output from the * operation is sent to this <code>ServiceManager</code>'s logger. * * @param srb * The buffer containing the task request * @throws SQLException * if a database access error occurs or * incorrect parameters are supplied * @deprecated Use {@link #executeServicesOperation(FbService, ServiceRequestBuffer)}. */ @SuppressWarnings("unused") @Deprecated protected void executeServicesOperation(ServiceRequestBuffer srb) throws SQLException { try (FbService service = attachServiceManager()) { service.startServiceAction(srb); queueService(service); } catch (IOException ioe) { throw new SQLException(ioe); } }
protected ServiceRequestBuffer createRequestBuffer(FbService service, int operation, int options) { ServiceRequestBuffer srb = service.createServiceRequestBuffer(); srb.addArgument(operation); if (getDatabase() != null) { srb.addArgument(isc_spb_dbname, getDatabase()); } srb.addArgument(isc_spb_options, options); return srb; }
protected final void executeServicesOperation(FbService service, ServiceRequestBuffer srb) throws SQLException { try { service.startServiceAction(srb); queueService(service); } catch (IOException ioe) { throw new SQLException(ioe); } }
public void queueService(FbService service) throws SQLException, IOException { OutputStream currentLogger = getLogger();
/** * Execute a Services API operation in the database. All output from the * operation is sent to this <code>ServiceManager</code>'s logger. * * @param srb * The buffer containing the task request * @throws SQLException * if a database access error occurs or * incorrect parameters are supplied * @deprecated Use {@link #executeServicesOperation(FbService, ServiceRequestBuffer)}. */ @SuppressWarnings("unused") @Deprecated protected void executeServicesOperation(ServiceRequestBuffer srb) throws SQLException { try (FbService service = attachServiceManager()) { service.startServiceAction(srb); queueService(service); } catch (IOException ioe) { throw new SQLException(ioe); } }
protected ServiceRequestBuffer createRequestBuffer(FbService service, int operation, int options) { ServiceRequestBuffer srb = service.createServiceRequestBuffer(); srb.addArgument(operation); if (getDatabase() != null) { srb.addArgument(isc_spb_dbname, getDatabase()); } srb.addArgument(isc_spb_options, options); return srb; }
protected final void executeServicesOperation(FbService service, ServiceRequestBuffer srb) throws SQLException { try { service.startServiceAction(srb); queueService(service); } catch (IOException ioe) { throw new SQLException(ioe); } }
public void queueService(FbService service) throws SQLException, IOException { OutputStream currentLogger = getLogger();
public void setDatabase(String database) { super.setDatabase(database); }
@Override public GDSServerVersion getServerVersion() throws SQLException { try (FbService service = attachServiceManager()) { return service.getServerVersion(); } } }
public void setDatabase(String database) { super.setDatabase(database); addRestorePath(database, -1); noLimitRestore = true; }
public void setDatabase(String database) { super.setDatabase(database); addRestorePath(database, -1); noLimitRestore = true; }