Does JDataStore support Transactions?

Abstract: Does JDataStore support Transactions?

Yes, Transactions are supported by JDataStore.

Robust applications require some level of transaction isolation. Not only do transactions ensure that you are not reading dirty or phantom data, but you can also undo changes made during a transaction. Transaction support also enables automatic crash recovery, and is required for JDBC access.

A transaction's life cycle begins with any read or write operation through a connection. The DataStore uses stream locks to control access to resources. To read a stream or make a change to any part of a stream (a byte in a file, a row in a table), you must be able to acquire a lock on that stream. Once a connection acquires a lock, it will hold on to it until the transaction is committed or rolled back.