private static void SetMaxID(IVertexStore myVertexStore, IDManager myIDManager, TransactionToken myTransaction, SecurityToken mySecurity, MetaManager result) { foreach (var aUserDefinedVertexType in result._vertexTypeManager.ExecuteManager.GetAllVertexTypes(myTransaction, mySecurity).Where(_ => _.IsUserDefined)) { myIDManager[aUserDefinedVertexType.ID].SetToMaxID(myVertexStore.GetHighestVertexID(mySecurity, myTransaction, aUserDefinedVertexType.ID) + 1); } }
private static void SetMaxID(IVertexStore myVertexStore, IDManager myIDManager, Int64 myTransaction, SecurityToken mySecurity, MetaManager result) { foreach (var aUserDefinedVertexType in result._vertexTypeManager.ExecuteManager.GetAllTypes(myTransaction, mySecurity)) { myIDManager.GetVertexTypeUniqeID(aUserDefinedVertexType.ID).SetToMaxID(myVertexStore.GetHighestVertexID(mySecurity, myTransaction, aUserDefinedVertexType.ID) + 1); } }
public long GetHighestVertexID(SecurityToken mySecurityToken, Int64 myTransactionToken, long myVertexTypeID) { return(_vertexStore.GetHighestVertexID(mySecurityToken, myTransactionToken, myVertexTypeID)); }