示例#1
0
        protected internal override void Process(RECORD[] batch, BatchSender sender)
        {
            System.Func <long, IdSequence> idSequence = _prepareIdSequence.apply(Store);
            int recordsUpdatedInThisBatch             = 0;

            foreach (RECORD record in batch)
            {
                if (record != null && record.inUse() && !IdValidator.isReservedId(record.Id))
                {
                    Store.prepareForCommit(record, idSequence(record.Id));
                    Store.updateRecord(record);
                    recordsUpdatedInThisBatch++;
                }
            }
            _recordsUpdated.add(recordsUpdatedInThisBatch);
        }
示例#2
0
 public override void UpdateRecord(R record)
 {
     Actual.updateRecord(record);
 }