1
0
Fork 0
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:
Nikolay Pultsin 2013-01-14 07:05:09 +04:00
parent d9b061117a
commit e588c37b3b
5 changed files with 22 additions and 18 deletions

View file

@ -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
);