I count not find a way to return last updated id. But what I have done is to accomplish what I am looking for is by checking the countRow
method as it return the total effected rows.
So I do an update if a record is found then done. if there was no record found I do an insert.
Thanks