public PropertyEvents(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, string eventName, string propType, string objType, bool hasGetters, bool hasSetters) : base(_host) { this.ctx = ctx; this.eventName = eventName; this.propType = propType; this.objType = objType; this.hasGetters = hasGetters; this.hasSetters = hasSetters; }
public ValueCollectionEntryParentReference(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Zetbox.Generator.Templates.Serialization.SerializationMembersList serializationList, string referencedInterface, string propertyName, string moduleNamespace, bool disableExport) : base(_host) { this.ctx = ctx; this.serializationList = serializationList; this.referencedInterface = referencedInterface; this.propertyName = propertyName; this.moduleNamespace = moduleNamespace; this.disableExport = disableExport; }
public static void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, Serialization.SerializationMembersList serializationList, Property prop) { if (host == null) { throw new ArgumentNullException("host"); } host.CallTemplate("Properties.NotifyingDataProperty", ctx, serializationList, prop); }
public static new void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, DataType implementor, Zetbox.App.Base.Method m, int index) { if (host == null) { throw new ArgumentNullException("host"); } string indexSuffix = index == 0 ? String.Empty : index.ToString(); string eventName = "On" + m.Name + indexSuffix + "_" + implementor.Name; host.CallTemplate("ObjectClasses.InvokeServerMethod", ctx, implementor, m, index, indexSuffix, eventName); }
public static void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, Templates.Serialization.SerializationMembersList serializationList, ValueTypeProperty prop) { if (prop == null) { throw new ArgumentNullException("prop"); } Call(host, ctx, serializationList, prop, prop.HasPersistentOrder, prop.IsList, !prop.HasPersistentOrder); }
public SimplePropertySerialization(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, SerializerDirection direction, string streamName, string xmlnamespace, string xmlname, string memberType, string memberName) : base(_host) { this.ctx = ctx; this.direction = direction; this.streamName = streamName; this.xmlnamespace = xmlnamespace; this.xmlname = xmlname; this.memberType = memberType; this.memberName = memberName; }
public EnumBinarySerialization(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, SerializerDirection direction, string streamName, string xmlnamespace, string xmlname, string backingStoreName, string enumerationType) : base(_host) { this.ctx = ctx; this.direction = direction; this.streamName = streamName; this.xmlnamespace = xmlnamespace; this.xmlname = xmlname; this.backingStoreName = backingStoreName; this.enumerationType = enumerationType; }
public static void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, Serialization.SerializationMembersList serializationList, string backingName) { if (host == null) { throw new ArgumentNullException("host"); } host.CallTemplate("Properties.ExportGuidProperty", ctx, serializationList, backingName); }
public static void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, ObjectClass cls, string ifName, string implName) { if (host == null) { throw new ArgumentNullException("host"); } string propertyDescriptorName = host.Settings["propertydescriptorname"]; host.CallTemplate("ObjectClasses.CustomTypeDescriptor", ctx, cls, ifName, implName, propertyDescriptorName); }
public ObjectReferencePropertySerialization(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, SerializerDirection direction, string streamName, string xmlnamespace, string xmlname, string sourceMember, string targetMember, string targetGuidMember) : base(_host) { this.ctx = ctx; this.direction = direction; this.streamName = streamName; this.xmlnamespace = xmlnamespace; this.xmlname = xmlname; this.sourceMember = sourceMember; this.targetMember = targetMember; this.targetGuidMember = targetGuidMember; }
public CollectionSerialization(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, SerializerDirection direction, string streamName, string xmlnamespace, string xmlname, string collectionName, bool orderByValue, bool disableExport) : base(_host) { this.ctx = ctx; this.direction = direction; this.streamName = streamName; this.xmlnamespace = xmlnamespace; this.xmlname = xmlname; this.collectionName = collectionName; this.orderByValue = orderByValue; this.disableExport = disableExport; }
public ReloadOneReference(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, string referencedInterface, string referencedImplementation, string name, string implNameUnused, string fkBackingName, string fkGuidBackingName, bool isExportable) : base(_host) { this.ctx = ctx; this.referencedInterface = referencedInterface; this.referencedImplementation = referencedImplementation; this.name = name; this.implNameUnused = implNameUnused; this.fkBackingName = fkBackingName; this.fkGuidBackingName = fkGuidBackingName; this.isExportable = isExportable; }
public NotifyingValueProperty(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Serialization.SerializationMembersList serializationList, string type, string name, string modulenamespace, string backingName, bool isCalculated, bool disableExport) : base(_host) { this.ctx = ctx; this.serializationList = serializationList; this.type = type; this.name = name; this.modulenamespace = modulenamespace; this.backingName = backingName; this.isCalculated = isCalculated; this.disableExport = disableExport; }
public EagerLoadingSerialization(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, SerializerDirection direction, string streamName, string xmlnamespace, string xmlname, string collectionName, bool serializeIds, bool serializeRelationEntries) : base(_host) { this.ctx = ctx; this.direction = direction; this.streamName = streamName; this.xmlnamespace = xmlnamespace; this.xmlname = xmlname; this.collectionName = collectionName; this.serializeIds = serializeIds; this.serializeRelationEntries = serializeRelationEntries; }
public CalculatedProperty(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Serialization.SerializationMembersList serializationList, string modulenamespace, string className, string referencedType, string propertyName, string getterEventName, bool isCompound, bool disableExport) : base(_host) { this.ctx = ctx; this.serializationList = serializationList; this.modulenamespace = modulenamespace; this.className = className; this.referencedType = referencedType; this.propertyName = propertyName; this.getterEventName = getterEventName; this.isCompound = isCompound; this.disableExport = disableExport; }
public ComputeDefaultValue(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, string interfaceName, string className, string propertyName, bool isNullable, string isSetFlagName, Guid propertyGuid, string backingStoreType, string backingStoreName) : base(_host) { this.ctx = ctx; this.interfaceName = interfaceName; this.className = className; this.propertyName = propertyName; this.isNullable = isNullable; this.isSetFlagName = isSetFlagName; this.propertyGuid = propertyGuid; this.backingStoreType = backingStoreType; this.backingStoreName = backingStoreName; }
public ValueTypePropertyHbm(Arebis.CodeGeneration.IGenerationHost _host, string prefix, string propName, string columnName, bool isList, string typeAttr, string ceClassAttr, string ceReverseKeyColumnName, string listPositionColumnName, bool optimisticLock) : base(_host) { this.prefix = prefix; this.propName = propName; this.columnName = columnName; this.isList = isList; this.typeAttr = typeAttr; this.ceClassAttr = ceClassAttr; this.ceReverseKeyColumnName = ceReverseKeyColumnName; this.listPositionColumnName = listPositionColumnName; this.optimisticLock = optimisticLock; }
public CompoundObjectSerialization(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, SerializerDirection direction, string streamName, string xmlnamespace, string xmlname, string memberType, string memberName, string backingStoreType, string backingStoreName) : base(_host) { this.ctx = ctx; this.direction = direction; this.streamName = streamName; this.xmlnamespace = xmlnamespace; this.xmlname = xmlname; this.memberType = memberType; this.memberName = memberName; this.backingStoreType = backingStoreType; this.backingStoreName = backingStoreName; }
public static void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, Serialization.SerializationMembersList serializationList, ValueTypeProperty prop, string collectionWrapperClass, string listWrapperClass) { if (prop == null) { throw new ArgumentNullException("prop"); } Call(host, ctx, serializationList, prop, prop.HasPersistentOrder, prop.IsList, collectionWrapperClass, listWrapperClass); }
public CompoundObjectPropertyTemplate(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Zetbox.Generator.Templates.Serialization.SerializationMembersList serializationList, string xmlNamespace, string propName, string backingPropertyName, string backingStoreName, string coType, string coImplementationType, bool disableExport) : base(_host) { this.ctx = ctx; this.serializationList = serializationList; this.xmlNamespace = xmlNamespace; this.propName = propName; this.backingPropertyName = backingPropertyName; this.backingStoreName = backingStoreName; this.coType = coType; this.coImplementationType = coImplementationType; this.disableExport = disableExport; }
public static void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, Serialization.SerializationMembersList serializationList, string type, string name, string modulenamespace, bool isCalculated, bool disableExport) { if (host == null) { throw new ArgumentNullException("host"); } string backingName = "_" + name; Call(host, ctx, serializationList, type, name, modulenamespace, backingName, isCalculated, disableExport); }
public CollectionSerialization( Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Templates.Serialization.SerializerDirection direction, string streamName, string xmlnamespace, string xmlname, string collectionName, bool orderByValue, bool disableExport) : base(_host, ctx, direction, streamName, xmlnamespace, xmlname, collectionName, orderByValue, disableExport) { }
public CompoundObjectPropertyHbm(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, string prefix, string propName, string columnName, bool isList, string ceClassAttr, string valueClassAttr, string isNullColumnAttr, string ceReverseKeyColumnName, IEnumerable <Property> properties) : base(_host) { this.ctx = ctx; this.prefix = prefix; this.propName = propName; this.columnName = columnName; this.isList = isList; this.ceClassAttr = ceClassAttr; this.valueClassAttr = valueClassAttr; this.isNullColumnAttr = isNullColumnAttr; this.ceReverseKeyColumnName = ceReverseKeyColumnName; this.properties = properties; }
public static void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, Templates.Serialization.SerializationMembersList serializationList, CompoundObjectProperty prop) { if (prop == null) { throw new ArgumentNullException("prop"); } // CompoundObjects cannot be compared, therefore we have to avoid sorting the list here // although it would be required to keep the exported collection stable // TODO: implement a comparer for COs using a DefaultSortOrder property(-list) to re-enable this Call(host, ctx, serializationList, prop, prop.HasPersistentOrder, prop.IsList, false); }
public ObjectListProperty(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Zetbox.Generator.Templates.Serialization.SerializationMembersList serializationList, string name, string wrapperName, string wrapperClass, string exposedListType, Relation rel, RelationEndRole endRole, string positionPropertyName, string otherName, string referencedInterface) : base(_host) { this.ctx = ctx; this.serializationList = serializationList; this.name = name; this.wrapperName = wrapperName; this.wrapperClass = wrapperClass; this.exposedListType = exposedListType; this.rel = rel; this.endRole = endRole; this.positionPropertyName = positionPropertyName; this.otherName = otherName; this.referencedInterface = referencedInterface; }
public ObjectClassHbm(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, string interfaceName, string implementationName, string schemaName, string tableName, string qualifiedImplementationName, bool isAbstract, List <Property> properties, List <ObjectClass> subClasses, bool needsRightsTable, bool needsConcurrency, string qualifiedRightsClassName) : base(_host) { this.ctx = ctx; this.interfaceName = interfaceName; this.implementationName = implementationName; this.schemaName = schemaName; this.tableName = tableName; this.qualifiedImplementationName = qualifiedImplementationName; this.isAbstract = isAbstract; this.properties = properties; this.subClasses = subClasses; this.needsRightsTable = needsRightsTable; this.needsConcurrency = needsConcurrency; this.qualifiedRightsClassName = qualifiedRightsClassName; }
public static void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, Templates.Serialization.SerializationMembersList serializationList, Relation rel, RelationEndRole endRole) { if (rel == null) { throw new ArgumentNullException("rel"); } RelationEnd relEnd = rel.GetEndFromRole(endRole); RelationEnd otherEnd = rel.GetOtherEnd(relEnd); string backingCollectionType = RelationToBackingCollectionType(rel, otherEnd); Call(host, ctx, serializationList, rel, endRole, backingCollectionType); }
public CollectionEntryListProperty(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, Serialization.SerializationMembersList serializationList, string name, string exposedCollectionInterface, string referencedInterface, string backingName, string backingCollectionType, string aSideType, string bSideType, string entryType, string providerCollectionType, Guid relId, RelationEndRole role, bool eagerLoading) : base(_host) { this.ctx = ctx; this.serializationList = serializationList; this.name = name; this.exposedCollectionInterface = exposedCollectionInterface; this.referencedInterface = referencedInterface; this.backingName = backingName; this.backingCollectionType = backingCollectionType; this.aSideType = aSideType; this.bSideType = bSideType; this.entryType = entryType; this.providerCollectionType = providerCollectionType; this.relId = relId; this.role = role; this.eagerLoading = eagerLoading; }
public static void Call( Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, Serialization.SerializationMembersList serializationList, CompoundObjectProperty prop) { if (host == null) { throw new ArgumentNullException("host"); } if (prop == null) { throw new ArgumentNullException("prop"); } string propName = prop.Name; Call(host, ctx, serializationList, prop, propName, prop.IsList, prop.HasPersistentOrder); }
public static void Call(Arebis.CodeGeneration.IGenerationHost host, IZetboxContext ctx, Property prop) { if (host == null) { throw new ArgumentNullException("host"); } if (prop == null) { throw new ArgumentNullException("prop"); } string eventName = "On" + prop.Name + "_PostSetter"; string objType = prop.ObjectClass.GetDataTypeString(); Call(host, ctx, eventName, objType); }