Versant數據庫能夠很容易的創建和數據庫之間的鏈接:數據庫
Iterator<DatabaseLoginHelper> ite = this.dblist.iterator();session
DatabaseLoginHelper helper = (DatabaseLoginHelper)ite.next();this
session = new TransSession(helper.getDatabaseNodeProperty());spa
session.setSchemaOption(TransSession.SCHEMA_ADD_DROP_ATTRIBUTES);get
// System.out.println("Define Logical database:");it
session.newLogicalDatabase(HPC_DEMO_NETWORK_NAME);io
// System.out.println("Add to logical database:"+dbList[0]);List
session.addToLogicalDatabase(HPC_DEMO_NETWORK_NAME, helper.databaseName);rsa
System.out.println("Add to logical database:" + helper.databaseName);im