Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (30 sloc) 0.705 kb
using System;
using System.Collections.Generic;
namespace FluentCassandra
{
public class FluentMutationTracker : IFluentMutationTracker
{
private IList<FluentMutation> _mutation;
protected internal FluentMutationTracker(IFluentRecord parentRecord)
{
ParentRecord = parentRecord;
_mutation = new List<FluentMutation>();
}
public IFluentRecord ParentRecord { get; private set; }
public void ColumnMutated(MutationType type, IFluentBaseColumn column)
{
_mutation.Add(new FluentMutation {
Type = type,
Column = column
});
}
public void Clear()
{
_mutation.Clear();
}
public IEnumerable<FluentMutation> GetMutations()
{
return _mutation;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.