public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessProperty(this); foreach (var column in columns) visitor.Visit(column); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { if (Parent != null) visitor.Visit(Parent); base.AcceptVisitor(visitor); }
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); } }
public void AcceptVisitor(IMappingModelVisitor visitor) { if (MergedModel != null) visitor.Visit(MergedModel); else visitor.ProcessComponent(this); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { mappedMembers.AcceptVisitor(visitor); foreach (var subclass in Subclasses) visitor.Visit(subclass); }
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); }
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); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessHibernateMapping(this); foreach (var classMapping in Classes) visitor.Visit(classMapping); }
public void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessComponent(this); if (mergedComponent != null) mergedComponent.AcceptVisitor(visitor); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { if (Key != null) visitor.Visit(Key); if (Contents != null) visitor.Visit(Contents); }
private static void Accept(IEntityMapping mapping, IMappingModelVisitor visitor) { visitor.Visit(mapping); foreach (var classMapping in mapping.Classes) { visitor.Visit(classMapping); } }
public void Write(XmlElement classElement, IMappingModelVisitor visitor) { XmlElement filterElement = classElement.AddElement("filter"); filterElement.SetAttribute("name", Name); if (!string.IsNullOrEmpty(Condition)) { filterElement.SetAttribute("condition", Condition); } }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessList(this); if(Index != null) visitor.Visit(Index); base.AcceptVisitor(visitor); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { mappedMembers.AcceptVisitor(visitor); foreach (var subclass in Subclasses) { visitor.Visit(subclass); } }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessManyToOne(this); foreach (var column in columns) { visitor.Visit(column); } }
public void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessComponent(this); if (mergedComponent != null) { mergedComponent.AcceptVisitor(visitor); } }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessComponent(this); if (Parent != null) visitor.Visit(Parent); base.AcceptVisitor(visitor); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessElement(this); foreach (var column in Columns) { visitor.Visit(column); } }
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.ProcessNaturalId(this); foreach (var key in properties) visitor.Visit(key); foreach (var key in manyToOnes) visitor.Visit(key); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessList(this); if (Index != null) { visitor.Visit(Index); } base.AcceptVisitor(visitor); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessJoinedSubclass(this); if (Key != null) { visitor.Visit(Key); } base.AcceptVisitor(visitor); }
public void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessJoin(this); if (Key != null) { visitor.Visit(Key); } mappedMembers.AcceptVisitor(visitor); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessCompositeElement(this); if (Parent != null) { visitor.Visit(Parent); } mappedMembers.AcceptVisitor(visitor); }
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); }
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); } } }
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); }
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.ProcessCompositeIndex(this); foreach (var property in Properties) { visitor.Visit(property); } foreach (var reference in References) { visitor.Visit(reference); } }
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 override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessManyToMany(this); foreach (var column in columns) { visitor.Visit(column); } foreach (var filter in ChildFilters) { visitor.Visit(filter); } }
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.ProcessNaturalId(this); foreach (var key in properties) { visitor.Visit(key); } foreach (var key in manyToOnes) { visitor.Visit(key); } }
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); }
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); } } }
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); } }
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); } } }
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); } }
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); } }
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.ProcessVersion(this); columns.Each(visitor.Visit); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessBag(this); base.AcceptVisitor(visitor); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessOneToMany(this); }
public abstract void AcceptVisitor(IMappingModelVisitor visitor);
public virtual void AcceptVisitor(IMappingModelVisitor visitor) { foreach(var mapping in sequencedMappingObject) TypeSwitch.Do(mapping, TypeSwitch.Case<Collections.CollectionMapping>(visitor.Visit), TypeSwitch.Case<PropertyMapping>(visitor.Visit), TypeSwitch.Case<ManyToOneMapping>(visitor.Visit), TypeSwitch.Case<IComponentMapping>(visitor.Visit), TypeSwitch.Case<OneToOneMapping>(visitor.Visit), TypeSwitch.Case<AnyMapping>(visitor.Visit), TypeSwitch.Case<JoinMapping>(visitor.Visit), TypeSwitch.Case<FilterMapping>(visitor.Visit), TypeSwitch.Case<StoredProcedureMapping>(visitor.Visit) ); //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); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessCompositeId(this); }
public void AcceptVisitor(IMappingModelVisitor visitor) { }
public void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessComponent(this); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessDiscriminator(this); columns.Each(visitor.Visit); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessStoredProcedure(this); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessIdGenerator(this); }
public void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessComponent(this); if (mergedComponent == null) throw new UnresolvedComponentReferenceVisitedException(componentType, containingEntityType, property); mergedComponent.AcceptVisitor(visitor); }
public void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessFilter(this); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { visitor.ProcessManyToMany(this); }
public override void AcceptVisitor(IMappingModelVisitor visitor) { throw new NotImplementedException(); }