public int update ( DatabaseConnection databaseConnection , PreparedUpdate < T > preparedUpdate ) throws SQLException { CompiledStatement compiledStatement = preparedUpdate . compile ( databaseConnection , StatementType . UPDATE ) ; try { int result = compiledStatement . runUpdate ( ) ; if ( dao != null && ! localIsInBatchMode . get ( ) ) { dao . notifyChanges ( ) ; } return result ; } finally { IOUtils . closeThrowSqlException ( compiledStatement , "compiled statement" ) ; } }
Update rows in the database .