Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 3 | 0.987 | statement_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 119 | src/NHibernate/Impl/MultiCriteriaImpl.cs |
2 | 15 | 766 | 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 criteria query"); IList list = DoList(); queryCache.Put(key, new ICacheAssembler[] { assembler } , new object[] { list } , combinedParameters.NaturalKeyLookup, session); result = list; } return GetResultList(result); |
| ||||
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); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#545f0520]] | "Cache miss for multi criteria query" |
1 | 2 | [[#545f0520]] | "Cache miss for multi query" |
2 | 1 | [[#545f0340]] | IList |
2 | 2 | [[#545f0340]] | ArrayList |
3 | 1 | [[#545f01a0]] | combinedParameters.NaturalKeyLookup |
3 | 2 | [[#545f01a0]] | false |