class TemporaryJDBC {

	public String getTemporaryDerbyJDBC() throws IOException {
		File tmpDir = createTempFile("t2platform-", ".db");
		tmpDir.delete();
		if (!tmpDir.mkdir())
			throw new IOException("Could not create temporary directory "
					+ tmpDir);
		return "jdbc:derby:" + tmpDir.getPath() + "/database;create=true";
	}

}