[ome-devel] update fields

kris kris at cs.ucsb.edu
Tue Feb 21 23:07:55 GMT 2006


I would like to update an object with a data hash similarly to the 
way we can create object i.e.

my $updatefields = { 'F1' : 1, 'F2' : 2 };
my $obj = findObject('@MyType', { $image_id = $image });
$obj->updateObject ($updatefields) ;
$obj->storeObject ();


Or is the proper way to delete and recreate?


PS.

  I could write some sort of eval loop based on 
the keys in the hash and interpreting them as accessor methods,
but I wondered if this was necessary.


-- 
Kristian Kvilekval
kris at cs.ucsb.edu  http://www.cs.ucsb.edu/~kris w:805-893-2526 h:504-9756



More information about the ome-devel mailing list