/*
- * Copyright © 2019 Damyan Ivanov.
+ * Copyright © 2020 Damyan Ivanov.
* This file is part of MoLe.
* MoLe is free software: you can distribute it and/or modify it
* under the term of the GNU General Public License as published by
package net.ktnx.mobileledger.async;
class DbOpItem {
- String sql;
- Object[] params;
- public DbOpItem(String sql, Object[] params) {
+ final String sql;
+ final Object[] params;
+ final Runnable onReady;
+ public DbOpItem(String sql, Object[] params, Runnable onReady) {
this.sql = sql;
this.params = params;
+ this.onReady = onReady;
+ }
+ public DbOpItem(String sql, Object[] params) {
+ this(sql, params, null);
}
public DbOpItem(String sql) {
- this(sql, null);
+ this(sql, null, null);
}
}