CloneSet592


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24230.950class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
124222
src/NHibernate/Hql/Ast/ANTLR/Exec/AbstractStatementExecutor.cs
224266
src/NHibernate/Hql/Ast/ANTLR/Exec/AbstractStatementExecutor.cs
Clone Instance
1
Line Count
24
Source Line
222
Source File
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
                                                }
                                        }
                                }
                        }



Clone Instance
2
Line Count
24
Source Line
266
Source File
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 = "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
                                                }
                                        }
                                }
                        }



Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#69bce680]]
"drop table " + persister.TemporaryIdTableName 
12[[#69bce680]]
persister.TemporaryIdTableDDL 
21[[#69bce620]]
Warn 
22[[#69bce620]]
Debug 
31[[#69bce5a0]]
"unable to drop temporary id table after use [" 
32[[#69bce5a0]]
"unable to create temporary id table ["