Use a lock to ensure transaction isolation. #272

This commit is contained in:
akwizgran
2016-03-24 17:18:54 +00:00
parent 9714713d73
commit 1855dbbd2d
22 changed files with 248 additions and 189 deletions

View File

@@ -45,8 +45,9 @@ public interface DatabaseComponent {
/**
* Starts a new transaction and returns an object representing it.
* @param readOnly true if the transaction will only be used for reading.
*/
Transaction startTransaction() throws DbException;
Transaction startTransaction(boolean readOnly) throws DbException;
/**
* Ends a transaction. If the transaction is marked as complete, the