Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.989 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 53 | src/NHibernate/SqlCommand/SqlInsertBuilder.cs |
2 | 7 | 81 | src/NHibernate/SqlCommand/SqlUpdateBuilder.cs |
| ||||
/// <summary> /// Adds the Property's columns to the INSERT sql /// </summary> /// <param name="columnName">The column name for the Property</param> /// <param name="propertyType">The IType of the property.</param> /// <returns>The SqlInsertBuilder.</returns> /// <remarks>The column will be associated with a parameter.</remarks> public virtual SqlInsertBuilder AddColumn(string columnName, IType propertyType) { SqlType[] sqlTypes = propertyType.SqlTypes(factory); if (sqlTypes.Length > 1) throw new AssertionFailure("Adding one column for a composed IType."); columns[columnName] = sqlTypes[0]; return this ; } |
| ||||
public virtual SqlUpdateBuilder AddColumn(string columnName, IType propertyType) { SqlType[] sqlTypes = propertyType.SqlTypes(Mapping); if (sqlTypes.Length > 1) throw new AssertionFailure("Adding one column for a composed IType."); columns[columnName] = sqlTypes[0]; return this ; } |
| |||
/// <summary> /// Adds the Property's columns to the INSERT sql /// </summary> /// <param name="columnName">The column name for the Property</param> /// <param name="propertyType">The IType of the property.</param> /// <returns>The SqlInsertBuilder.</returns> /// <remarks>The column will be associated with a parameter.</remarks> public virtual [[#variable29585ea0]]AddColumn(string columnName, IType propertyType) { SqlType[] sqlTypes = propertyType.SqlTypes( [[#variable29585e60]]); if (sqlTypes.Length > 1) throw new AssertionFailure("Adding one column for a composed IType."); columns[columnName] = sqlTypes[0]; return this ; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#29585ea0]] | SqlInsertBuilder |
1 | 2 | [[#29585ea0]] | SqlUpdateBuilder |
2 | 1 | [[#29585e60]] | factory |
2 | 2 | [[#29585e60]] | Mapping |