Пример #1
0
 public void AddTableUpdateStrategyReceiver(string statementName, TableUpdateStrategyReceiver receiver, EventBeanUpdateHelper updateHelper, bool onMerge)
 {
     var receivers = _stmtNameToUpdateStrategyReceivers.Get(statementName);
     if (receivers == null) {
         receivers = new List<TableUpdateStrategyReceiverDesc>();
         _stmtNameToUpdateStrategyReceivers.Put(statementName, receivers);
     }
     receivers.Add(new TableUpdateStrategyReceiverDesc(receiver, updateHelper, onMerge));
 }
 public TableUpdateStrategyReceiverDesc(TableUpdateStrategyReceiver receiver, EventBeanUpdateHelper updateHelper, bool onMerge)
 {
     Receiver     = receiver;
     UpdateHelper = updateHelper;
     IsOnMerge    = onMerge;
 }
Пример #3
0
 public void AddTableUpdateStrategyReceiver(TableMetadata tableMetadata, string statementName, TableUpdateStrategyReceiver receiver, EventBeanUpdateHelper updateHelper, bool isOnMerge)
 {
     tableMetadata.AddTableUpdateStrategyReceiver(statementName, receiver, updateHelper, isOnMerge);
 }