CloneSet253


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20230.987statement_list[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120119
src/NHibernate/Impl/MultiCriteriaImpl.cs
215766
src/NHibernate/Impl/MultiQueryImpl.cs
Clone Instance
1
Line Count
20
Source Line
119
Source File
src/NHibernate/Impl/MultiCriteriaImpl.cs

                        QueryKey key = new QueryKey(session.Factory, SqlString, combinedParameters, filterKeys).
                                 SetFirstRows(firstRows).
                                 SetMaxRows(maxRows);

                        IList result =
                                assembler.GetResultFromQueryCache(session,
                                                                                                  combinedParameters,
                                                                                                  querySpaces,
                                                                                                  queryCache,
                                                                                                  key);

                        if (result == null)
                        {
                                log.Debug("Cache miss for multi criteria query");
                                IList list = DoList();
                                queryCache.Put(key, new ICacheAssembler[] { assembler
                                                                          } ,            new object[] { list
                                                                                                      } ,       combinedParameters.NaturalKeyLookup, session);
                                result = list;
                        }
                        return GetResultList(result);


Clone Instance
2
Line Count
15
Source Line
766
Source File
src/NHibernate/Impl/MultiQueryImpl.cs

                        QueryKey key = new QueryKey(session.Factory, SqlString, combinedParameters, filterKeys).
                                 SetFirstRows(firstRows).
                                 SetMaxRows(maxRows);

                        IList result = assembler.GetResultFromQueryCache(session, combinedParameters, querySpaces, queryCache, key);

                        if (result == null)
                        {
                                log.Debug("Cache miss for multi query");
                                ArrayList list = DoList();
                                queryCache.Put(key, new ICacheAssembler[] { assembler
                                                                          } ,            new object[] { list
                                                                                                      } ,       false, session);
                                result = list;
                        }
                        return GetResultList(result);


Clone AbstractionParameter Count: 3Parameter Bindings

QueryKey key = new QueryKey(session.Factory, SqlString, combinedParameters, filterKeys).SetFirstRows(firstRows).SetMaxRows(maxRows);
IList result = assembler.GetResultFromQueryCache(session, combinedParameters, querySpaces, queryCache, key);
if (result == null)
{
   log.Debug( [[#variable545f0520]]);
    [[#variable545f0340]]list = DoList();
   queryCache.Put(key, new ICacheAssembler[]
                       {
                          assembler
                       } , new object[]
                           {
                              list
                           } , [[#variable545f01a0]], session);
   result = list;
}
return GetResultList(result);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#545f0520]]
"Cache miss for multi criteria query" 
12[[#545f0520]]
"Cache miss for multi query" 
21[[#545f0340]]
IList 
22[[#545f0340]]
ArrayList 
31[[#545f01a0]]
combinedParameters.NaturalKeyLookup 
32[[#545f01a0]]
false