Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 3 | 0.976 | statement_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 23 | src/NHibernate/Persister/Collection/NamedQueryCollectionInitializer.cs |
2 | 6 | 26 | src/NHibernate/Persister/Entity/NamedQueryLoader.cs |
| ||||
if (log.IsDebugEnabled) { log.Debug(string.Format("initializing collection: {0} using named query: {1}", persister.Role, queryName)); } //TODO: is there a more elegant way than downcasting? AbstractQueryImpl query = (AbstractQueryImpl) session.GetNamedSQLQuery(queryName); |
| ||||
if (log.IsDebugEnabled) { log.Debug(string.Format("loading entity: {0} using named query: {1}", persister.EntityName, queryName)); } AbstractQueryImpl query = (AbstractQueryImpl) session.GetNamedQuery(queryName); |
| |||
if (log.IsDebugEnabled) { log.Debug(string.Format( [[#variable28abbc20]], persister. [[#variable289cd520]], queryName)); } //TODO: is there a more elegant way than downcasting? AbstractQueryImpl query = (AbstractQueryImpl)session. [[#variable289a4ca0]](queryName); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#28abbc20]] | "loading entity: {0} using named query: {1}" |
1 | 2 | [[#28abbc20]] | "initializing collection: {0} using named query: {1}" |
2 | 1 | [[#289cd520]] | EntityName |
2 | 2 | [[#289cd520]] | Role |
3 | 1 | [[#289a4ca0]] | GetNamedQuery |
3 | 2 | [[#289a4ca0]] | GetNamedSQLQuery |