Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.FindByNamedParam(String, String, Object, IType) Method

Execute a query for persistent instances, binding a number of values to named parameters in the query string.

[Visual Basic]
Public NotOverridable Overloads Sub FindByNamedParam( _
   ByVal queryString As String, _
   ByVal paramNames As String, _
   ByVal values As Object, _
   ByVal types As IType _
) _
    Implements IHibernateOperations.FindByNamedParam
[C#]
public IList FindByNamedParam(
   string queryString,
   string[] paramNames,
   object[] values,
   IType[] types
);

Parameters

queryString
A query expressed in Hibernate's query language
paramNames
The names of the parameters
values
The values of the parameters
types
Hibernate types of the parameters (or
null
)

Return Value

A List containing 0 or more persistent instances

Implements

IHibernateOperations.FindByNamedParam

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors
ArgumentOutOfRangeException If paramNames length is not equal to values length or if paramNames length is not equal to types length (when types is not null)

See Also

HibernateTemplate Class | Spring.Data.NHibernate Namespace | HibernateTemplate.FindByNamedParam Overload List