Expose transactions through DatabaseComponent interface.

This commit is contained in:
akwizgran
2016-02-08 15:18:05 +00:00
parent 2460e1feb0
commit 3fa1bbe33e
5 changed files with 52 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
package org.briarproject.api.db;
/** A wrapper around a database transaction. */
public class Transaction {
private final Object txn;
public Transaction(Object txn) {
this.txn = txn;
}
public Object unbox() {
return txn;
}
}