import org.hypergraphdb.*; // top-level API classes are in this package
public class HGDBCreateSample
{
public static void main(String [] args)
{
String databaseLocation = args[0];
// ...
try
{
HGConfiguration config = new HGConfiguration();
config.setTransactional(false);
config.setSkipOpenedEvent(true);
HyperGraph graph = HGEnvironment.get(databaseLocation, config);
HGHandle handle = graph.add("This is now persistent");
graph.close();
}
catch (Throwable t)
{
System.out.println("In transaction");
System.out.println(t.toString());
//t.printStackTrace();
}
finally
{
}
}
}