MCPcopy Create free account
hub / github.com/buggins/coolreader / load

Method load

android/src/org/coolreader/crengine/CRDB.java:675–696  ·  view source on GitHub ↗
( ArrayList<Bookmark> list, String condition )

Source from the content-addressed store, hash-verified

673 }
674
675 synchronized public boolean load( ArrayList<Bookmark> list, String condition )
676 {
677 boolean found = false;
678 Cursor rs = null;
679 try {
680 condition = " WHERE " + condition;
681 rs = mDB.rawQuery(READ_BOOKMARK_SQL +
682 condition, null);
683 if ( rs.moveToFirst() ) {
684 do {
685 Bookmark v = new Bookmark();
686 readBookmarkFromCursor( v, rs );
687 list.add(v);
688 found = true;
689 } while ( rs.moveToNext() );
690 }
691 } finally {
692 if ( rs!=null )
693 rs.close();
694 }
695 return found;
696 }
697
698 private static final String READ_FILEINFO_FIELDS =
699 "b.id AS id, pathname," +

Callers 3

loadRecentBooksMethod · 0.95
loadSettingsMethod · 0.45
installLibraryMethod · 0.45

Calls 3

addMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected