Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 1 | 0.989 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 69 | src/NHibernate/SqlCommand/SqlInsertBuilder.cs |
2 | 16 | 49 | src/NHibernate/SqlCommand/SqlUpdateBuilder.cs |
| ||||
/// <summary> /// Add a column with a specific value to the INSERT sql /// </summary> /// <param name="columnName">The name of the Column to add.</param> /// <param name="val">The value to set for the column.</param> /// <param name="literalType">The NHibernateType to use to convert the value to a sql string.</param> /// <returns>The SqlInsertBuilder.</returns> public SqlInsertBuilder AddColumn(string columnName, object val, ILiteralType literalType) { return AddColumn(columnName, literalType.ObjectToSQLString(val, Dialect)); } /// <summary> /// Add a column with a specific value to the INSERT sql /// </summary> /// <param name="columnName">The name of the Column to add.</param> /// <param name="val">A valid sql string to set as the value of the column.</param> /// <returns>The SqlInsertBuilder.</returns> public SqlInsertBuilder AddColumn(string columnName, string val) { columns[columnName] = val; return this ; } |
| ||||
/// <summary> /// Add a column with a specific value to the UPDATE sql /// </summary> /// <param name="columnName">The name of the Column to add.</param> /// <param name="val">The value to set for the column.</param> /// <param name="literalType">The NHibernateType to use to convert the value to a sql string.</param> /// <returns>The SqlUpdateBuilder.</returns> public SqlUpdateBuilder AddColumn(string columnName, object val, ILiteralType literalType) { return AddColumn(columnName, literalType.ObjectToSQLString(val, Dialect)); } /// <summary> /// Add a column with a specific value to the UPDATE sql /// </summary> /// <param name="columnName">The name of the Column to add.</param> /// <param name="val">A valid sql string to set as the value of the column.</param> /// <returns>The SqlUpdateBuilder.</returns> public SqlUpdateBuilder AddColumn(string columnName, string val) { columns[columnName] = val; return this ; } |
| |||
/// <summary> /// Add a column with a specific value to the UPDATE sql /// Add a column with a specific value to the INSERT sql /// </summary> /// <param name="columnName">The name of the Column to add.</param> /// <param name="val">The value to set for the column.</param> /// <param name="literalType">The NHibernateType to use to convert the value to a sql string.</param> /// <returns>The SqlUpdateBuilder.</returns> /// <returns>The SqlInsertBuilder.</returns> public [[#variable27a8e400]]AddColumn(string columnName, object val, ILiteralType literalType) { return AddColumn(columnName, literalType.ObjectToSQLString(val, Dialect)); } /// <summary> /// Add a column with a specific value to the UPDATE sql /// Add a column with a specific value to the INSERT sql /// </summary> /// <param name="columnName">The name of the Column to add.</param> /// <param name="val">A valid sql string to set as the value of the column.</param> /// <returns>The SqlUpdateBuilder.</returns> /// <returns>The SqlInsertBuilder.</returns> public [[#variable27a8e400]]AddColumn(string columnName, string val) { columns[columnName] = val; return this ; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#27a8e400]] | SqlUpdateBuilder |
1 | 2 | [[#27a8e400]] | SqlInsertBuilder |