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);
 }
コード例 #2
0
 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);
 }
コード例 #4
0
 public override bool Accept(Net.Vpc.Upa.Field field)
 {
     return([email protected](field));
 }
コード例 #5
0
ファイル: Fields.cs プロジェクト: nesrinesghaier/upa
 public override bool Accept(Net.Vpc.Upa.Field f) /* throws Net.Vpc.Upa.Exceptions.UPAException */
 {
     return(@base.Accept(f));
 }
コード例 #6
0
 public override bool Accept(Net.Vpc.Upa.Field f)
 {
     return(@base.Accept(f));
 }
コード例 #7
0
ファイル: AbstractField.cs プロジェクト: nesrinesghaier/upa
 public virtual bool Is(Net.Vpc.Upa.Filters.FieldFilter ff) /* throws Net.Vpc.Upa.Exceptions.UPAException */
 {
     return(ff.Accept(this));
 }
コード例 #8
0
 public override bool Accept(Net.Vpc.Upa.Field f)
 {
     return((f is Net.Vpc.Upa.PrimitiveField) && (@base == null || @base.Accept(f)));
 }