mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 18:29:23 +02:00
public => protected
This commit is contained in:
parent
91a3c2720b
commit
aaf12c8f17
2 changed files with 6 additions and 6 deletions
|
@ -367,7 +367,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
|
||||||
myInsertBookAuthorStatement.execute();
|
myInsertBookAuthorStatement.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
public /*protected*/ List<Author> loadAuthors(long bookId) {
|
protected List<Author> loadAuthors(long bookId) {
|
||||||
final Cursor cursor = myDatabase.rawQuery("SELECT Authors.name,Authors.sort_key FROM BookAuthor INNER JOIN Authors ON Authors.author_id = BookAuthor.author_id WHERE BookAuthor.book_id = ?", new String[] { "" + bookId });
|
final Cursor cursor = myDatabase.rawQuery("SELECT Authors.name,Authors.sort_key FROM BookAuthor INNER JOIN Authors ON Authors.author_id = BookAuthor.author_id WHERE BookAuthor.book_id = ?", new String[] { "" + bookId });
|
||||||
if (!cursor.moveToNext()) {
|
if (!cursor.moveToNext()) {
|
||||||
cursor.close();
|
cursor.close();
|
||||||
|
@ -459,7 +459,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
public /*protected*/ List<Tag> loadTags(long bookId) {
|
protected List<Tag> loadTags(long bookId) {
|
||||||
final Cursor cursor = myDatabase.rawQuery("SELECT Tags.tag_id FROM BookTag INNER JOIN Tags ON Tags.tag_id = BookTag.tag_id WHERE BookTag.book_id = ?", new String[] { "" + bookId });
|
final Cursor cursor = myDatabase.rawQuery("SELECT Tags.tag_id FROM BookTag INNER JOIN Tags ON Tags.tag_id = BookTag.tag_id WHERE BookTag.book_id = ?", new String[] { "" + bookId });
|
||||||
if (!cursor.moveToNext()) {
|
if (!cursor.moveToNext()) {
|
||||||
cursor.close();
|
cursor.close();
|
||||||
|
@ -515,7 +515,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public /*protected*/ SeriesInfo loadSeriesInfo(long bookId) {
|
protected SeriesInfo loadSeriesInfo(long bookId) {
|
||||||
final Cursor cursor = myDatabase.rawQuery("SELECT Series.name,BookSeries.book_index FROM BookSeries INNER JOIN Series ON Series.series_id = BookSeries.series_id WHERE BookSeries.book_id = ?", new String[] { "" + bookId });
|
final Cursor cursor = myDatabase.rawQuery("SELECT Series.name,BookSeries.book_index FROM BookSeries INNER JOIN Series ON Series.series_id = BookSeries.series_id WHERE BookSeries.book_id = ?", new String[] { "" + bookId });
|
||||||
SeriesInfo info = null;
|
SeriesInfo info = null;
|
||||||
if (cursor.moveToNext()) {
|
if (cursor.moveToNext()) {
|
||||||
|
|
|
@ -62,9 +62,9 @@ public abstract class BooksDatabase {
|
||||||
public /*protected*/ abstract void reloadBook(Book book);
|
public /*protected*/ abstract void reloadBook(Book book);
|
||||||
public /*protected*/ abstract Book loadBookByFile(long fileId, ZLFile file);
|
public /*protected*/ abstract Book loadBookByFile(long fileId, ZLFile file);
|
||||||
|
|
||||||
public /*protected*/ abstract List<Author> loadAuthors(long bookId);
|
protected abstract List<Author> loadAuthors(long bookId);
|
||||||
public /*protected*/ abstract List<Tag> loadTags(long bookId);
|
protected abstract List<Tag> loadTags(long bookId);
|
||||||
public /*protected*/ abstract SeriesInfo loadSeriesInfo(long bookId);
|
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);
|
||||||
protected abstract void deleteAllBookAuthors(long bookId);
|
protected abstract void deleteAllBookAuthors(long bookId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue