Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 2 | 0.992 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 2232 | src/NHibernate/Persister/Entity/AbstractEntityPersister.cs |
2 | 16 | 3072 | 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"); } } } |
| ||||
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"); } } } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52dcfe80]] | oldFields |
1 | 2 | [[#52dcfe80]] | loadedState |
2 | 1 | [[#52dcfe00]] | updateBuilder |
2 | 2 | [[#52dcfe00]] | delete |