Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 37 lines (30 sloc) 0.705 kb
f27726f @nberardi adding mutation tracking to the fluent objects
nberardi authored
1 using System;
2 using System.Collections.Generic;
3
4 namespace FluentCassandra
5 {
6 public class FluentMutationTracker : IFluentMutationTracker
7 {
8 private IList<FluentMutation> _mutation;
9
72267db @nberardi tracking object seems to be working for adds, needs a ton more testin…
nberardi authored
10 protected internal FluentMutationTracker(IFluentRecord parentRecord)
f27726f @nberardi adding mutation tracking to the fluent objects
nberardi authored
11 {
72267db @nberardi tracking object seems to be working for adds, needs a ton more testin…
nberardi authored
12 ParentRecord = parentRecord;
f27726f @nberardi adding mutation tracking to the fluent objects
nberardi authored
13 _mutation = new List<FluentMutation>();
14 }
15
72267db @nberardi tracking object seems to be working for adds, needs a ton more testin…
nberardi authored
16 public IFluentRecord ParentRecord { get; private set; }
f27726f @nberardi adding mutation tracking to the fluent objects
nberardi authored
17
2db6327 @nberardi going through some changes to make the interface the objects more use…
nberardi authored
18 public void ColumnMutated(MutationType type, IFluentBaseColumn column)
f27726f @nberardi adding mutation tracking to the fluent objects
nberardi authored
19 {
20 _mutation.Add(new FluentMutation {
21 Type = type,
22 Column = column
23 });
24 }
25
26 public void Clear()
27 {
28 _mutation.Clear();
29 }
30
31 public IEnumerable<FluentMutation> GetMutations()
32 {
33 return _mutation;
34 }
35 }
36 }
Something went wrong with that request. Please try again.