I'm not so sure. Your SQL UPDATE depends on the serialized bytes of your object being identical from run to run - that seems like it should be extremely fragile and unlikely to work very well for...