Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 3 | 0.962 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 646 | src/NHibernate/Loader/Criteria/CriteriaQueryTranslator.cs |
2 | 12 | 660 | 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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#494d40a0]] | GetSQLAlias |
1 | 2 | [[#494d40a0]] | GetEntityName |
2 | 1 | [[#494d4020]] | criteria |
2 | 2 | [[#494d4020]] | subcriteria |
3 | 1 | [[#550ebfa0]] | subcriteria |
3 | 2 | [[#550ebfa0]] | crit |