XPropertySet xSrcProp = (XPropertySet)
UnoRuntime.queryInterface(XPropertySet.class, newSource);
xSrcProp.setPropertyValue("URL", tmpDatabaseUrl) ;
DBTools dbt = new DBTools( (XMultiServiceFactory)Param.getMSF(), log );
// registering source in DatabaseContext
log.println("register database '"+tmpDatabaseUrl+"' as '"+databaseName+"'" );
dbt.reRegisterDB(databaseName, newSource) ;
uniqueSuffix++;
Param.put("uniqueSuffix", new Integer(uniqueSuffix));
return dbt.connectToSource(newSource);
}
catch( Exception e ) {
uniqueSuffix++;
Param.put("uniqueSuffix", new Integer(uniqueSuffix));
log.println("could not register new database" );