Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.Find(String, Object) Method

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

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

Parameters

queryString
a query expressed in Hibernate's query language
values
the values of the parameters

Return Value

a List containing 0 or more persistent instances

Implements

IHibernateOperations.Find

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

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