| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 2 | 0.957 | statement_list[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 64 | src/NHibernate/Hql/Ast/ANTLR/Loader/QueryLoader.cs |
| 2 | 7 | 105 | src/NHibernate/Loader/Criteria/CriteriaLoader.cs |
| ||||
if (lockModes == null || lockModes.Count == 0)
{
return sql;
}
// can't cache this stuff either (per-invocation)
// we are given a map of user-alias -> lock mode
// create a new map of sql-alias -> lock mode
var aliasedLockModes = new Dictionary<string, LockMode> ();
Dictionary<string, string[]> keyColumnNames = dialect.ForUpdateOfColumns ? new Dictionary<string, string[]> (): null;
|
| ||||
if (lockModes == null || lockModes.Count == 0)
{
return sqlSelectString;
}
Dictionary<string, LockMode> aliasedLockModes = new Dictionary<string, LockMode> ();
Dictionary<string, string[]> keyColumnNames = dialect.ForUpdateOfColumns ? new Dictionary<string, string[]> (): null;
|
| |||
if (lockModes == null || lockModes.Count == 0)
{
return [[#variable5f4f0ce0]];
}
[[#variable29369f80]]aliasedLockModes = new Dictionary<string, LockMode> ();
Dictionary<string, string[]> keyColumnNames = dialect.ForUpdateOfColumns ?
new Dictionary<string, string[]> (): null;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5f4f0ce0]] | sqlSelectString |
| 1 | 2 | [[#5f4f0ce0]] | sql |
| 2 | 1 | [[#29369f80]] | Dictionary<string, LockMode> |
| 2 | 2 | [[#29369f80]] | // can't cache this stuff either (per-invocation) // we are given a map of user-alias -> lock mode // create a new map of sql-alias -> lock mode var |