public static IMetaManager CreateMetaManager(IVertexStore myVertexStore, IDManager myIDManager, GraphDBPlugins myPlugins, GraphDBPluginManager myPluginManager, GraphApplicationSettings myApplicationSettings, ITransactionable myTransactionManager, SecurityToken mySecurity) { var result = new MetaManager(myVertexStore, myIDManager, myPluginManager, myPlugins, myApplicationSettings); var transactionID = myTransactionManager.BeginTransaction(mySecurity); DBCreationManager creationManager = new DBCreationManager(result.SystemSecurityToken, transactionID, result._baseGraphStorageManager); if (!creationManager.CheckBaseGraph(myVertexStore)) { creationManager.CreateBaseGraph(myVertexStore); } creationManager.AddUserDefinedDataTypes(myVertexStore, myPluginManager); result.Initialize(); result.Load(transactionID); SetMaxID(myVertexStore, myIDManager, transactionID, mySecurity, result); myTransactionManager.CommitTransaction(mySecurity, transactionID); return(result); }
public static IMetaManager CreateMetaManager(IVertexStore myVertexStore, IDManager myIDManager, GraphDBPlugins myPlugins, GraphDBPluginManager myPluginManager, GraphApplicationSettings myApplicationSettings, TransactionToken myTransaction, SecurityToken mySecurity) { var result = new MetaManager(myVertexStore, myIDManager, myPluginManager, myPlugins, myApplicationSettings); DBCreationManager creationManager = new DBCreationManager(result.SystemSecurityToken, result.SystemTransactionToken); if (!creationManager.CheckBaseGraph(myVertexStore)) { creationManager.CreateBaseGraph(myVertexStore); } result.Initialize(); result.Load(); SetMaxID(myVertexStore, myIDManager, myTransaction, mySecurity, result); return result; }
public static IMetaManager CreateMetaManager( IVertexStore myVertexStore, IDManager myIDManager, GraphDBPlugins myPlugins, GraphDBPluginManager myPluginManager, GraphApplicationSettings myApplicationSettings, ITransactionable myTransactionManager, SecurityToken mySecurity) { var result = new MetaManager(myVertexStore, myIDManager, myPluginManager, myPlugins, myApplicationSettings); var transactionID = myTransactionManager.BeginTransaction(mySecurity); DBCreationManager creationManager = new DBCreationManager( result.SystemSecurityToken, transactionID, result._baseGraphStorageManager); if (!creationManager.CheckBaseGraph(myVertexStore)) { creationManager.CreateBaseGraph(myVertexStore); } creationManager.AddUserDefinedDataTypes(myVertexStore, myPluginManager); result.Initialize(); result.Load(transactionID); SetMaxID(myVertexStore, myIDManager, transactionID, mySecurity, result); myTransactionManager.CommitTransaction(mySecurity, transactionID); return result; }