mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
restored access rights
This commit is contained in:
parent
0dac30f56b
commit
bf4bbb2eac
2 changed files with 10 additions and 10 deletions
|
@ -325,7 +325,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
}
|
||||
|
||||
private SQLiteStatement myDeleteBookAuthorsStatement;
|
||||
public /*protected*/ void deleteAllBookAuthors(long bookId) {
|
||||
protected void deleteAllBookAuthors(long bookId) {
|
||||
if (myDeleteBookAuthorsStatement == null) {
|
||||
myDeleteBookAuthorsStatement = myDatabase.compileStatement(
|
||||
"DELETE FROM BookAuthor WHERE book_id = ?"
|
||||
|
@ -338,7 +338,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
private SQLiteStatement myGetAuthorIdStatement;
|
||||
private SQLiteStatement myInsertAuthorStatement;
|
||||
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) {
|
||||
myGetAuthorIdStatement = myDatabase.compileStatement(
|
||||
"SELECT author_id FROM Authors WHERE name = ? AND sort_key = ?"
|
||||
|
@ -422,7 +422,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
}
|
||||
|
||||
private SQLiteStatement myDeleteBookTagsStatement;
|
||||
public /*protected*/ void deleteAllBookTags(long bookId) {
|
||||
protected void deleteAllBookTags(long bookId) {
|
||||
if (myDeleteBookTagsStatement == null) {
|
||||
myDeleteBookTagsStatement = myDatabase.compileStatement(
|
||||
"DELETE FROM BookTag WHERE book_id = ?"
|
||||
|
@ -433,7 +433,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
}
|
||||
|
||||
private SQLiteStatement myInsertBookTagStatement;
|
||||
public /*protected*/ void saveBookTagInfo(long bookId, Tag tag) {
|
||||
protected void saveBookTagInfo(long bookId, Tag tag) {
|
||||
if (myInsertBookTagStatement == null) {
|
||||
myInsertBookTagStatement = myDatabase.compileStatement(
|
||||
"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 myInsertBookSeriesStatement;
|
||||
private SQLiteStatement myDeleteBookSeriesStatement;
|
||||
public /*protected*/ void saveBookSeriesInfo(long bookId, SeriesInfo seriesInfo) {
|
||||
protected void saveBookSeriesInfo(long bookId, SeriesInfo seriesInfo) {
|
||||
if (myGetSeriesIdStatement == null) {
|
||||
myGetSeriesIdStatement = myDatabase.compileStatement(
|
||||
"SELECT series_id FROM Series WHERE name = ?"
|
||||
|
|
|
@ -69,11 +69,11 @@ public abstract class BooksDatabase {
|
|||
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 long insertBookInfo(ZLFile file, String encoding, String language, String title);
|
||||
public /*protected*/ abstract void deleteAllBookAuthors(long bookId);
|
||||
public /*protected*/ abstract void saveBookAuthorInfo(long bookId, long index, Author author);
|
||||
public /*protected*/ abstract void deleteAllBookTags(long bookId);
|
||||
public /*protected*/ abstract void saveBookTagInfo(long bookId, Tag tag);
|
||||
public /*protected*/ abstract void saveBookSeriesInfo(long bookId, SeriesInfo seriesInfo);
|
||||
protected abstract void deleteAllBookAuthors(long bookId);
|
||||
protected abstract void saveBookAuthorInfo(long bookId, long index, Author author);
|
||||
protected abstract void deleteAllBookTags(long bookId);
|
||||
protected abstract void saveBookTagInfo(long bookId, Tag tag);
|
||||
protected abstract void saveBookSeriesInfo(long bookId, SeriesInfo seriesInfo);
|
||||
|
||||
public /*protected*/ FileInfo createFileInfo(long id, String name, FileInfo parent) {
|
||||
return new FileInfo(name, parent, id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue