Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IHibernateOperations.FindByNamedQueryAndNamedParam(String, String, Object, IType) Method

Execute a named query for persistent instances, binding one value to a named parameter in the query string. A named query is defined in a Hibernate mapping file.

[Visual Basic]
Public Sub FindByNamedQueryAndNamedParam( _
   ByVal queryName As String, _
   ByVal paramName As String, _
   ByVal value As Object, _
   ByVal type As IType _
)
[C#]
IList FindByNamedQueryAndNamedParam(
   string queryName,
   string paramName,
   object value,
   IType type
);

Parameters

queryName
The name of a Hibernate query in a mapping file
paramName
Name of the parameter
value
The value of the parameter
type
The Hibernate type of the parameter (or
null
)

Return Value

A List containing 0 or more persistent instances

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

IHibernateOperations Interface | Spring.Data.NHibernate Namespace | IHibernateOperations.FindByNamedQueryAndNamedParam Overload List