@Override public Map<DatabaseProperty, Object> getDatabaseProperties(ConnectionHandle ch) { synchronized (this) { // Compute map on first use, and cache if (databaseProperties == null) { databaseProperties = service.apply(new Service.DatabasePropertyRequest(ch.id)).map; } return databaseProperties; } }
public Void call() { final Service.CloseStatementResponse response = service.apply( new Service.CloseStatementRequest(h.connectionId, h.id)); return null; } });
public Void call() { final Service.RollbackResponse response = service.apply(new Service.RollbackRequest(ch.id)); return null; } });
public Void call() { final Service.CommitResponse response = service.apply(new Service.CommitRequest(ch.id)); return null; } });
public MetaResultSet call() { final Service.ResultSetResponse response = service.apply(new Service.CatalogsRequest(ch.id)); return toResultSet(MetaCatalog.class, response); } });
public MetaResultSet call() { final Service.ResultSetResponse response = service.apply( new Service.SchemasRequest(ch.id, catalog, schemaPattern.s)); return toResultSet(MetaSchema.class, response); } });
public MetaResultSet call() { final Service.ResultSetResponse response = service.apply( new Service.ColumnsRequest(ch.id, catalog, schemaPattern.s, tableNamePattern.s, columnNamePattern.s)); return toResultSet(MetaColumn.class, response); } });
public Void call() { final Service.CommitResponse response = service.apply(new Service.CommitRequest(ch.id)); return null; } });
public Void call() { final Service.RollbackResponse response = service.apply(new Service.RollbackRequest(ch.id)); return null; } });
@Override public Map<DatabaseProperty, Object> getDatabaseProperties(ConnectionHandle ch) { synchronized (this) { // Compute map on first use, and cache if (databaseProperties == null) { databaseProperties = service.apply(new Service.DatabasePropertyRequest(ch.id)).map; } return databaseProperties; } }
public MetaResultSet call() { final Service.ResultSetResponse response = service.apply(new Service.CatalogsRequest(ch.id)); return toResultSet(MetaCatalog.class, response); } });
public MetaResultSet call() { final Service.ResultSetResponse response = service.apply( new Service.ColumnsRequest(ch.id, catalog, schemaPattern.s, tableNamePattern.s, columnNamePattern.s)); return toResultSet(MetaColumn.class, response); } });
public Void call() { final Service.OpenConnectionResponse response = service.apply(new Service.OpenConnectionRequest(ch.id, info)); return null; } });
public MetaResultSet call() { final Service.ResultSetResponse response = service.apply(new Service.CatalogsRequest(ch.id)); return toResultSet(MetaCatalog.class, response); } });
@Override public ExecuteBatchResult call() { Service.ExecuteBatchResponse response = service.apply(new Service.ExecuteBatchRequest(h.connectionId, h.id, parameterValues)); return new ExecuteBatchResult(response.updateCounts); } });
public Boolean call() { final Service.SyncResultsResponse response = service.apply( new Service.SyncResultsRequest(h.connectionId, h.id, state, offset)); if (response.missingStatement) { throw new RuntimeException(new NoSuchStatementException(h)); } return response.moreResults; } });
public Boolean call() { final Service.SyncResultsResponse response = service.apply( new Service.SyncResultsRequest(h.connectionId, h.id, state, offset)); if (response.missingStatement) { throw new RuntimeException(new NoSuchStatementException(h)); } return response.moreResults; } });
public Frame call() { final Service.FetchResponse response = service.apply( new Service.FetchRequest(h.connectionId, h.id, offset, fetchMaxRowCount)); if (response.missingStatement) { throw new RuntimeException(new NoSuchStatementException(h)); } if (response.missingResults) { throw new RuntimeException(new MissingResultsException(h)); } return response.frame; } });
public StatementHandle call() { // sync connection state if necessary connectionSync(ch, new ConnectionPropertiesImpl()); final Service.CreateStatementResponse response = service.apply(new Service.CreateStatementRequest(ch.id)); return new StatementHandle(response.connectionId, response.statementId, null); } });
public StatementHandle call() { // sync connection state if necessary connectionSync(ch, new ConnectionPropertiesImpl()); final Service.CreateStatementResponse response = service.apply(new Service.CreateStatementRequest(ch.id)); return new StatementHandle(response.connectionId, response.statementId, null); } });