/** * Deletes the store by deleting the tables within the database. * @throws BlockStoreException If tables couldn't be deleted. */ public void deleteStore() throws BlockStoreException { maybeConnect(); try { Statement s = conn.get().createStatement(); for(String sql : getDropTablesSQL()) { s.execute(sql); } s.close(); } catch (SQLException ex) { throw new RuntimeException(ex); } }
/** * Deletes the store by deleting the tables within the database. * @throws BlockStoreException If tables couldn't be deleted. */ public void deleteStore() throws BlockStoreException { maybeConnect(); try { Statement s = conn.get().createStatement(); for(String sql : getDropTablesSQL()) { s.execute(sql); } s.close(); } catch (SQLException ex) { throw new RuntimeException(ex); } }
/** * Deletes the store by deleting the tables within the database. * @throws BlockStoreException If tables couldn't be deleted. */ public void deleteStore() throws BlockStoreException { maybeConnect(); try { Statement s = conn.get().createStatement(); for(String sql : getDropTablesSQL()) { s.execute(sql); } s.close(); } catch (SQLException ex) { throw new RuntimeException(ex); } }
/** * Deletes the store by deleting the tables within the database. * @throws BlockStoreException If tables couldn't be deleted. */ public void deleteStore() throws BlockStoreException { maybeConnect(); try { Statement s = conn.get().createStatement(); for(String sql : getDropTablesSQL()) { s.execute(sql); } s.close(); } catch (SQLException ex) { throw new RuntimeException(ex); } }