public long update ( T obj ) { ContentValues cv = th . getEditableValues ( obj ) ; Long id = th . getId ( obj ) ; int numRowsUpdated = getWritableDb ( ) . update ( th . getTableName ( ) , cv , th . getIdCol ( ) + "=?" , new String [ ] { id . toString ( ) } ) ; return numRowsUpdated ; }
Update all columns for the row having the ID matching the provided entity s ID .