public static void insertFunctiontestIntCol(int id, String msg, final int testIntCol) throws SQLException { insertFunction(id, msg, new SetExtraArgs() { @Override public void set(PreparedStatement on) throws SQLException { on.setInt(3, testIntCol); } }); }
public static void insertFunctiontestNumericTypes(int id, String msg, final BigDecimal f, final BigDecimal d) throws SQLException { insertFunction(id, msg, new SetExtraArgs() { @Override public void set(PreparedStatement on) throws SQLException { on.setBigDecimal(3, f); on.setBigDecimal(4, d); } }); }
/** * This test case is special - we're only inserting into a subset of the * columns in the table. */ public static void insertFunctiontestLessColumnsInFileThanInTableInputNullStringPassed(int id, String msg, final String str1) throws SQLException { insertFunction(id, msg, new SetExtraArgs() { @Override public void set(PreparedStatement on) throws SQLException { on.setString(3, str1); on.setNull(4, Types.VARCHAR); } }); }
public static void insertFunction(int id, String msg) throws SQLException { insertFunction(id, msg, new SetExtraArgs() { @Override public void set(PreparedStatement on) throws SQLException { } }); }
public static void insertFunctiontestBigIntCol(int id, String msg, final long testBigIntCol) throws SQLException { insertFunction(id, msg, new SetExtraArgs() { @Override public void set(PreparedStatement on) throws SQLException { on.setLong(3, testBigIntCol); } }); }
public static void insertFunctiontestDatesAndTimes(int id, String msg, final Date date, final Time time) throws SQLException { insertFunction(id, msg, new SetExtraArgs() { @Override public void set(PreparedStatement on) throws SQLException { on.setDate(3, date); on.setTime(4, time); } }); }
/** * This test case is special - we're only inserting into a subset of the * columns in the table. */ public static void insertFunctiontestColumnsExport(int id, String msg, final int int1, final int int2) throws SQLException { insertFunction(id, msg, new SetExtraArgs() { @Override public void set(PreparedStatement on) throws SQLException { on.setInt(3, int1); on.setNull(4, Types.INTEGER); on.setInt(5, int2); } }); }
/** * This test case is special - we're only inserting into a subset of the * columns in the table. */ public static void insertFunctiontestLessColumnsInFileThanInTable(int id, String msg, final int number, final Timestamp t2) throws SQLException { insertFunction(id, msg, new SetExtraArgs() { @Override public void set(PreparedStatement on) throws SQLException { on.setInt(3, number); on.setNull(4, Types.TIMESTAMP); } }); }
/** * This test case is special - we're only inserting into a subset of the * columns in the table. */ public static void insertFunctiontestLessColumnsInFileThanInTableInputNullIntPassed(int id, String msg, final int int1) throws SQLException { insertFunction(id, msg, new SetExtraArgs() { @Override public void set(PreparedStatement on) throws SQLException { on.setInt(3, int1); on.setNull(4, Types.INTEGER); } }); } }