CloneSet1056


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13340.953class_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1131963
src/NHibernate/Dialect/Dialect.cs
21310
src/NHibernate/Dialect/Function/ClassicCountFunction.cs
315462
src/NHibernate/Dialect/MsSql2000Dialect.cs
Clone Instance
1
Line Count
13
Source Line
1963
Source File
src/NHibernate/Dialect/Dialect.cs

                #endregion
                #region Agregate function redefinition
                [Serializable]
                protected class CountQueryFunctionInfo : ClassicAggregateFunction
                {
                        public CountQueryFunctionInfo() : base("count", true)
                        {
                        }

                        public override IType ReturnType(IType columnType, IMapping mapping)
                        {
                                return NHibernateUtil.Int64;
                        }

                }


Clone Instance
2
Line Count
13
Source Line
10
Source File
src/NHibernate/Dialect/Function/ClassicCountFunction.cs

        /// <summary>
        /// Classic COUNT sqlfunction that return types as it was done in Hibernate 3.1
        /// </summary>
        [Serializable]
        public class ClassicCountFunction : ClassicAggregateFunction
        {
                public ClassicCountFunction() : base("count", true)
                {
                }

                public override IType ReturnType(IType columnType, IMapping mapping)
                {
                        return NHibernateUtil.Int32;
                }

        }


Clone Instance
3
Line Count
15
Source Line
462
Source File
src/NHibernate/Dialect/MsSql2000Dialect.cs

                [Serializable]
                protected class CountBigQueryFunction : ClassicAggregateFunction
                {
                        public CountBigQueryFunction()
                                : base("count_big", true)
                        {
                        }

                        public override IType ReturnType(IType columnType, IMapping mapping)
                        {
                                return NHibernateUtil.Int64;
                        }

                }


Clone AbstractionParameter Count: 4Parameter Bindings

#endregion
#region Agregate function redefinition
/// <summary>
/// Classic COUNT sqlfunction that return types as it was done in Hibernate 3.1
/// </summary>
[Serializable]
 [[#variable27f84e40]]class [[#variable2d01c4e0]]: ClassicAggregateFunction
{
   public [[#variable2d01c4e0]](): base( [[#variable55097ae0]], true)
   {
   }

   public override IType ReturnType(IType columnType, IMapping mapping)
   {
      return NHibernateUtil. [[#variable27f85700]];
   }

}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#27f84e40]]
protected 
12[[#27f84e40]]
protected 
13[[#27f84e40]]
public 
21[[#2d01c4e0]]
CountQueryFunctionInfo 
22[[#2d01c4e0]]
CountBigQueryFunction 
23[[#2d01c4e0]]
ClassicCountFunction 
31[[#55097ae0]]
"count" 
32[[#55097ae0]]
"count_big" 
33[[#55097ae0]]
"count" 
41[[#27f85700]]
Int64 
42[[#27f85700]]
Int64 
43[[#27f85700]]
Int32