Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 1 | 0.950 | statement_list[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 110 | src/NHibernate/Id/Enhanced/TableStructure.cs |
2 | 5 | 223 | src/NHibernate/Id/TableGenerator.cs |
| ||||
IDbCommand qps = conn.CreateCommand(); IDataReader rs = null; qps.CommandText = query; qps.CommandType = CommandType.Text; qps.Transaction = conn.BeginTransaction(); |
| ||||
//the loop ensure atomicitiy of the //select + uspdate even for no transaction //or read committed isolation level (needed for .net?) IDbCommand qps = conn.CreateCommand(); IDataReader rs = null; qps.CommandText = query; qps.CommandType = CommandType.Text; qps.Transaction = transaction; |
| |||
//the loop ensure atomicitiy of the //select + uspdate even for no transaction //or read committed isolation level (needed for .net?) IDbCommand qps = conn.CreateCommand(); IDataReader rs = null; qps.CommandText = query; qps.CommandType = CommandType.Text; qps.Transaction = [[#variable284c5060]]; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#284c5060]] | conn.BeginTransaction() |
1 | 2 | [[#284c5060]] | transaction |