OSDN Git Service

Cleanup compiler warning messages and alter backup & restore to handle new database...
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / sql / LinkedNotebookTable.java
index 8589119..71a1633 100644 (file)
@@ -190,6 +190,21 @@ public class LinkedNotebookTable {
                return val;\r
        }\r
 \r
+       \r
+       // Get a list of linked notebooks that need to be updated\r
+       public List<String> getDirtyGuids() {\r
+               List<String> index = new ArrayList<String>();\r
+               boolean check;  \r
+        NSqlQuery query = new NSqlQuery(db.getConnection());\r
+                                       \r
+               check = query.exec("Select id from LinkedNotebook where isDirty = true");\r
+               if (!check) \r
+                       logger.log(logger.EXTREME, "LinkedNotebook SQL retrieve has failed in getdirtyIds.");\r
+               while (query.next()) {\r
+                       index.add(query.valueString(0));\r
+               }       \r
+               return index;   \r
+       }\r
 \r
 }\r
 \r