Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.FindByNamedQueryAndNamedParam(T)(String, String, Object) Method

Execute a named query for persistent instances, binding number of values to named parameters in the query string. A named query is defined in a Hibernate mapping file.

[Visual Basic]
Public NotOverridable Overloads Sub FindByNamedQueryAndNamedParam(Of T)( _
   ByVal queryName As String, _
   ByVal paramNames As String, _
   ByVal values As Object _
) _
    Implements IHibernateOperations.FindByNamedQueryAndNamedParam
[C#]
public IList<T> FindByNamedQueryAndNamedParam<T>(
   string queryName,
   string[] paramNames,
   object[] values
);

Parameters

queryName
The name of a Hibernate query in a mapping file
paramNames
The names of the parameters
values
The values of the parameters.

Return Value

A generic List containing 0 or more persistent instances

Implements

IHibernateOperations.FindByNamedQueryAndNamedParam

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate.Generic Namespace | HibernateTemplate.FindByNamedQueryAndNamedParam(T) Overload List