@Override public CalciteConnectionImpl getConnection() throws SQLException { return (CalciteConnectionImpl) super.getConnection(); } }
@Override public CalciteConnectionImpl getConnection() throws SQLException { return (CalciteConnectionImpl) super.getConnection(); } }
@Override public QuarkConnectionImpl getConnection() { return (QuarkConnectionImpl) super.getConnection(); }
@Override public DremioConnectionImpl getConnection() { try { throwIfClosed(); } catch (AlreadyClosedSqlException e) { // Can't throw any SQLException because AvaticaConnection's // getConnection() is missing "throws SQLException". throw new RuntimeException(e.getMessage(), e); } return (DremioConnectionImpl) super.getConnection(); }
public long[] executeLargeBatch() throws SQLException { checkOpen(); // Overriding the implementation in AvaticaStatement. try { return getConnection().executeBatchUpdateInternal(this); } finally { // If we failed to send this batch, that's a problem for the user to handle, not us. // Make sure we always clear the statements we collected to submit in one RPC. this.parameterValueBatch.clear(); } }
public long[] executeLargeBatch() throws SQLException { checkOpen(); // Overriding the implementation in AvaticaStatement. try { return getConnection().executeBatchUpdateInternal(this); } finally { // If we failed to send this batch, that's a problem for the user to handle, not us. // Make sure we always clear the statements we collected to submit in one RPC. this.parameterValueBatch.clear(); } }
public ResultSet executeQuery() throws SQLException { this.updateCount = -1; final Signature sig = getSignature(); return getConnection().executeQueryInternal(this, sig, null, new QueryState(sig.sql)); }
public ResultSet executeQuery() throws SQLException { checkOpen(); this.updateCount = -1; final Signature sig = getSignature(); return getConnection().executeQueryInternal(this, sig, null, new QueryState(sig.sql), false); }
public long executeLargeUpdate() throws SQLException { checkOpen(); getConnection().executeQueryInternal(this, null, null, new QueryState(getSignature().sql), true); return updateCount; }
public long executeLargeUpdate() throws SQLException { getConnection().executeQueryInternal(this, getSignature(), null, new QueryState(getSignature().sql)); return updateCount; }
public ResultSet executeQuery() throws SQLException { checkOpen(); this.updateCount = -1; final Signature sig = getSignature(); return getConnection().executeQueryInternal(this, sig, null, new QueryState(sig.sql), false); }
public long executeLargeUpdate() throws SQLException { checkOpen(); getConnection().executeQueryInternal(this, null, null, new QueryState(getSignature().sql), true); return updateCount; }
public boolean execute() throws SQLException { this.updateCount = -1; getConnection().executeQueryInternal(this, getSignature(), null, new QueryState(getSignature().sql)); // Result set is null for DML or DDL. // Result set is closed if user cancelled the query. return openResultSet != null && !openResultSet.isClosed(); }
public boolean execute() throws SQLException { checkOpen(); this.updateCount = -1; // We don't know if this is actually an update or a query, so call it a query so we pass the // Signature to the server. getConnection().executeQueryInternal(this, getSignature(), null, new QueryState(getSignature().sql), false); // Result set is null for DML or DDL. // Result set is closed if user cancelled the query. return openResultSet != null && !openResultSet.isClosed(); }
public boolean execute() throws SQLException { checkOpen(); this.updateCount = -1; // We don't know if this is actually an update or a query, so call it a query so we pass the // Signature to the server. getConnection().executeQueryInternal(this, getSignature(), null, new QueryState(getSignature().sql), false); // Result set is null for DML or DDL. // Result set is closed if user cancelled the query. return openResultSet != null && !openResultSet.isClosed(); }