Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 4 | 0.964 | statement_list[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 47 | src/NHibernate.Test/BulkManipulation/NativeSQLBulkOperations.cs |
2 | 4 | 53 | src/NHibernate.Test/BulkManipulation/NativeSQLBulkOperations.cs |
| ||||
Assert.AreEqual(0, sql.ExecuteUpdate()); sql = s.GetNamedQuery("native-delete-car").SetString(0, "NotKirsten"); Assert.AreEqual(1, sql.ExecuteUpdate()); |
| ||||
Assert.AreEqual(0, sql.ExecuteUpdate()); sql = s.CreateSQLQuery("delete from VEHICLE where (TofC = 21) and (Owner = :owner)").SetString("owner", "Joe"); Assert.AreEqual(1, sql.ExecuteUpdate()); |
| |||
Assert.AreEqual(0, sql.ExecuteUpdate()); sql = s. [[#variable538a02a0]]( [[#variable50f16c40]]).SetString( [[#variable538a0260]], [[#variable538a0240]]); Assert.AreEqual(1, sql.ExecuteUpdate()); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#538a02a0]] | GetNamedQuery |
1 | 2 | [[#538a02a0]] | CreateSQLQuery |
2 | 1 | [[#50f16c40]] | "native-delete-car" |
2 | 2 | [[#50f16c40]] | "delete from VEHICLE where (TofC = 21) and (Owner = :owner)" |
3 | 1 | [[#538a0260]] | 0 |
3 | 2 | [[#538a0260]] | "owner" |
4 | 1 | [[#538a0240]] | "NotKirsten" |
4 | 2 | [[#538a0240]] | "Joe" |