Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 4 | 3 | 0.955 | statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 130 | src/NHibernate.Test/Legacy/SQLLoaderTest.cs |
2 | 3 | 264 | src/NHibernate.Test/Legacy/SQLLoaderTest.cs |
3 | 3 | 270 | src/NHibernate.Test/Legacy/SQLLoaderTest.cs |
4 | 4 | 278 | src/NHibernate.Test/Legacy/SQLLoaderTest.cs |
| ||||
IQuery query = session.CreateSQLQuery("select {category.*} from Category {category} where {category}.Name = :Name"). AddEntity("category", typeof(Category)); |
| ||||
IQuery basicParam = s.CreateSQLQuery("select {category.*} from Category {category} where {category}.Name = 'Best'"). AddEntity("category", typeof(Category)); |
| ||||
IQuery unnamedParam = s.CreateSQLQuery("select {category.*} from Category {category} where {category}.Name = ? or {category}.Name = ?"). AddEntity("category", typeof(Category)); |
| ||||
IQuery namedParam = s.CreateSQLQuery( "select {category.*} from Category {category} where ({category}.Name=:firstCat or {category}.Name=:secondCat)"). AddEntity("category", typeof(Category)); |
| |||
IQuery [[#variable4e367340]]= [[#variable4e3672e0]].CreateSQLQuery( [[#variable4e367280]]).AddEntity("category", typeof(Category)); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4e367340]] | query |
1 | 2 | [[#4e367340]] | basicParam |
1 | 3 | [[#4e367340]] | unnamedParam |
1 | 4 | [[#4e367340]] | namedParam |
2 | 1 | [[#4e3672e0]] | session |
2 | 2 | [[#4e3672e0]] | s |
2 | 3 | [[#4e3672e0]] | s |
2 | 4 | [[#4e3672e0]] | s |
3 | 1 | [[#4e367280]] | "select {category.*} from Category {category} where {category}.Name = :Name" |
3 | 2 | [[#4e367280]] | "select {category.*} from Category {category} where {category}.Name = 'Best'" |
3 | 3 | [[#4e367280]] | "select {category.*} from Category {category} where {category}.Name = ? or {category}.Name = ?" |
3 | 4 | [[#4e367280]] | "select {category.*} from Category {category} where ({category}.Name=:firstCat or {category}.Name=:secondCat)" |