1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

restored access rights

This commit is contained in:
Nikolay Pultsin 2013-01-20 08:18:14 +04:00
parent 0dac30f56b
commit bf4bbb2eac
2 changed files with 10 additions and 10 deletions

View file

@ -325,7 +325,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
} }
private SQLiteStatement myDeleteBookAuthorsStatement; private SQLiteStatement myDeleteBookAuthorsStatement;
public /*protected*/ void deleteAllBookAuthors(long bookId) { protected void deleteAllBookAuthors(long bookId) {
if (myDeleteBookAuthorsStatement == null) { if (myDeleteBookAuthorsStatement == null) {
myDeleteBookAuthorsStatement = myDatabase.compileStatement( myDeleteBookAuthorsStatement = myDatabase.compileStatement(
"DELETE FROM BookAuthor WHERE book_id = ?" "DELETE FROM BookAuthor WHERE book_id = ?"
@ -338,7 +338,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
private SQLiteStatement myGetAuthorIdStatement; private SQLiteStatement myGetAuthorIdStatement;
private SQLiteStatement myInsertAuthorStatement; private SQLiteStatement myInsertAuthorStatement;
private SQLiteStatement myInsertBookAuthorStatement; private SQLiteStatement myInsertBookAuthorStatement;
public /*protected*/ void saveBookAuthorInfo(long bookId, long index, Author author) { protected void saveBookAuthorInfo(long bookId, long index, Author author) {
if (myGetAuthorIdStatement == null) { if (myGetAuthorIdStatement == null) {
myGetAuthorIdStatement = myDatabase.compileStatement( myGetAuthorIdStatement = myDatabase.compileStatement(
"SELECT author_id FROM Authors WHERE name = ? AND sort_key = ?" "SELECT author_id FROM Authors WHERE name = ? AND sort_key = ?"
@ -422,7 +422,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
} }
private SQLiteStatement myDeleteBookTagsStatement; private SQLiteStatement myDeleteBookTagsStatement;
public /*protected*/ void deleteAllBookTags(long bookId) { protected void deleteAllBookTags(long bookId) {
if (myDeleteBookTagsStatement == null) { if (myDeleteBookTagsStatement == null) {
myDeleteBookTagsStatement = myDatabase.compileStatement( myDeleteBookTagsStatement = myDatabase.compileStatement(
"DELETE FROM BookTag WHERE book_id = ?" "DELETE FROM BookTag WHERE book_id = ?"
@ -433,7 +433,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
} }
private SQLiteStatement myInsertBookTagStatement; private SQLiteStatement myInsertBookTagStatement;
public /*protected*/ void saveBookTagInfo(long bookId, Tag tag) { protected void saveBookTagInfo(long bookId, Tag tag) {
if (myInsertBookTagStatement == null) { if (myInsertBookTagStatement == null) {
myInsertBookTagStatement = myDatabase.compileStatement( myInsertBookTagStatement = myDatabase.compileStatement(
"INSERT OR IGNORE INTO BookTag (book_id,tag_id) VALUES (?,?)" "INSERT OR IGNORE INTO BookTag (book_id,tag_id) VALUES (?,?)"
@ -477,7 +477,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
private SQLiteStatement myInsertSeriesStatement; private SQLiteStatement myInsertSeriesStatement;
private SQLiteStatement myInsertBookSeriesStatement; private SQLiteStatement myInsertBookSeriesStatement;
private SQLiteStatement myDeleteBookSeriesStatement; private SQLiteStatement myDeleteBookSeriesStatement;
public /*protected*/ void saveBookSeriesInfo(long bookId, SeriesInfo seriesInfo) { protected void saveBookSeriesInfo(long bookId, SeriesInfo seriesInfo) {
if (myGetSeriesIdStatement == null) { if (myGetSeriesIdStatement == null) {
myGetSeriesIdStatement = myDatabase.compileStatement( myGetSeriesIdStatement = myDatabase.compileStatement(
"SELECT series_id FROM Series WHERE name = ?" "SELECT series_id FROM Series WHERE name = ?"

View file

@ -69,11 +69,11 @@ public abstract class BooksDatabase {
public /*protected*/ abstract SeriesInfo loadSeriesInfo(long bookId); public /*protected*/ abstract SeriesInfo loadSeriesInfo(long bookId);
public /*protected*/ abstract void updateBookInfo(long bookId, long fileId, String encoding, String language, String title); public /*protected*/ abstract void updateBookInfo(long bookId, long fileId, String encoding, String language, String title);
public /*protected*/ abstract long insertBookInfo(ZLFile file, String encoding, String language, String title); public /*protected*/ abstract long insertBookInfo(ZLFile file, String encoding, String language, String title);
public /*protected*/ abstract void deleteAllBookAuthors(long bookId); protected abstract void deleteAllBookAuthors(long bookId);
public /*protected*/ abstract void saveBookAuthorInfo(long bookId, long index, Author author); protected abstract void saveBookAuthorInfo(long bookId, long index, Author author);
public /*protected*/ abstract void deleteAllBookTags(long bookId); protected abstract void deleteAllBookTags(long bookId);
public /*protected*/ abstract void saveBookTagInfo(long bookId, Tag tag); protected abstract void saveBookTagInfo(long bookId, Tag tag);
public /*protected*/ abstract void saveBookSeriesInfo(long bookId, SeriesInfo seriesInfo); protected abstract void saveBookSeriesInfo(long bookId, SeriesInfo seriesInfo);
public /*protected*/ FileInfo createFileInfo(long id, String name, FileInfo parent) { public /*protected*/ FileInfo createFileInfo(long id, String name, FileInfo parent) {
return new FileInfo(name, parent, id); return new FileInfo(name, parent, id);