mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 03:39:05 +01:00
Added a method to get all message headers in a given group (untested).
This commit is contained in:
@@ -16,6 +16,7 @@ import net.sf.briar.api.db.DatabaseMaxSize;
|
||||
import net.sf.briar.api.db.DatabasePassword;
|
||||
import net.sf.briar.api.db.DbException;
|
||||
import net.sf.briar.api.protocol.GroupFactory;
|
||||
import net.sf.briar.api.protocol.MessageHeaderFactory;
|
||||
import net.sf.briar.api.transport.ConnectionWindowFactory;
|
||||
|
||||
import org.apache.commons.io.FileSystemUtils;
|
||||
@@ -37,9 +38,10 @@ class H2Database extends JdbcDatabase {
|
||||
H2Database(@DatabaseDirectory File dir, @DatabasePassword Password password,
|
||||
@DatabaseMaxSize long maxSize,
|
||||
ConnectionWindowFactory connectionWindowFactory,
|
||||
GroupFactory groupFactory) {
|
||||
super(connectionWindowFactory, groupFactory, "BINARY(32)", "BINARY",
|
||||
"INT NOT NULL AUTO_INCREMENT");
|
||||
GroupFactory groupFactory,
|
||||
MessageHeaderFactory messageHeaderFactory) {
|
||||
super(connectionWindowFactory, groupFactory, messageHeaderFactory,
|
||||
"BINARY(32)", "BINARY", "INT NOT NULL AUTO_INCREMENT");
|
||||
home = new File(dir, "db");
|
||||
this.password = password;
|
||||
url = "jdbc:h2:split:" + home.getPath()
|
||||
|
||||
Reference in New Issue
Block a user