Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
30 | 2 | 4 | 0.963 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 30 | 1 | src/NHibernate/Impl/FutureCriteriaBatch.cs |
2 | 30 | 1 | src/NHibernate/Impl/FutureQueryBatch.cs |
| ||||
using System.Collections; namespace NHibernate.Impl { public class FutureCriteriaBatch : FutureBatch<ICriteria, IMultiCriteria> { public FutureCriteriaBatch(SessionImpl session) : base(session) { } protected override IMultiCriteria CreateMultiApproach() { return session.CreateMultiCriteria(); } protected override void AddTo(IMultiCriteria multiApproach, ICriteria query, System.Type resultType) { multiApproach.Add(resultType, query); } protected override IList GetResultsFrom(IMultiCriteria multiApproach) { return multiApproach.List(); } protected override void ClearCurrentFutureBatch() { session.FutureCriteriaBatch = null; } } } |
| ||||
using System.Collections; namespace NHibernate.Impl { public class FutureQueryBatch : FutureBatch<IQuery, IMultiQuery> { public FutureQueryBatch(SessionImpl session) : base(session) { } protected override IMultiQuery CreateMultiApproach() { return session.CreateMultiQuery(); } protected override void AddTo(IMultiQuery multiApproach, IQuery query, System.Type resultType) { multiApproach.Add(resultType, query); } protected override IList GetResultsFrom(IMultiQuery multiApproach) { return multiApproach.List(); } protected override void ClearCurrentFutureBatch() { session.FutureQueryBatch = null; } } } |
| |||
using System.Collections; namespace NHibernate.Impl { public class [[#variable6c51a900]]: FutureBatch< [[#variable6c51a8a0]], [[#variable6c51a840]]> { public [[#variable6c51a900]](SessionImpl session): base(session) { } protected override [[#variable6c51a840]]CreateMultiApproach() { return session. [[#variable6c51a6e0]](); } protected override void AddTo( [[#variable6c51a840]]multiApproach, [[#variable6c51a8a0]]query, System.Type resultType) { multiApproach.Add(resultType, query); } protected override IList GetResultsFrom( [[#variable6c51a840]]multiApproach) { return multiApproach.List(); } protected override void ClearCurrentFutureBatch() { session. [[#variable6c51a900]]= null; } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6c51a900]] | FutureCriteriaBatch |
1 | 2 | [[#6c51a900]] | FutureQueryBatch |
2 | 1 | [[#6c51a8a0]] | ICriteria |
2 | 2 | [[#6c51a8a0]] | IQuery |
3 | 1 | [[#6c51a840]] | IMultiCriteria |
3 | 2 | [[#6c51a840]] | IMultiQuery |
4 | 1 | [[#6c51a6e0]] | CreateMultiCriteria |
4 | 2 | [[#6c51a6e0]] | CreateMultiQuery |