CloneSet486


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
30240.963compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1301
src/NHibernate/Impl/FutureCriteriaBatch.cs
2301
src/NHibernate/Impl/FutureQueryBatch.cs
Clone Instance
1
Line Count
30
Source Line
1
Source File
src/NHibernate/Impl/FutureCriteriaBatch.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;
                }

        }
}


Clone Instance
2
Line Count
30
Source Line
1
Source File
src/NHibernate/Impl/FutureQueryBatch.cs

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;
        }

    }
}


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6c51a900]]
FutureCriteriaBatch 
12[[#6c51a900]]
FutureQueryBatch 
21[[#6c51a8a0]]
ICriteria 
22[[#6c51a8a0]]
IQuery 
31[[#6c51a840]]
IMultiCriteria 
32[[#6c51a840]]
IMultiQuery 
41[[#6c51a6e0]]
CreateMultiCriteria 
42[[#6c51a6e0]]
CreateMultiQuery