CloneSet297


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16220.992non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1162232
src/NHibernate/Persister/Entity/AbstractEntityPersister.cs
2163072
src/NHibernate/Persister/Entity/AbstractEntityPersister.cs
Clone Instance
1
Line Count
16
Source Line
2232
Source File
src/NHibernate/Persister/Entity/AbstractEntityPersister.cs

                                        if (include)
                                        {
                                                // this property belongs to the table, and it is not specifically
                                                // excluded from optimistic locking by optimistic-lock="false"
                                                string[] _propertyColumnNames = GetPropertyColumnNames(i);
                                                bool[] propertyNullness = types[i].ToColumnNullness(oldFields[i], Factory);
                                                SqlType[] sqlt = types[i].SqlTypes(Factory);
                                                for (int k = 0; k < propertyNullness.Length; k++)
                                                {
                                                        if (propertyNullness[k])
                                                        {
                                                                updateBuilder.AddWhereFragment(_propertyColumnNames[k], sqlt[k], " = ");
                                                        }
                                                        else
                                                        {
                                                                updateBuilder.AddWhereFragment(_propertyColumnNames[k] + " is null");
                                                        }
                                                }
                                        }


Clone Instance
2
Line Count
16
Source Line
3072
Source File
src/NHibernate/Persister/Entity/AbstractEntityPersister.cs

                                        if (include)
                                        {
                                                // this property belongs to the table and it is not specifically
                                                // excluded from optimistic locking by optimistic-lock="false"
                                                string[] _propertyColumnNames = GetPropertyColumnNames(i);
                                                bool[] propertyNullness = types[i].ToColumnNullness(loadedState[i], Factory);
                                                SqlType[] sqlt = types[i].SqlTypes(Factory);
                                                for (int k = 0; k < propertyNullness.Length; k++)
                                                {
                                                        if (propertyNullness[k])
                                                        {
                                                                delete.AddWhereFragment(_propertyColumnNames[k], sqlt[k], " = ");
                                                        }
                                                        else
                                                        {
                                                                delete.AddWhereFragment(_propertyColumnNames[k] + " is null");
                                                        }
                                                }
                                        }


Clone AbstractionParameter Count: 2Parameter Bindings

if (include)
{
   // this property belongs to the table, and it is not specifically
   // this property belongs to the table and it is not specifically
   // excluded from optimistic locking by optimistic-lock="false"
   string[] _propertyColumnNames = GetPropertyColumnNames(i);
   bool[] propertyNullness = types[i].ToColumnNullness( [[#variable52dcfe80]][i], Factory);
   SqlType[] sqlt = types[i].SqlTypes(Factory);
   for (int k = 0; k < propertyNullness.Length; k++)
   {
      if (propertyNullness[k])
      {
          [[#variable52dcfe00]].AddWhereFragment(_propertyColumnNames[k], sqlt[k], " = ");
      }
      else
      {
          [[#variable52dcfe00]].AddWhereFragment(_propertyColumnNames[k] + " is null");
      }
   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52dcfe80]]
oldFields 
12[[#52dcfe80]]
loadedState 
21[[#52dcfe00]]
updateBuilder 
22[[#52dcfe00]]
delete