/** * Constructs an update object with a given DataSource and SQL. * @param ds the DataSource to use to obtain connections * @param sql the SQL statement to execute */ public SqlUpdate(DataSource ds, String sql) { setDataSource(ds); setSql(sql); }
/** * Construct an update object with a given DataSource, SQL * and anonymous parameters. * @param ds the DataSource to use to obtain connections * @param sql the SQL statement to execute * @param types the SQL types of the parameters, as defined in the * {@code java.sql.Types} class * @see java.sql.Types */ public SqlUpdate(DataSource ds, String sql, int[] types) { setDataSource(ds); setSql(sql); setTypes(types); }
/** * Construct an update object with a given DataSource, SQL, * anonymous parameters and specifying the maximum number of rows * that may be affected. * @param ds the DataSource to use to obtain connections * @param sql the SQL statement to execute * @param types the SQL types of the parameters, as defined in the * {@code java.sql.Types} class * @param maxRowsAffected the maximum number of rows that may * be affected by the update * @see java.sql.Types */ public SqlUpdate(DataSource ds, String sql, int[] types, int maxRowsAffected) { setDataSource(ds); setSql(sql); setTypes(types); this.maxRowsAffected = maxRowsAffected; }
/** * Constructs an update object with a given DataSource and SQL. * @param ds the DataSource to use to obtain connections * @param sql the SQL statement to execute */ public SqlUpdate(DataSource ds, String sql) { setDataSource(ds); setSql(sql); }
/** * Constructs an update object with a given DataSource and SQL. * @param ds DataSource to use to obtain connections * @param sql SQL statement to execute */ public SqlUpdate(DataSource ds, String sql) { setDataSource(ds); setSql(sql); }
/** * Construct an update object with a given DataSource, SQL * and anonymous parameters. * @param ds the DataSource to use to obtain connections * @param sql the SQL statement to execute * @param types the SQL types of the parameters, as defined in the * {@code java.sql.Types} class * @see java.sql.Types */ public SqlUpdate(DataSource ds, String sql, int[] types) { setDataSource(ds); setSql(sql); setTypes(types); }
/** * Construct an update object with a given DataSource, SQL * and anonymous parameters. * @param ds DataSource to use to obtain connections * @param sql SQL statement to execute * @param types SQL types of the parameters, as defined in the * {@code java.sql.Types} class * @see java.sql.Types */ public SqlUpdate(DataSource ds, String sql, int[] types) { setDataSource(ds); setSql(sql); setTypes(types); }
/** * Construct an update object with a given DataSource, SQL, * anonymous parameters and specifying the maximum number of rows * that may be affected. * @param ds DataSource to use to obtain connections * @param sql SQL statement to execute * @param types SQL types of the parameters, as defined in the * {@code java.sql.Types} class * @param maxRowsAffected the maximum number of rows that may * be affected by the update * @see java.sql.Types */ public SqlUpdate(DataSource ds, String sql, int[] types, int maxRowsAffected) { setDataSource(ds); setSql(sql); setTypes(types); this.maxRowsAffected = maxRowsAffected; }
/** * Construct an update object with a given DataSource, SQL, * anonymous parameters and specifying the maximum number of rows * that may be affected. * @param ds the DataSource to use to obtain connections * @param sql the SQL statement to execute * @param types the SQL types of the parameters, as defined in the * {@code java.sql.Types} class * @param maxRowsAffected the maximum number of rows that may * be affected by the update * @see java.sql.Types */ public SqlUpdate(DataSource ds, String sql, int[] types, int maxRowsAffected) { setDataSource(ds); setSql(sql); setTypes(types); this.maxRowsAffected = maxRowsAffected; }