Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 3 | 4 | 0.953 | class_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 1963 | src/NHibernate/Dialect/Dialect.cs |
2 | 13 | 10 | src/NHibernate/Dialect/Function/ClassicCountFunction.cs |
3 | 15 | 462 | src/NHibernate/Dialect/MsSql2000Dialect.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; } } |
| ||||
/// <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; } } |
| ||||
[Serializable] protected class CountBigQueryFunction : ClassicAggregateFunction { public CountBigQueryFunction() : base("count_big", true) { } public override IType ReturnType(IType columnType, IMapping mapping) { return NHibernateUtil.Int64; } } |
| |||
#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#27f84e40]] | protected |
1 | 2 | [[#27f84e40]] | protected |
1 | 3 | [[#27f84e40]] | public |
2 | 1 | [[#2d01c4e0]] | CountQueryFunctionInfo |
2 | 2 | [[#2d01c4e0]] | CountBigQueryFunction |
2 | 3 | [[#2d01c4e0]] | ClassicCountFunction |
3 | 1 | [[#55097ae0]] | "count" |
3 | 2 | [[#55097ae0]] | "count_big" |
3 | 3 | [[#55097ae0]] | "count" |
4 | 1 | [[#27f85700]] | Int64 |
4 | 2 | [[#27f85700]] | Int64 |
4 | 3 | [[#27f85700]] | Int32 |