CloneSet897


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16210.989class_member_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11669
src/NHibernate/SqlCommand/SqlInsertBuilder.cs
21649
src/NHibernate/SqlCommand/SqlUpdateBuilder.cs
Clone Instance
1
Line Count
16
Source Line
69
Source File
src/NHibernate/SqlCommand/SqlInsertBuilder.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 ;
                }



Clone Instance
2
Line Count
16
Source Line
49
Source File
src/NHibernate/SqlCommand/SqlUpdateBuilder.cs

                /// <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 ;
                }



Clone AbstractionParameter Count: 1Parameter Bindings

/// <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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#27a8e400]]
SqlUpdateBuilder 
12[[#27a8e400]]
SqlInsertBuilder