IObjectContainer.

Rollback() Method

Summary

Rolls back the running transaction.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o
Containing Type
IObjectContainer

Syntax

void Rollback()

Remarks

Rolls back the running transaction.

This only rolls back the changes in the database, but not the state of in memory objects.

Dealing with stale state of in memory objects after a rollback:
  • Since in memory objects are not rolled back you probably want start with a clean state. The easiest way to do this is by creating a new object container: ..
  • Alternatively you can deactivate objects or . them to get back to the state in the database.
  • In case you are using transparent persistence you can use a to rollback the in memory objects as well.

Return Value

Type Description
void