synchronized void removeEvents ( Table table ) { final String tName = table . getName ( ) ; try { final SQLiteDatabase db = dbHelper . getWritableDatabase ( ) ; db . delete ( tName , null , null ) ; } catch ( final SQLiteException e ) { getConfigLogger ( ) . verbose ( "Error removing all events from table " + tName + " Recreating DB" ) ; deleteDB ( ) ; } finally { dbHelper . close ( ) ; } }
Removes all events from table