mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
database parameter in FileInfoSet constructors
This commit is contained in:
parent
d9b061117a
commit
e588c37b3b
5 changed files with 22 additions and 18 deletions
|
@ -319,7 +319,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
SQLiteUtil.bindString(myInsertBookInfoStatement, 1, encoding);
|
||||
SQLiteUtil.bindString(myInsertBookInfoStatement, 2, language);
|
||||
myInsertBookInfoStatement.bindString(3, title);
|
||||
final FileInfoSet infoSet = new FileInfoSet(file);
|
||||
final FileInfoSet infoSet = new FileInfoSet(this, file);
|
||||
myInsertBookInfoStatement.bindLong(4, infoSet.getId(file));
|
||||
return myInsertBookInfoStatement.executeInsert();
|
||||
}
|
||||
|
@ -981,7 +981,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
}
|
||||
|
||||
private void updateTables4() {
|
||||
final FileInfoSet fileInfos = new FileInfoSet();
|
||||
final FileInfoSet fileInfos = new FileInfoSet(this);
|
||||
final Cursor cursor = myDatabase.rawQuery(
|
||||
"SELECT file_name FROM Books", null
|
||||
);
|
||||
|
@ -1070,7 +1070,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
);
|
||||
|
||||
myDatabase.execSQL("DELETE FROM Files");
|
||||
final FileInfoSet infoSet = new FileInfoSet();
|
||||
final FileInfoSet infoSet = new FileInfoSet(this);
|
||||
Cursor cursor = myDatabase.rawQuery(
|
||||
"SELECT file_name FROM Books", null
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue