Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 4 | 2 | 0.978 | primary_no_array_creation_expression |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 672 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
2 | 14 | 861 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
3 | 14 | 1047 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
4 | 14 | 1230 | src/NHibernate.Test/Criteria/CriteriaQueryTest.cs |
| ||||
s.CreateCriteria( typeof(Student)). Add(Expression.Like("Name", "Gavin", MatchMode.Start)). AddOrder(Order.Asc("Name")). CreateCriteria("Enrolments", "e"). AddOrder(Order.Desc("Year")). AddOrder(Order.Desc("Semester")). CreateCriteria("Course", "c"). AddOrder(Order.Asc("Description")). SetProjection(Projections.ProjectionList(). Add(Projections.Property("this.Name")). Add(Projections.Property("e.Year")). Add(Projections.Property("e.Semester")). Add(Projections.Property("c.CourseCode")). Add(Projections.Property("c.Description"))) |
| ||||
s.CreateCriteria( typeof(Student)). Add (Expression.Like("Name", "Gavin", MatchMode.Start)). AddOrder (Order.Asc("Name")). CreateCriteria ("Enrolments", "e"). AddOrder (Order.Desc("Year")). AddOrder (Order.Desc("Semester")). CreateCriteria ("Course", "c"). AddOrder (Order.Asc("Description")). SetProjection (Projections.ProjectionList(). Add(Projections.Property("this.Name")). Add(Projections.Property("e.Year")). Add(Projections.Property("e.Semester")). Add(Projections.Property("c.CourseCode")). Add(Projections.Property("c.Description"))) |
| ||||
s.CreateCriteria( typeof(Student)). Add(Expression.Like("Name", "Gavin", MatchMode.Start)). AddOrder(Order.Asc("Name")). CreateCriteria("Enrolments", "e"). AddOrder(Order.Desc("Year")). AddOrder(Order.Desc("Semester")). CreateCriteria("Course", "c"). AddOrder(Order.Asc("Description")). SetProjection(Projections.ProjectionList(). Add(Property.ForName("this.Name")). Add(Property.ForName("e.Year")). Add(Property.ForName("e.Semester")). Add(Property.ForName("c.CourseCode")). Add(Property.ForName("c.Description"))) |
| ||||
s.CreateCriteria( typeof(Student)). Add (Expression.Like("Name", "Gavin", MatchMode.Start)). AddOrder (Order.Asc("Name")). CreateCriteria ("Enrolments", "e"). AddOrder (Order.Desc("Year")). AddOrder (Order.Desc("Semester")). CreateCriteria ("Course", "c"). AddOrder (Order.Asc("Description")). SetProjection (Projections.ProjectionList(). Add(Property.ForName("this.Name")). Add(Property.ForName("e.Year")). Add(Property.ForName("e.Semester")). Add(Property.ForName("c.CourseCode")). Add(Property.ForName("c.Description"))) |
| |||
s.CreateCriteria( typeof(Student)).Add(Expression.Like("Name", "Gavin", MatchMode.Start)).AddOrder(Order.Asc("Name")).CreateCriteria("Enrolments", "e").AddOrder(Order.Desc("Year")).AddOrder(Order.Desc("Semester")).CreateCriteria("Course", "c").AddOrder(Order.Asc("Description")).SetProjection(Projections.ProjectionList().Add( [[#variable46dd4460]]. [[#variable46dd4360]]("this.Name")).Add( [[#variable46dd4460]]. [[#variable46dd4360]]("e.Year")).Add( [[#variable46dd4460]]. [[#variable46dd4360]]("e.Semester")).Add( [[#variable46dd4460]]. [[#variable46dd4360]]("c.CourseCode")).Add( [[#variable46dd4460]]. [[#variable46dd4360]]("c.Description"))) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#46dd4460]] | Property |
1 | 2 | [[#46dd4460]] | Projections |
1 | 3 | [[#46dd4460]] | Property |
1 | 4 | [[#46dd4460]] | Projections |
2 | 1 | [[#46dd4360]] | ForName |
2 | 2 | [[#46dd4360]] | Property |
2 | 3 | [[#46dd4360]] | ForName |
2 | 4 | [[#46dd4360]] | Property |