CloneSet430


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15230.983class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11587
src/NHibernate/SqlCommand/SqlInsertBuilder.cs
214108
src/NHibernate/SqlCommand/SqlUpdateBuilder.cs
Clone Instance
1
Line Count
15
Source Line
87
Source File
src/NHibernate/SqlCommand/SqlInsertBuilder.cs

                public SqlInsertBuilder AddColumns(string[] columnNames, bool[] insertable, IType propertyType)
                {
                        SqlType[] sqlTypes = propertyType.SqlTypes(factory);

                        for (int i = 0; i < columnNames.Length; i++)
                        {
                                if (insertable == null || insertable[i])
                                {
                                        if (i >= sqlTypes.Length)
                                                throw new AssertionFailure("Different columns and it's IType.");
                                        columns[columnNames[i]] = sqlTypes[i];
                                }
                        }

                        return this ;
                }



Clone Instance
2
Line Count
14
Source Line
108
Source File
src/NHibernate/SqlCommand/SqlUpdateBuilder.cs

                /// <summary>
                /// Adds the Property's updatable columns to the UPDATE sql
                /// </summary>
                /// <param name="columnNames">An array of the column names for the Property</param>
                /// <param name="updateable">An array of updatable column flags.  If this array is <c>null</c>, all supplied columns are considered updatable.</param>
                /// <param name="propertyType">The IType of the property.</param>
                /// <returns>The SqlUpdateBuilder.</returns>
                public SqlUpdateBuilder AddColumns(string[] columnNames, bool[] updateable, IType propertyType)
                {
                        SqlType[] sqlTypes = propertyType.SqlTypes(Mapping);
                        for (int i = 0; i < columnNames.Length; i++)
                        {
                                if (updateable == null || updateable[i])
                                {
                                        if (i >= sqlTypes.Length)
                                                throw new AssertionFailure("Different columns and it's IType.");
                                        columns[columnNames[i]] = sqlTypes[i];
                                }
                        }

                        return this ;
                }



Clone AbstractionParameter Count: 3Parameter Bindings

/// <summary>
/// Adds the Property's updatable columns to the UPDATE sql
/// </summary>
/// <param name="columnNames">An array of the column names for the Property</param>
/// <param name="updateable">An array of updatable column flags.  If this array is <c>null</c>, all supplied columns are considered updatable.</param>
/// <param name="propertyType">The IType of the property.</param>
/// <returns>The SqlUpdateBuilder.</returns>
public [[#variable58416ea0]]AddColumns(string[] columnNames, bool[] [[#variable58416e20]], IType propertyType)
{
   SqlType[] sqlTypes = propertyType.SqlTypes( [[#variable58416d80]]);
   for (int i = 0; i < columnNames.Length; i++)
   {
      if ( [[#variable58416e20]]== null || [[#variable58416e20]][i])
      {
         if (i >= sqlTypes.Length)
            throw new AssertionFailure("Different columns and it's IType.");
         columns[columnNames[i]] = sqlTypes[i];
      }
   }
   return this ;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58416ea0]]
SqlInsertBuilder 
12[[#58416ea0]]
SqlUpdateBuilder 
21[[#58416e20]]
insertable 
22[[#58416e20]]
updateable 
31[[#58416d80]]
factory 
32[[#58416d80]]
Mapping