Hi,
What about:
- commit(): also stores the changed (except for in-memory stores)
- rollbackTo(): keep
- store(), incrementVersion(), getCommittedVersion(): remove
- close(): just close the file without storing (same as closeImmediately is doing now)
- closeImmediately(): remove
- hasUnsavedChanges(): rename to hasUncommittedChanges()
That means for persistent stores, commit and store is the same.
In addition to that, I think I will add an autoCommit feature, probably even enabled by default, because it looks like it's quite hard for an application to decide when to best call commit. But in this case, close() should also store the uncommitted changes.
What do you think?
Regards,
Thomas