Esempio n. 1
0
        protected void StoreProperties(LinkedList <ATypePredefinition> myDefsTopologically,
                                       Dictionary <String, TypeInfo> myTypeInfos,
                                       long myCreationDate,
                                       Int64 myTransactionToken,
                                       SecurityToken mySecurityToken)
        {
            for (var current = myDefsTopologically.First; current != null; current = current.Next)
            {
                if (current.Value.Properties == null)
                {
                    continue;
                }

                var firstAttrID = _idManager.GetVertexTypeUniqeID((long)BaseTypes.Attribute)
                                  .ReserveIDs(current.Value.PropertyCount);

                var currentExternID = myTypeInfos[current.Value.TypeName]
                                      .AttributeCountWithParents -
                                      current.Value.PropertyCount - 1;

                foreach (var prop in current.Value.Properties)
                {
                    _baseStorageManager.StoreProperty(
                        _vertexManager.ExecuteManager.VertexStore,
                        new VertexInformation((long)BaseTypes.Property, firstAttrID++),
                        prop.AttributeName,
                        prop.Comment,
                        myCreationDate,
                        prop.IsMandatory,
                        prop.Multiplicity,
                        prop.DefaultValue,
                        true,
                        myTypeInfos[current.Value.TypeName].VertexInfo,
                        ConvertBasicType(prop.AttributeType),
                        mySecurityToken,
                        myTransactionToken);
                }
            }
        }
Esempio n. 2
0
 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);
     }
 }