Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 3 | 1 | 0.963 | interface_member_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 102 | src/NHibernate/IDetachedQuery.cs |
2 | 19 | 145 | src/NHibernate/IMultiQuery.cs |
3 | 19 | 249 | src/NHibernate/IQuery.cs |
| ||||
/// <summary> /// Bind a value to a named query parameter, guessing the NHibernate <see cref="IType"/> /// from the class of the given object. /// </summary> /// <param name="name">The name of the parameter</param> /// <param name="val">The non-null parameter value</param> IDetachedQuery SetParameter(string name, object val); /// <summary> /// Bind multiple values to a named query parameter. This is useful for binding a list /// of values to an expression such as <c>foo.bar in (:value_list)</c> /// </summary> /// <param name="name">The name of the parameter</param> /// <param name="vals">A collection of values to list</param> /// <param name="type">The Hibernate type of the values</param> IDetachedQuery SetParameterList(string name, ICollection vals, IType type); /// <summary> /// Bind multiple values to a named query parameter, guessing the Hibernate /// type from the class of the first object in the collection. This is useful for binding a list /// of values to an expression such as <c>foo.bar in (:value_list)</c> /// </summary> /// <param name="name">The name of the parameter</param> /// <param name="vals">A collection of values to list</param> IDetachedQuery SetParameterList(string name, ICollection vals); |
| ||||
/// <summary> /// Bind a value to a named query parameter, guessing the NHibernate <see cref="IType"/> /// from the class of the given object. /// </summary> /// <param name="name">The name of the parameter</param> /// <param name="val">The non-null parameter value</param> IMultiQuery SetParameter(string name, object val); /// <summary> /// Bind multiple values to a named query parameter. This is useful for binding a list /// of values to an expression such as <c>foo.bar in (:value_list)</c> /// </summary> /// <param name="name">The name of the parameter</param> /// <param name="vals">A collection of values to list</param> /// <param name="type">The Hibernate type of the values</param> IMultiQuery SetParameterList(string name, ICollection vals, IType type); /// <summary> /// Bind multiple values to a named query parameter, guessing the Hibernate /// type from the class of the first object in the collection. This is useful for binding a list /// of values to an expression such as <c>foo.bar in (:value_list)</c> /// </summary> /// <param name="name">The name of the parameter</param> /// <param name="vals">A collection of values to list</param> IMultiQuery SetParameterList(string name, ICollection vals); |
| ||||
/// <summary> /// Bind a value to a named query parameter, guessing the NHibernate <see cref="IType"/> /// from the class of the given object. /// </summary> /// <param name="name">The name of the parameter</param> /// <param name="val">The non-null parameter value</param> IQuery SetParameter(string name, object val); /// <summary> /// Bind multiple values to a named query parameter. This is useful for binding a list /// of values to an expression such as <c>foo.bar in (:value_list)</c> /// </summary> /// <param name="name">The name of the parameter</param> /// <param name="vals">A collection of values to list</param> /// <param name="type">The Hibernate type of the values</param> IQuery SetParameterList(string name, ICollection vals, IType type); /// <summary> /// Bind multiple values to a named query parameter, guessing the Hibernate /// type from the class of the first object in the collection. This is useful for binding a list /// of values to an expression such as <c>foo.bar in (:value_list)</c> /// </summary> /// <param name="name">The name of the parameter</param> /// <param name="vals">A collection of values to list</param> IQuery SetParameterList(string name, ICollection vals); |
| |||
[[#variable2932e540]]SetParameter(string name, object val); [[#variable2932e540]]SetParameterList(string name, ICollection vals, IType type); [[#variable2932e540]]SetParameterList(string name, ICollection vals); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2932e540]] | /// <summary> /// Bind a value to a named query parameter, guessing the NHibernate <see cref="IType"/> /// from the class of the given object. /// </summary> /// <param name="name">The name of the parameter</param> /// <param name="val">The non-null parameter value</param> IQuery |
1 | 2 | [[#2932e540]] | /// <summary> /// Bind a value to a named query parameter, guessing the NHibernate <see cref="IType"/> /// from the class of the given object. /// </summary> /// <param name="name">The name of the parameter</param> /// <param name="val">The non-null parameter value</param> IMultiQuery |
1 | 3 | [[#2932e540]] | /// <summary> /// Bind a value to a named query parameter, guessing the NHibernate <see cref="IType"/> /// from the class of the given object. /// </summary> /// <param name="name">The name of the parameter</param> /// <param name="val">The non-null parameter value</param> IDetachedQuery |