CloneSet1233


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10210.993block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110381
src/NHibernate/Hql/Ast/ANTLR/QueryTranslatorImpl.cs
213394
src/NHibernate/Hql/Ast/ANTLR/QueryTranslatorImpl.cs
Clone Instance
1
Line Count
10
Source Line
381
Source File
src/NHibernate/Hql/Ast/ANTLR/QueryTranslatorImpl.cs

                        {
                                FromElement fromElement = walker.GetFinalFromClause().GetFromElement();
                                IQueryable persister = fromElement.Queryable;
                                if (persister.IsMultiTable)
                                {
                                        return new MultiTableDeleteExecutor(statement);
                                }
                                else
                                {
                                        return new BasicExecutor(statement, persister);
                                }
                        }


Clone Instance
2
Line Count
13
Source Line
394
Source File
src/NHibernate/Hql/Ast/ANTLR/QueryTranslatorImpl.cs

                        {
                                FromElement fromElement = walker.GetFinalFromClause().GetFromElement();
                                IQueryable persister = fromElement.Queryable;
                                if (persister.IsMultiTable)
                                {
                                        // even here, if only properties mapped to the "base table" are referenced
                                        // in the set and where clauses, this could be handled by the BasicDelegate.
                                        // TODO : decide if it is better performance-wise to perform that check, or to simply use the MultiTableUpdateDelegate
                                        return new MultiTableUpdateExecutor(statement);
                                }
                                else
                                {
                                        return new BasicExecutor(statement, persister);
                                }
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

{
   FromElement fromElement = walker.GetFinalFromClause().GetFromElement();
   IQueryable persister = fromElement.Queryable;
   if (persister.IsMultiTable)
   {
      // even here, if only properties mapped to the "base table" are referenced
      // in the set and where clauses, this could be handled by the BasicDelegate.
      // TODO : decide if it is better performance-wise to perform that check, or to simply use the MultiTableUpdateDelegate
      return new [[#variable2901a5c0]](statement);
   }
   else
   {
      return new BasicExecutor(statement, persister);
   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2901a5c0]]
MultiTableDeleteExecutor 
12[[#2901a5c0]]
MultiTableUpdateExecutor