Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 3 | 2 | 0.952 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 319 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
2 | 4 | 78 | src/NHibernate.Test/NHSpecificTest/NH1756/Fixture.cs |
3 | 4 | 31 | src/NHibernate.Test/NHSpecificTest/NH1783/SampleTest.cs |
| ||||
using (ITransaction t = session.BeginTransaction()) { session.CreateQuery("delete from Student").ExecuteUpdate(); t.Commit(); } |
| ||||
using (ITransaction transaction = session.BeginTransaction()) { session.CreateQuery("delete from Book").ExecuteUpdate(); transaction.Commit(); } |
| ||||
using (ITransaction tx = session.BeginTransaction()) { session.CreateQuery("delete from DomainClass").ExecuteUpdate(); tx.Commit(); } |
| |||
using (ITransaction [[#variable54a72d00]]= session.BeginTransaction()) { session.CreateQuery( [[#variable54a72c40]]).ExecuteUpdate(); [[#variable54a72d00]].Commit(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54a72d00]] | tx |
1 | 2 | [[#54a72d00]] | t |
1 | 3 | [[#54a72d00]] | transaction |
2 | 1 | [[#54a72c40]] | "delete from DomainClass" |
2 | 2 | [[#54a72c40]] | "delete from Student" |
2 | 3 | [[#54a72c40]] | "delete from Book" |