public override bool AcceptUpdateTableOlderValuesHelper(Net.Vpc.Upa.Callbacks.UpdateEvent @event) /* throws Net.Vpc.Upa.Exceptions.UPAException */ { if (relationFilter == null) { relationFilter = Net.Vpc.Upa.Filters.Fields.Regular().And(Net.Vpc.Upa.Filters.Fields.ByList(relation.GetSourceRole().GetFields())); } Net.Vpc.Upa.Entity entityManager = @event.GetEntity(); foreach (string updatedField in @event.GetUpdatesRecord().KeySet()) { if (relationFilter.Accept(entityManager.GetField(updatedField))) { return(true); } } return(false); }
public override bool AcceptUpdateTableHelper(Net.Vpc.Upa.Callbacks.UpdateEvent @event) /* throws Net.Vpc.Upa.Exceptions.UPAException */ { Net.Vpc.Upa.Filters.FieldFilter conditionFields = entityDetailFormulaUpdaterInterceptor.GetConditionFields(); if (conditionFields == null) { return(true); } Net.Vpc.Upa.Entity entityManager = @event.GetEntity(); foreach (string updatedField in @event.GetUpdatesRecord().KeySet()) { if (conditionFields.Accept(entityManager.GetField(updatedField))) { return(true); } } return(false); }
public override bool AcceptUpdateTableHelper(Net.Vpc.Upa.Callbacks.UpdateEvent @event) /* throws Net.Vpc.Upa.Exceptions.UPAException */ { Net.Vpc.Upa.Filters.FieldFilter conditionFields = entityTargetFormulaUpdaterInterceptor.GetConditionFields(); if (conditionFields == null) { return(true); } if (relationFilter == null) { relationFilter = Net.Vpc.Upa.Filters.Fields.Regular().And(Net.Vpc.Upa.Filters.Fields.ByList(relation.GetSourceRole().GetFields())); } Net.Vpc.Upa.Filters.FieldFilter actualFilter = Net.Vpc.Upa.Filters.Fields.As(conditionFields).Or(relationFilter); Net.Vpc.Upa.Entity entityManager = @event.GetEntity(); foreach (string updatedField in @event.GetUpdatesRecord().KeySet()) { if (actualFilter.Accept(entityManager.GetField(updatedField))) { return(true); } } return(false); }
public override bool Accept(Net.Vpc.Upa.Field field) { return([email protected](field)); }
public override bool Accept(Net.Vpc.Upa.Field f) /* throws Net.Vpc.Upa.Exceptions.UPAException */ { return(@base.Accept(f)); }
public override bool Accept(Net.Vpc.Upa.Field f) { return(@base.Accept(f)); }
public virtual bool Is(Net.Vpc.Upa.Filters.FieldFilter ff) /* throws Net.Vpc.Upa.Exceptions.UPAException */ { return(ff.Accept(this)); }
public override bool Accept(Net.Vpc.Upa.Field f) { return((f is Net.Vpc.Upa.PrimitiveField) && (@base == null || @base.Accept(f))); }