CloneSet715


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12230.962class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112646
src/NHibernate/Loader/Criteria/CriteriaQueryTranslator.cs
212660
src/NHibernate/Loader/Criteria/CriteriaQueryTranslator.cs
Clone Instance
1
Line Count
12
Source Line
646
Source File
src/NHibernate/Loader/Criteria/CriteriaQueryTranslator.cs

                public string GetEntityName(ICriteria subcriteria, string propertyName)
                {
                        if (propertyName.IndexOf('.') > 0)
                        {
                                string root = StringHelper.Root(propertyName);
                                ICriteria crit = GetAliasedCriteria(root);
                                if (crit != null)
                                {
                                        return GetEntityName(crit);
                                }
                        }
                        return GetEntityName(subcriteria);
                }



Clone Instance
2
Line Count
12
Source Line
660
Source File
src/NHibernate/Loader/Criteria/CriteriaQueryTranslator.cs

                public string GetSQLAlias(ICriteria criteria, string propertyName)
                {
                        if (propertyName.IndexOf('.') > 0)
                        {
                                string root = StringHelper.Root(propertyName);
                                ICriteria subcriteria = GetAliasedCriteria(root);
                                if (subcriteria != null)
                                {
                                        return GetSQLAlias(subcriteria);
                                }
                        }
                        return GetSQLAlias(criteria);
                }



Clone AbstractionParameter Count: 3Parameter Bindings

public string [[#variable494d40a0]](ICriteria [[#variable494d4020]], string propertyName)
{
   if (propertyName.IndexOf('.') > 0)
   {
      string root = StringHelper.Root(propertyName);
      ICriteria [[#variable550ebfa0]]= GetAliasedCriteria(root);
      if ( [[#variable550ebfa0]]!= null)
      {
         return [[#variable494d40a0]]( [[#variable550ebfa0]]);
      }
   }
   return [[#variable494d40a0]]( [[#variable494d4020]]);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#494d40a0]]
GetSQLAlias 
12[[#494d40a0]]
GetEntityName 
21[[#494d4020]]
criteria 
22[[#494d4020]]
subcriteria 
31[[#550ebfa0]]
subcriteria 
32[[#550ebfa0]]
crit