Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.Contains Method

Determines whether the given object is in the Session cache.

[Visual Basic]
Public NotOverridable Sub Contains( _
   ByVal entity As Object _
) _
    Implements ICommonHibernateOperations.Contains
[C#]
public bool Contains(
   object entity
);

Parameters

entity
the persistence instance to check.

Return Value

true if session cache contains the specified entity; otherwise, false.

Implements

ICommonHibernateOperations.Contains

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate Namespace