Skip Headers

# Modifying Existing Objects in the Database With a Session Query

Previous

Next

The `updateObject` method updates existing objects in the database, but does not perform the does-exist check before it attempts the update operation. The `updateObject` is more efficient than the `writeObject` method if you are certain that the object does exist in the database. If the object does not exist, the database throws an exception when you execute the `updateObject` method.