Throws an exception if this object is not open OdDb::kForWrite, and controls automatic *undo* and notification of modifications.
This function should be used only inside member functions that modify this object. It should be the first function called by these functions.