public int countAllDirtyDocuments() { JSONStoreSQLLite store = JSONStoreSQLLite.sharedManager(); if (store == null) { throw new JSONStoreException(JSONStoreConstants.JSON_STORE_DATABASE_NOT_OPEN); } lock (JSONStore.lockThis) { int countResult = store.dirtyCount(collectionName); return(countResult); } }