use of org.apache.jena.sdb.sql.SDBConnection in project jena by apache.
the class StoreCreator method getHashDB2.
public static Store getHashDB2() {
if (sdbdb2h == null) {
JDBC.loadDriverDB2();
String url = JDBC.makeURL("db2", "sweb-sdb-4:50000", "TEST2H");
SDBConnection sdb = new SDBConnection(url, "user", "password");
StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.DB2);
sdbdb2h = new StoreTriplesNodesHashDB2(sdb, desc);
sdbdb2h.getTableFormatter().create();
} else
sdbdb2h.getTableFormatter().truncate();
return sdbdb2h;
}
Aggregations