String url = rdbms.getUrl();
String user = rdbms.getUser();
String password = rdbms.getPassword();
String layout = rdbms.getLayout();
String indexed = rdbms.getIndexed();
RdbmsStore store = new RdbmsStore(jdbcDriver, url, user, password);
if ("layout2".equals(layout)) {
store.setMaxNumberOfTripleTables(1);
}
else if ("layout2/hash".equals(layout)) {
store.setMaxNumberOfTripleTables(1);
store.setSequenced(false);
}
else if ("layout2/index".equals(layout)) {
store.setMaxNumberOfTripleTables(1);
store.setSequenced(true);
}
else if ("layout3/hash".equals(layout)) {
store.setSequenced(false);
}
else if ("layout3/index".equals(layout)) {
store.setSequenced(true);
}
else {
assert "layout3".equals(layout);
}
if (indexed != null) {
try {
store.setIndexed(Boolean.valueOf(indexed));
}
catch (SailException e) {
// this shouldn't happen
throw new AssertionError(e);
}