mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Expose transactions through DatabaseComponent interface.
This commit is contained in:
15
briar-api/src/org/briarproject/api/db/Transaction.java
Normal file
15
briar-api/src/org/briarproject/api/db/Transaction.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user