| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 6 | 2 | 4 | 0.969 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 6 | 121 | src/NHibernate/Impl/AbstractDetachedQuery.cs |
| 2 | 6 | 143 | src/NHibernate/Impl/AbstractDetachedQuery.cs |
| ||||
public IDetachedQuery SetParameter(string name, object val, Type.IType type)
{
if (string.IsNullOrEmpty(name))
throw new ArgumentNullException("name", "Is null or empty.");
namedParams[name] = new TypedValue(type, val, EntityMode.Poco);
return this ;
}
|
| ||||
public IDetachedQuery SetParameterList(string name, ICollection vals, Type.IType type)
{
if (string.IsNullOrEmpty(name))
throw new ArgumentNullException("name", "Is null or empty.");
namedListParams[name] = new TypedValue(type, vals, EntityMode.Poco);
return this ;
}
|
| |||
public IDetachedQuery [[#variable57f41ee0]](string name, [[#variable57f40e20]] [[#variable57f41de0]], Type.IType type)
{
if (string.IsNullOrEmpty(name))
throw new ArgumentNullException("name", "Is null or empty.");
[[#variable57f41dc0]][name] = new TypedValue(type, [[#variable57f41de0]], EntityMode.Poco);
return this ;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#57f41ee0]] | SetParameter |
| 1 | 2 | [[#57f41ee0]] | SetParameterList |
| 2 | 1 | [[#57f40e20]] | object |
| 2 | 2 | [[#57f40e20]] | ICollection |
| 3 | 1 | [[#57f41de0]] | val |
| 3 | 2 | [[#57f41de0]] | vals |
| 4 | 1 | [[#57f41dc0]] | namedParams |
| 4 | 2 | [[#57f41dc0]] | namedListParams |