Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 2 | 0.983 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 43 | src/NHibernate/SqlCommand/SqlDeleteBuilder.cs |
2 | 18 | 152 | src/NHibernate/SqlCommand/SqlUpdateBuilder.cs |
| ||||
/// <summary> /// Sets the IdentityColumn for the <c>DELETE</c> sql to use. /// </summary> /// <param name="columnNames">An array of the column names for the Property</param> /// <param name="identityType">The IType of the Identity Property.</param> /// <returns>The SqlDeleteBuilder.</returns> public SqlDeleteBuilder SetIdentityColumn(string[] columnNames, IType identityType) { whereStrings.Add(ToWhereString(columnNames)); parameterTypes.AddRange(identityType.SqlTypes(Mapping)); return this ; } /// <summary> /// Sets the VersionColumn for the <c>DELETE</c> sql to use. /// </summary> /// <param name="columnNames">An array of the column names for the Property</param> /// <param name="versionType">The IVersionType of the Version Property.</param> /// <returns>The SqlDeleteBuilder.</returns> public SqlDeleteBuilder SetVersionColumn(string[] columnNames, IVersionType versionType) { whereStrings.Add(ToWhereString(columnNames)); parameterTypes.AddRange(versionType.SqlTypes(Mapping)); return this ; } |
| ||||
/// <summary> /// Sets the IdentityColumn for the <c>UPDATE</c> sql to use. /// </summary> /// <param name="columnNames">An array of the column names for the Property</param> /// <param name="identityType">The IType of the Identity Property.</param> /// <returns>The SqlUpdateBuilder.</returns> public SqlUpdateBuilder SetIdentityColumn(string[] columnNames, IType identityType) { whereStrings.Add(ToWhereString(columnNames)); whereParameterTypes.AddRange(identityType.SqlTypes(Mapping)); return this ; } /// <summary> /// Sets the VersionColumn for the <c>UPDATE</c> sql to use. /// </summary> /// <param name="columnNames">An array of the column names for the Property</param> /// <param name="versionType">The IVersionType of the Version Property.</param> /// <returns>The SqlUpdateBuilder.</returns> public SqlUpdateBuilder SetVersionColumn(string[] columnNames, IVersionType versionType) { whereStrings.Add(ToWhereString(columnNames)); whereParameterTypes.AddRange(versionType.SqlTypes(Mapping)); return this ; } |
| |||
/// <summary> /// Sets the IdentityColumn for the <c>UPDATE</c> sql to use. /// Sets the IdentityColumn for the <c>DELETE</c> sql to use. /// </summary> /// <param name="columnNames">An array of the column names for the Property</param> /// <param name="identityType">The IType of the Identity Property.</param> /// <returns>The SqlUpdateBuilder.</returns> /// <returns>The SqlDeleteBuilder.</returns> public [[#variable660937c0]]SetIdentityColumn(string[] columnNames, IType identityType) { whereStrings.Add(ToWhereString(columnNames)); [[#variable660936c0]].AddRange(identityType.SqlTypes(Mapping)); return this ; } /// <summary> /// Sets the VersionColumn for the <c>UPDATE</c> sql to use. /// Sets the VersionColumn for the <c>DELETE</c> sql to use. /// </summary> /// <param name="columnNames">An array of the column names for the Property</param> /// <param name="versionType">The IVersionType of the Version Property.</param> /// <returns>The SqlUpdateBuilder.</returns> /// <returns>The SqlDeleteBuilder.</returns> public [[#variable660937c0]]SetVersionColumn(string[] columnNames, IVersionType versionType) { whereStrings.Add(ToWhereString(columnNames)); [[#variable660936c0]].AddRange(versionType.SqlTypes(Mapping)); return this ; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#660937c0]] | SqlUpdateBuilder |
1 | 2 | [[#660937c0]] | SqlDeleteBuilder |
2 | 1 | [[#660936c0]] | whereParameterTypes |
2 | 2 | [[#660936c0]] | parameterTypes |