question: public void updateRow ( Value [ ] current , Value [ ] updateRow ) throws SQLException { StatementBuilder buff = new StatementBuilder ( "UPDATE " ) ; appendTableName ( buff ) ; buff . append ( " SET " ) ; appendColumnList ( buff , true ) ; appendKeyCondition ( buff ) ; PreparedStatement prep = conn . prepareStatement ( buff . toString ( ) ) ; int j = 1 ; for ( int i = 0 ; i < columnCount ; i ++ ) { Value v = updateRow [ i ] ; if ( v == null ) { v = current [ i ] ; } v . set ( prep , j ++ ) ; } setKey ( prep , j , current ) ; int count = prep . executeUpdate ( ) ; if ( count != 1 ) { throw DbException . get ( ErrorCode . NO_DATA_AVAILABLE ) ; } }
target:  Update a row in the database.