OSDN Git Service

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