@SuppressWarnings("unchecked") @Override public synchronized <T> Table<T> table(String fullClassname) { try { Class<T> clazz = (Class<T>) Class.forName(fullClassname); return table(clazz); } catch (ClassNotFoundException e) { throw Errors.rte(e); } }
@Override public synchronized void shutdown() { if (!isDown) { System.out.println("Shutting down database..."); store.shutdown(); isDown = true; System.out.println("Database stopped."); } if (error != null) { throw Errors.rte("Persistence error detected!", error); } }