Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
24 | 2 | 3 | 0.950 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 24 | 222 | src/NHibernate/Hql/Ast/ANTLR/Exec/AbstractStatementExecutor.cs |
2 | 24 | 266 | src/NHibernate/Hql/Ast/ANTLR/Exec/AbstractStatementExecutor.cs |
| ||||
public void DoWork(IDbConnection connection, IDbTransaction transaction) { IDbCommand stmnt = null; try { stmnt = session.ConnectionManager.CreateCommand(); stmnt.CommandText = persister.TemporaryIdTableDDL; stmnt.ExecuteNonQuery(); session.Factory.Settings.SqlStatementLogger.LogCommand(stmnt, FormatStyle.Ddl); } catch (Exception t) { log.Debug("unable to create temporary id table [" + t.Message + "]"); } finally { if (stmnt != null) { try { stmnt.Dispose(); } catch (Exception) { // ignore } } } } |
| ||||
public void DoWork(IDbConnection connection, IDbTransaction transaction) { IDbCommand stmnt = null; try { stmnt = session.ConnectionManager.CreateCommand(); stmnt.CommandText = "drop table " + persister.TemporaryIdTableName; stmnt.ExecuteNonQuery(); session.Factory.Settings.SqlStatementLogger.LogCommand(stmnt, FormatStyle.Ddl); } catch (Exception t) { log.Warn("unable to drop temporary id table after use [" + t.Message + "]"); } finally { if (stmnt != null) { try { stmnt.Dispose(); } catch (Exception) { // ignore } } } } |
| |||
public void DoWork(IDbConnection connection, IDbTransaction transaction) { IDbCommand stmnt = null; try { stmnt = session.ConnectionManager.CreateCommand(); stmnt.CommandText = [[#variable69bce680]]; stmnt.ExecuteNonQuery(); session.Factory.Settings.SqlStatementLogger.LogCommand(stmnt, FormatStyle.Ddl); } catch (Exception t) { log. [[#variable69bce620]]( [[#variable69bce5a0]]+ t.Message + "]"); } finally { if (stmnt != null) { try { stmnt.Dispose(); } catch (Exception) { // ignore } } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#69bce680]] | "drop table " + persister.TemporaryIdTableName |
1 | 2 | [[#69bce680]] | persister.TemporaryIdTableDDL |
2 | 1 | [[#69bce620]] | Warn |
2 | 2 | [[#69bce620]] | Debug |
3 | 1 | [[#69bce5a0]] | "unable to drop temporary id table after use [" |
3 | 2 | [[#69bce5a0]] | "unable to create temporary id table [" |