Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 2 | 0.991 | statement_list[12] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 347 | src/NHibernate.Test/Legacy/MultiTableTest.cs |
2 | 13 | 462 | src/NHibernate.Test/Legacy/MultiTableTest.cs |
| ||||
multi = (Multi) s.Load( typeof(Top), mid, LockMode.Upgrade); simp = (Top) s.Load( typeof(Top), sid); s.Lock(simp, LockMode.UpgradeNoWait); t.Commit(); s.Close(); s = OpenSession(); t = s.BeginTransaction(); s.Update(multi, mid); s.Delete(multi); Assert.AreEqual(2, s.Delete("from s in class Top")); t.Commit(); s.Close(); |
| ||||
multi = (Multi) s.Load( typeof(Top), multiId, LockMode.Upgrade); simp = (Top) s.Load( typeof(Top), simpId); s.Lock(simp, LockMode.UpgradeNoWait); t.Commit(); s.Close(); s = OpenSession(); t = s.BeginTransaction(); s.Update(multi, multiId); s.Delete(multi); Assert.AreEqual(2, s.Delete("from s in class Top")); t.Commit(); s.Close(); |
| |||
multi = (Multi)s.Load( typeof(Top), [[#variable673b3800]], LockMode.Upgrade); simp = (Top)s.Load( typeof(Top), [[#variable66f31f20]]); s.Lock(simp, LockMode.UpgradeNoWait); t.Commit(); s.Close(); s = OpenSession(); t = s.BeginTransaction(); s.Update(multi, [[#variable673b3800]]); s.Delete(multi); Assert.AreEqual(2, s.Delete("from s in class Top")); t.Commit(); s.Close(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#673b3800]] | multiId |
1 | 2 | [[#673b3800]] | mid |
2 | 1 | [[#66f31f20]] | simpId |
2 | 2 | [[#66f31f20]] | sid |