Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.FindByNamedQueryAndValueObject Method

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

[Visual Basic]
Public NotOverridable Sub FindByNamedQueryAndValueObject( _
   ByVal queryName As String, _
   ByVal valueObject As Object _
) _
    Implements IHibernateOperations.FindByNamedQueryAndValueObject
[C#]
public IList FindByNamedQueryAndValueObject(
   string queryName,
   object valueObject
);

Parameters

queryName
The name of a Hibernate query in a mapping file
valueObject
The values of the parameters

Return Value

A List containing 0 or more persistent instances

Implements

IHibernateOperations.FindByNamedQueryAndValueObject

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate Namespace