コード例 #1
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessClass(this);

            if (Id != null)
            {
                visitor.Visit(Id);
            }

            if (Discriminator != null)
            {
                visitor.Visit(Discriminator);
            }

            if (Cache != null)
            {
                visitor.Visit(Cache);
            }

            if (Version != null)
            {
                visitor.Visit(Version);
            }

            if (Tuplizer != null)
            {
                visitor.Visit(Tuplizer);
            }

            base.AcceptVisitor(visitor);
        }
コード例 #2
0
 private static void Accept(IEntityMapping mapping, IMappingModelVisitor visitor)
 {
     visitor.Visit(mapping);
     foreach (var classMapping in mapping.Classes)
     {
         visitor.Visit(classMapping);
     }
 }
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            if (Key != null)
                visitor.Visit(Key);

            if (Contents != null)
                visitor.Visit(Contents);
        }
コード例 #4
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessNaturalId(this);

            foreach (var key in properties)
                visitor.Visit(key);

            foreach (var key in manyToOnes)
                visitor.Visit(key);
        }
コード例 #5
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessHibernateMapping(this);

            foreach (var import in Imports)
                visitor.Visit(import);

            foreach (var classMapping in Classes)
                visitor.Visit(classMapping);
        }
コード例 #6
0
ファイル: IdMapping.cs プロジェクト: umittal/MunimJi
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessId(this);

            foreach (var column in Columns)
                visitor.Visit(column);

            if (Generator != null)
                visitor.Visit(Generator);
        }
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessJoinedSubclass(this);

            if(Key != null)
                visitor.Visit(Key);

            foreach (var subclass in _subclasses)
                visitor.Visit(subclass);

            base.AcceptVisitor(visitor);
        }
コード例 #8
0
        public void Accept(IMappingModelVisitor mappingModelVisitor)
        {
            mappingModelVisitor.Visit(this);

            foreach (var propertyMapping in Properties)
            {
                mappingModelVisitor.Visit(propertyMapping);
            }

            foreach (var classMapping in Classes)
            {
                mappingModelVisitor.Visit(classMapping);
            }
        }
コード例 #9
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessNaturalId(this);

            foreach (var key in properties)
            {
                visitor.Visit(key);
            }

            foreach (var key in manyToOnes)
            {
                visitor.Visit(key);
            }
        }
コード例 #10
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessId(this);

            foreach (var column in Columns)
            {
                visitor.Visit(column);
            }

            if (Generator != null)
            {
                visitor.Visit(Generator);
            }
        }
コード例 #11
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessManyToMany(this);

            foreach (var column in columns)
            {
                visitor.Visit(column);
            }

            foreach (var filter in ChildFilters)
            {
                visitor.Visit(filter);
            }
        }
コード例 #12
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessCompositeIndex(this);

            foreach (var property in Properties)
            {
                visitor.Visit(property);
            }

            foreach (var reference in References)
            {
                visitor.Visit(reference);
            }
        }
コード例 #13
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessCompositeId(this);

            foreach (var key in keyProperties)
            {
                visitor.Visit(key);
            }

            foreach (var key in keyManyToOnes)
            {
                visitor.Visit(key);
            }
        }
        public virtual void AcceptVisitor(IMappingModelVisitor visitor)
        {
            foreach (var collection in Collections)
                visitor.Visit(collection);

            foreach (var property in Properties)
                visitor.Visit(property);

            foreach (var reference in References)
                visitor.Visit(reference);

            foreach( var component in Components)
                visitor.Visit(component);
        }
コード例 #15
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            if (Parent != null)
                visitor.Visit(Parent);

            base.AcceptVisitor(visitor);
        }
コード例 #16
0
 public void AcceptVisitor(IMappingModelVisitor visitor)
 {
     if (MergedModel != null)
         visitor.Visit(MergedModel);
     else
         visitor.ProcessComponent(this);
 }
コード例 #17
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessProperty(this);

            foreach (var column in columns)
                visitor.Visit(column);
        }
コード例 #18
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            if (Parent != null)
                visitor.Visit(Parent);

            base.AcceptVisitor(visitor);
        }
コード例 #19
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessCompositeId(this);

            foreach (var key in keys)
            {
                if (key is KeyPropertyMapping)
                {
                    visitor.Visit((KeyPropertyMapping)key);
                }
                if (key is KeyManyToOneMapping)
                {
                    visitor.Visit((KeyManyToOneMapping)key);
                }
            }
        }
コード例 #20
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            mappedMembers.AcceptVisitor(visitor);

            foreach (var subclass in Subclasses)
                visitor.Visit(subclass);
        }
コード例 #21
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessCompositeElement(this);

            if (Parent != null)
            {
                visitor.Visit(Parent);
            }

            foreach (var compositeElement in CompositeElements)
            {
                visitor.Visit(compositeElement);
            }

            mappedMembers.AcceptVisitor(visitor);
        }
コード例 #22
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessComponent(this);

            if (Parent != null)
                visitor.Visit(Parent);

            base.AcceptVisitor(visitor);
        }
コード例 #23
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessList(this);

            if(Index != null)
                visitor.Visit(Index);

            base.AcceptVisitor(visitor);
        }
コード例 #24
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessManyToOne(this);

            foreach (var column in columns)
            {
                visitor.Visit(column);
            }
        }
コード例 #25
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessElement(this);

            foreach (var column in Columns)
            {
                visitor.Visit(column);
            }
        }
コード例 #26
0
ファイル: ClassMappingBase.cs プロジェクト: hzhgis/ss
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            mappedMembers.AcceptVisitor(visitor);

            foreach (var subclass in Subclasses)
            {
                visitor.Visit(subclass);
            }
        }
コード例 #27
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessHibernateMapping(this);

            foreach (var import in Imports)
            {
                visitor.Visit(import);
            }

            foreach (var classMapping in Classes)
            {
                visitor.Visit(classMapping);
            }

            foreach (var filterMapping in Filters)
            {
                visitor.Visit(filterMapping);
            }
        }
コード例 #28
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessAny(this);

            foreach (var metaValue in metaValues)
            {
                visitor.Visit(metaValue);
            }

            foreach (var column in typeColumns)
            {
                visitor.Visit(column);
            }

            foreach (var column in identifierColumns)
            {
                visitor.Visit(column);
            }
        }
コード例 #29
0
        public virtual void AcceptVisitor(IMappingModelVisitor visitor)
        {
            foreach (var collection in Collections)
            {
                visitor.Visit(collection);
            }

            foreach (var property in Properties)
            {
                visitor.Visit(property);
            }

            foreach (var reference in References)
            {
                visitor.Visit(reference);
            }

            foreach (var component in Components)
            {
                visitor.Visit(component);
            }

            foreach (var oneToOne in oneToOnes)
            {
                visitor.Visit(oneToOne);
            }

            foreach (var any in anys)
            {
                visitor.Visit(any);
            }

            foreach (var join in joins)
            {
                visitor.Visit(join);
            }

            foreach (var filter in filters)
            {
                visitor.Visit(filter);
            }

            foreach (var storedProcedure in storedProcedures)
            {
                visitor.Visit(storedProcedure);
            }
        }
コード例 #30
0
        public virtual void AcceptVisitor(IMappingModelVisitor visitor)
        {
            foreach (var mapping in orderedMappings)
            {
                switch (mapping.Item1)
                {
                case MappingType.Property:
                    visitor.Visit((PropertyMapping)mapping.Item2);
                    break;

                case MappingType.Collection:
                    visitor.Visit((Collections.CollectionMapping)mapping.Item2);
                    break;

                case MappingType.ManyToOne:
                    visitor.Visit((ManyToOneMapping)mapping.Item2);
                    break;

                case MappingType.IComponent:
                    visitor.Visit((IComponentMapping)mapping.Item2);
                    break;

                case MappingType.OneToOne:
                    visitor.Visit((OneToOneMapping)mapping.Item2);
                    break;

                case MappingType.Any:
                    visitor.Visit((AnyMapping)mapping.Item2);
                    break;

                case MappingType.Join:
                    visitor.Visit((JoinMapping)mapping.Item2);
                    break;

                case MappingType.Filter:
                    visitor.Visit((FilterMapping)mapping.Item2);
                    break;

                case MappingType.StoredProcedure:
                    visitor.Visit((StoredProcedureMapping)mapping.Item2);
                    break;

                default:
                    throw new Exception("Internal Error: unsupported mapping type " + mapping.Item1);
                }
            }
        }
コード例 #31
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessList(this);

            if (Index != null)
            {
                visitor.Visit(Index);
            }

            base.AcceptVisitor(visitor);
        }
コード例 #32
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessJoinedSubclass(this);

            if (Key != null)
            {
                visitor.Visit(Key);
            }

            base.AcceptVisitor(visitor);
        }
コード例 #33
0
        public void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessJoin(this);

            if (Key != null)
            {
                visitor.Visit(Key);
            }

            mappedMembers.AcceptVisitor(visitor);
        }
コード例 #34
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            if (Key != null)
            {
                visitor.Visit(Key);
            }

            if (Element != null)
            {
                visitor.Visit(Element);
            }

            if (CompositeElement != null)
            {
                visitor.Visit(CompositeElement);
            }

            if (Relationship != null)
            {
                visitor.Visit(Relationship);
            }

            foreach (var filter in Filters)
            {
                visitor.Visit(filter);
            }

            if (Cache != null)
            {
                visitor.Visit(Cache);
            }
        }
コード例 #35
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessProperty(this);

            if (!IsSpecified("Formula"))
            {
                // only output columns if no formula defined
                foreach (var column in Columns)
                {
                    visitor.Visit(column);
                }
            }
        }
コード例 #36
0
        public void Accept(IMappingModelVisitor mappingModelVisitor)
        {
            mappingModelVisitor.Visit(this);

            foreach (var propertyMapping in Properties)
            {
                propertyMapping.Accept(mappingModelVisitor);
            }

            foreach (var clas in Classes)
            {
                clas.Accept(mappingModelVisitor);
            }
        }
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessClass(this);

            if (Id != null)
                visitor.Visit(Id);

            if (Discriminator != null)
                visitor.Visit(Discriminator);

            foreach (var subclass in Subclasses)
                visitor.Visit(subclass);

            base.AcceptVisitor(visitor);
        }
コード例 #38
0
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessCollection(this);

            if (Key != null)
            {
                visitor.Visit(Key);
            }

            if (Index != null && (Collection == Collection.Array || Collection == Collection.List || Collection == Collection.Map))
            {
                visitor.Visit(Index);
            }

            if (Element != null)
            {
                visitor.Visit(Element);
            }

            if (CompositeElement != null)
            {
                visitor.Visit(CompositeElement);
            }

            if (Relationship != null)
            {
                visitor.Visit(Relationship);
            }

            foreach (var filter in Filters)
            {
                visitor.Visit(filter);
            }

            if (Cache != null)
            {
                visitor.Visit(Cache);
            }
        }
        public override void AcceptVisitor(IMappingModelVisitor visitor)
        {
            visitor.ProcessDiscriminator(this);

            if(Column != null)
                visitor.Visit(Column);
        }
コード例 #40
0
 void IPropertyMapping.Accept(IMappingModelVisitor mappingModelVisitor)
 {
     mappingModelVisitor.Visit(this);
 }
コード例 #41
0
 public void Accept(IMappingModelVisitor mappingModelVisitor)
 {
     mappingModelVisitor.Visit(this);
 }
コード例 #42
0
 public void Accept(IMappingModelVisitor mappingModelVisitor)
 {
     mappingModelVisitor.Visit(this);
 }
コード例 #43
0
 void IPropertyMapping.Accept(IMappingModelVisitor mappingModelVisitor)
 {
     mappingModelVisitor.Visit(this);
 }
コード例 #44
0
        public virtual void AcceptVisitor(IMappingModelVisitor visitor)
        {
            foreach (var collection in Collections)
                visitor.Visit(collection);

            foreach (var property in Properties)
                visitor.Visit(property);

            foreach (var reference in References)
                visitor.Visit(reference);

            foreach (var component in Components)
                visitor.Visit(component);

            foreach (var oneToOne in oneToOnes)
                visitor.Visit(oneToOne);

            foreach (var any in anys)
                visitor.Visit(any);

            foreach (var join in joins)
                visitor.Visit(join);

            foreach (var filter in filters)
                visitor.Visit(filter);

            foreach (var storedProcedure in storedProcedures)
                visitor.Visit(storedProcedure);
        }