Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.970 | statement_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 92 | src/NHibernate/Persister/Collection/OneToManyPersister.cs |
2 | 9 | 123 | src/NHibernate/Persister/Collection/OneToManyPersister.cs |
| ||||
SqlUpdateBuilder update = new SqlUpdateBuilder(Factory.Dialect, Factory); update.SetTableName(qualifiedTableName). AddColumns(KeyColumnNames, KeyType); if (HasIndex && !indexContainsFormula) update.AddColumns(IndexColumnNames, IndexType); //identifier collections not supported for 1-to-many if (Factory.Settings.IsCommentsEnabled) update.SetComment("create one-to-many row " + Role); |
| ||||
SqlUpdateBuilder update = new SqlUpdateBuilder(Factory.Dialect, Factory); update.SetTableName(qualifiedTableName). AddColumns(KeyColumnNames, "null"); if (HasIndex && !indexContainsFormula) update.AddColumns(IndexColumnNames, "null"); if (Factory.Settings.IsCommentsEnabled) update.SetComment("delete one-to-many row " + Role); |
| |||
SqlUpdateBuilder update = new SqlUpdateBuilder(Factory.Dialect, Factory); update.SetTableName(qualifiedTableName).AddColumns(KeyColumnNames, [[#variable26ec80e0]]); if (HasIndex && !indexContainsFormula) update.AddColumns(IndexColumnNames, [[#variable26ec81a0]]); //identifier collections not supported for 1-to-many if (Factory.Settings.IsCommentsEnabled) update.SetComment( [[#variable26ec8020]]+ Role); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#26ec80e0]] | "null" |
1 | 2 | [[#26ec80e0]] | KeyType |
2 | 1 | [[#26ec81a0]] | "null" |
2 | 2 | [[#26ec81a0]] | IndexType |
3 | 1 | [[#26ec8020]] | "delete one-to-many row " |
3 | 2 | [[#26ec8020]] | "create one-to-many row " |