public static <T extends SabresObject>void deleteAll(Class<T> clazz) throws SabresException {
  final Sabres sabres=Sabres.self();
  sabres.open();
  sabres.beginTransaction();
  try {
    String table=clazz.getSimpleName();
    if (SqliteMaster.tableExists(sabres,table)) {
      dropTable(sabres,table);
      createTable(sabres,Schema.getSchema(table),table);
    }
    sabres.setTransactionSuccessful();
  }
  finally {
    sabres.endTransaction();
    sabres.close();
  }
}

public static < T extends SabresObject > void deleteAll ( Class < T > clazz ) throws SabresException { final Sabres sabres = Sabres . self ( ) ; sabres . open ( ) ; sabres . beginTransaction ( ) ; try { String table = clazz . getSimpleName ( ) ; if ( SqliteMaster . tableExists ( sabres , table ) ) { dropTable ( sabres , table ) ; createTable ( sabres , Schema . getSchema ( table ) , table ) ; } sabres . setTransactionSuccessful ( ) ; } finally { sabres . endTransaction ( ) ; sabres . close ( ) ; } }
deletes all the objects in the table .
