CloneSet110


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13330.987non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113152
src/NHibernate.Test/QueryTest/MultiCriteriaFixture.cs
213174
src/NHibernate.Test/QueryTest/MultiCriteriaFixture.cs
313454
src/NHibernate.Test/QueryTest/MultiCriteriaFixture.cs
Clone Instance
1
Line Count
13
Source Line
152
Source File
src/NHibernate.Test/QueryTest/MultiCriteriaFixture.cs

                        using (ISession s = sessions.OpenSession())
                        {
                                ICriteria criteria = s.CreateCriteria( typeof(Item)).
                                         Add         (Expression.Gt("id", 50));
                                IMultiCriteria multiCriteria = s.CreateMultiCriteria().
                                         Add                   (CriteriaTransformer.Clone(criteria).SetFirstResult(10)).
                                         Add                   (CriteriaTransformer.Clone(criteria).SetProjection(Projections.RowCount()));
                                multiCriteria.SetCacheable(true);
                                IList results = multiCriteria.List();
                                IList items = (IList)results[0];
                                Assert.AreEqual(2, items.Count);
                                int count = (int)((IList)results[1])[0];
                                Assert.AreEqual(2L, count);
                        }


Clone Instance
2
Line Count
13
Source Line
174
Source File
src/NHibernate.Test/QueryTest/MultiCriteriaFixture.cs

                        using (ISession s = OpenSession())
                        {
                                ICriteria criteria = s.CreateCriteria( typeof(Item)).
                                         Add         (Expression.Gt("id", 50));
                                IMultiCriteria multiCriteria = s.CreateMultiCriteria().
                                         Add                   (CriteriaTransformer.Clone(criteria).SetFirstResult(10)).
                                         Add                   (CriteriaTransformer.Clone(criteria).SetProjection(Projections.RowCount()));
                                multiCriteria.SetCacheable(true);
                                IList results = multiCriteria.List();
                                IList items = (IList)results[0];
                                Assert.AreEqual(89, items.Count);
                                int count = (int)((IList)results[1])[0];
                                Assert.AreEqual(99L, count);
                        }


Clone Instance
3
Line Count
13
Source Line
454
Source File
src/NHibernate.Test/QueryTest/MultiCriteriaFixture.cs

                        using (ISession s = OpenSession())
                        {
                                ICriteria criteria = s.CreateCriteria( typeof(Item)).
                                         Add         (Expression.Gt("id", 50));
                                IMultiCriteria multiCriteria = s.CreateMultiCriteria().
                                         Add                   (CriteriaTransformer.Clone(criteria).SetFirstResult(10)).
                                         Add                   (CriteriaTransformer.Clone(criteria).SetProjection(Projections.RowCount()));
                                multiCriteria.SetCacheable(true);
                                IList results = multiCriteria.List();
                                IList items = (IList)results[0];
                                Assert.AreEqual(89, items.Count);
                                int count = (int)((IList)results[1])[0];
                                Assert.AreEqual(99L, count);
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

using (ISession s = [[#variable553b1400]]())
{
   ICriteria criteria = s.CreateCriteria( typeof(Item)).Add(Expression.Gt("id", 50));
   IMultiCriteria multiCriteria = s.CreateMultiCriteria().Add(CriteriaTransformer.Clone(criteria).SetFirstResult(10)).Add(CriteriaTransformer.Clone(criteria).SetProjection(Projections.RowCount()));
   multiCriteria.SetCacheable(true);
   IList results = multiCriteria.List();
   IList items = (IList)results[0];
   Assert.AreEqual( [[#variable553b1340]], items.Count);
   int count = (int)((IList)results[1])[0];
   Assert.AreEqual( [[#variable553b12a0]], count);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#553b1400]]
OpenSession 
12[[#553b1400]]
sessions.OpenSession 
13[[#553b1400]]
OpenSession 
21[[#553b1340]]
89 
22[[#553b1340]]
2 
23[[#553b1340]]
89 
31[[#553b12a0]]
99L 
32[[#553b12a0]]
2L 
33[[#553b12a0]]
99L