public boolean getAutoCommit() throws SQLException { if (meta.connectionSync(handle, new ConnectionPropertiesImpl()).isAutoCommit() == null) setAutoCommit(true); return super.getAutoCommit(); }
public boolean isReadOnly() throws SQLException { if (meta.connectionSync(handle, new ConnectionPropertiesImpl()).isReadOnly() == null) setReadOnly(true); return super.isReadOnly(); }
public MetaImpl(AvaticaConnection connection) { this.connection = connection; this.connProps = new ConnectionPropertiesImpl(); }
public MetaImpl(AvaticaConnection connection) { this.connection = connection; this.connProps = new ConnectionPropertiesImpl(); }
public MetaImpl(AvaticaConnection connection) { this.connection = connection; this.connProps = new ConnectionPropertiesImpl(); }
private Meta.ConnectionProperties sync() { return meta.connectionSync(handle, new ConnectionPropertiesImpl()); }
public void setTransactionIsolation(int level) throws SQLException { meta.connectionSync(handle, new ConnectionPropertiesImpl().setTransactionIsolation(level)); }
public void setReadOnly(boolean readOnly) throws SQLException { meta.connectionSync(handle, new ConnectionPropertiesImpl().setReadOnly(readOnly)); }
public StatementHandle call() { connectionSync(ch, new ConnectionPropertiesImpl()); // sync connection state if necessary final Service.PrepareResponse response = service.apply( new Service.PrepareRequest(ch.id, sql, maxRowCount)); return response.statement; } });
public void setAutoCommit(boolean autoCommit) throws SQLException { checkOpen(); meta.connectionSync(handle, new ConnectionPropertiesImpl().setAutoCommit(autoCommit)); }
public void setCatalog(String catalog) throws SQLException { checkOpen(); meta.connectionSync(handle, new ConnectionPropertiesImpl().setCatalog(catalog)); }
public StatementHandle call() { connectionSync(ch, new ConnectionPropertiesImpl()); // sync connection state if necessary final Service.PrepareResponse response = service.apply( new Service.PrepareRequest(ch.id, sql, maxRowCount)); return response.statement; } });
public void setCatalog(String catalog) throws SQLException { checkOpen(); meta.connectionSync(handle, new ConnectionPropertiesImpl().setCatalog(catalog)); }
public void setAutoCommit(boolean autoCommit) throws SQLException { checkOpen(); meta.connectionSync(handle, new ConnectionPropertiesImpl().setAutoCommit(autoCommit)); }
public void setReadOnly(boolean readOnly) throws SQLException { checkOpen(); meta.connectionSync(handle, new ConnectionPropertiesImpl().setReadOnly(readOnly)); }
public void setTransactionIsolation(int level) throws SQLException { checkOpen(); meta.connectionSync(handle, new ConnectionPropertiesImpl().setTransactionIsolation(level)); }
public StatementHandle call() { connectionSync(ch, new ConnectionPropertiesImpl()); // sync connection state if necessary final Service.PrepareResponse response = service.apply( new Service.PrepareRequest(ch.id, sql, maxRowCount)); return response.statement; } });
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); } });
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); } });