protected int doInsert ( JdbcTemplate jdbcTemplate , TaskRequest req , TaskResponse res ) { //Setup the insert parameters and setter final List < Phrase > parametersInUse = insert_parameters != null ? insert_parameters : parameters ; final PreparedStatementSetter preparedStatementSetter = new PhraseParameterPreparedStatementSetter ( parametersInUse , req , res ) ; //Get the insert sql and execute the insert final String fInsertSql = ( String ) insert_sql . evaluate ( req , res ) ; return jdbcTemplate . update ( fInsertSql , preparedStatementSetter ) ; }
Executes the insert and returns the affected row count