public int getParameterCount() { return getSignature().parameters.size(); }
public int getParameterCount() { return getSignature().parameters.size(); }
public int getParameterCount() { return getSignature().parameters.size(); }
public long executeLargeUpdate() throws SQLException { getConnection().executeQueryInternal(this, getSignature(), null, new QueryState(getSignature().sql)); return updateCount; }
protected AvaticaParameter getParameter(int param) throws SQLException { try { return getSignature().parameters.get(param - 1); } catch (IndexOutOfBoundsException e) { //noinspection ThrowableResultOfMethodCallIgnored throw AvaticaConnection.HELPER.toSQLException( AvaticaConnection.HELPER.createException( "parameter ordinal " + param + " out of range")); } }
protected AvaticaParameter getParameter(int param) throws SQLException { try { return getSignature().parameters.get(param - 1); } catch (IndexOutOfBoundsException e) { //noinspection ThrowableResultOfMethodCallIgnored throw connection.helper.toSQLException( connection.helper.createException( "parameter ordinal " + param + " out of range")); } }
protected AvaticaParameter getParameter(int param) throws SQLException { try { return getSignature().parameters.get(param - 1); } catch (IndexOutOfBoundsException e) { //noinspection ThrowableResultOfMethodCallIgnored throw AvaticaConnection.HELPER.toSQLException( AvaticaConnection.HELPER.createException( "parameter ordinal " + param + " out of range")); } }
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(); }
public ResultSet executeQuery() throws SQLException { this.updateCount = -1; final Signature sig = getSignature(); return getConnection().executeQueryInternal(this, sig, null, new QueryState(sig.sql)); }
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 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); }