public virtual void PropertyChange(Net.Vpc.Upa.PropertyChangeEvent evt) { System.Collections.Generic.IDictionary <string, Net.Vpc.Upa.Impl.Persistence.FieldTracking> stringFieldTrackingMap = Net.Vpc.Upa.Impl.FwkConvertUtils.GetMapValue <string, System.Collections.Generic.IDictionary <string, Net.Vpc.Upa.Impl.Persistence.FieldTracking> >(multiRecords.setterToProp, r); Net.Vpc.Upa.Impl.Persistence.FieldTracking t = Net.Vpc.Upa.Impl.FwkConvertUtils.GetMapValue <string, Net.Vpc.Upa.Impl.Persistence.FieldTracking>(stringFieldTrackingMap, evt.GetPropertyName()); if (t != null) { result.Write <object>(t.GetIndex(), evt.GetNewValue()); } }
public MultiRecordList(Net.Vpc.Upa.Impl.Persistence.QueryExecutor queryExecutor, bool forUpdate) : base(queryExecutor) { this.forUpdate = forUpdate; this.fields = queryExecutor.GetFields(); this.entities = new Net.Vpc.Upa.Entity[this.fields.Length]; this.recordName = new string[this.fields.Length]; this.currentRecords = new System.Collections.Generic.Dictionary <string, Net.Vpc.Upa.Impl.Persistence.MultiRecordListTracker>(); this.setterToProp = new System.Collections.Generic.Dictionary <string, System.Collections.Generic.IDictionary <string, Net.Vpc.Upa.Impl.Persistence.FieldTracking> >(); int fieldsCount = fields.Length; for (int i = 0; i < fieldsCount; i++) { Net.Vpc.Upa.Impl.Persistence.NativeField namedExpression = fields[i]; Net.Vpc.Upa.Field field = namedExpression.GetField(); entities[i] = field == null ? null : field.GetEntity(); if (namedExpression.GetGroupName() != null) { recordName[i] = namedExpression.GetGroupName(); } else if (entities[i] != null) { recordName[i] = entities[i].GetName(); } System.Collections.Generic.IDictionary <string, Net.Vpc.Upa.Impl.Persistence.FieldTracking> stringFieldTrackingMap = Net.Vpc.Upa.Impl.FwkConvertUtils.GetMapValue <string, System.Collections.Generic.IDictionary <string, Net.Vpc.Upa.Impl.Persistence.FieldTracking> >(setterToProp, recordName[i]); if (stringFieldTrackingMap == null) { stringFieldTrackingMap = new System.Collections.Generic.Dictionary <string, Net.Vpc.Upa.Impl.Persistence.FieldTracking>(); setterToProp[recordName[i]] = stringFieldTrackingMap; } if (field != null) { Net.Vpc.Upa.Impl.Persistence.FieldTracking t = new Net.Vpc.Upa.Impl.Persistence.FieldTracking(field.GetName(), Net.Vpc.Upa.Impl.Util.PlatformUtils.SetterName(field.GetName()), i); stringFieldTrackingMap[t.GetSetterMethodName()] = t; } } columns = this.fields.Length; }