public void clearParameters() throws SQLException { checkOpen(); for (int i = 0; i < slots.length; i++) { slots[i] = null; } }
public void clearParameters() throws SQLException { checkOpen(); for (int i = 0; i < slots.length; i++) { slots[i] = null; } }
public ResultSetMetaData getMetaData() throws SQLException { checkOpen(); return resultSetMetaData; }
public ParameterMetaData getParameterMetaData() throws SQLException { checkOpen(); return this; }
public ResultSetMetaData getMetaData() throws SQLException { checkOpen(); return resultSetMetaData; }
public ParameterMetaData getParameterMetaData() throws SQLException { checkOpen(); return this; }
@Override public void clearBatch() throws SQLException { checkOpen(); this.parameterValueBatch.clear(); }
@Override public void clearBatch() throws SQLException { checkOpen(); this.parameterValueBatch.clear(); }
public void addBatch() throws SQLException { checkOpen(); // Need to copy the parameterValues into a new list, not wrap the array in a list // as getParameterValues does. this.parameterValueBatch.add(copyParameterValues()); }
public void addBatch() throws SQLException { checkOpen(); // Need to copy the parameterValues into a new list, not wrap the array in a list // as getParameterValues does. this.parameterValueBatch.add(copyParameterValues()); }
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(); } }
protected AvaticaSite getSite(int param) throws SQLException { checkOpen(); final AvaticaParameter parameter = getParameter(param); return new AvaticaSite(parameter, getCalendar(), param - 1, slots); }
protected AvaticaSite getSite(int param) throws SQLException { checkOpen(); final AvaticaParameter parameter = getParameter(param); return new AvaticaSite(parameter, getCalendar(), param - 1, slots); }
public long executeLargeUpdate() throws SQLException { checkOpen(); getConnection().executeQueryInternal(this, null, null, new QueryState(getSignature().sql), true); 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 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 { 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(); }