public int executeUpdate(String sql, String[] columnNames) throws SQLException { return executeUpdate(sql, Statement.RETURN_GENERATED_KEYS); }
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException { return executeUpdate(sql, Statement.RETURN_GENERATED_KEYS); }
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException { return executeUpdate(sql, Statement.RETURN_GENERATED_KEYS); }
public int executeUpdate(String sql, String[] columnNames) throws SQLException { return executeUpdate(sql, Statement.RETURN_GENERATED_KEYS); }
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException { int updateCount = executeUpdate(sql); setGeneratedKeysResultSet(sql, autoGeneratedKeys); return updateCount; }
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException { int updateCount = executeUpdate(sql); setGeneratedKeysResultSet(sql, autoGeneratedKeys); return updateCount; }
public boolean execute(String sql) throws SQLException { boolean callExecuteQuery = isQuery(sql); if(callExecuteQuery) { executeQuery(sql); } else { executeUpdate(sql); } return callExecuteQuery; }
public boolean execute(String sql) throws SQLException { boolean callExecuteQuery = isQuery(sql); if(callExecuteQuery) { executeQuery(sql); } else { executeUpdate(sql); } return callExecuteQuery; }
public boolean execute(String sql) throws SQLException { boolean callExecuteQuery = isQuery(sql); if(callExecuteQuery) { executeQuery(sql); } else { executeUpdate(sql); } return callExecuteQuery; }
results[ii] = executeUpdate(nextSQL);
results[ii] = executeUpdate(nextSQL);
int superUpdateCount = super.executeUpdate(getSQL()); setGeneratedKeysResultSet(sql, params); return superUpdateCount;
int superUpdateCount = super.executeUpdate(getSQL()); setGeneratedKeysResultSet(sql, params); return superUpdateCount;
protected int executeUpdate(MockParameterMap params) throws SQLException { SQLException exception = resultSetHandler.getSQLException(sql, params); if(null != exception) { throw exception; } exception = resultSetHandler.getSQLException(sql); if(null != exception) { throw exception; } resultSetHandler.addParameterMapForExecutedStatement(getSQL(), getParameterMapCopy(params)); Integer[] updateCounts = resultSetHandler.getUpdateCounts(getSQL(), params); if (updateCounts != null && updateCounts.length != 0) { resultSetHandler.addExecutedStatement(getSQL()); if (updateCounts.length > 1) { return setMultipleUpdateCounts(updateCounts.clone(), params); } else { return setSingleUpdateCount(updateCounts[0], params); } } int superUpdateCount = super.executeUpdate(getSQL()); setGeneratedKeysResultSet(sql, params); return superUpdateCount; }