Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

FilterDefinitionFactoryObject Class

Convenient FactoryObject for defining Hibernate FilterDefinitions. Exposes a corresponding Hibernate FilterDefinition object.

For a list of all members of this type, see FilterDefinitionFactoryObject Members .


[Visual Basic]
Public Class FilterDefinitionFactoryObject
    Implements IFactoryObject, IObjectNameAware, IInitializingObject
public class FilterDefinitionFactoryObject : IFactoryObject, IObjectNameAware, IInitializingObject

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


Typically defined as an inner object within a LocalSessionFactoryObject definition, as the list element for the "filterDefinitions" object property. For example:

 <objectn id="sessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate"> ... <property name="FilterDefinitions"> <list> <object type="Spring.Data.NHibernate.FilterDefinitionFactoryObject, Spring.Data.NHibernate"> <property name="FilterName" value="myFilter"/> <property name="ParameterTypes"> <props> <prop key="MyParam">string</prop> <prop key="MyOtherParam">long</prop> </props> </property> </object> </list> </property> ... </object> 

Alternatively, specify an object id (or name) attribute for the inner object, instead of the "FilterName" property.


Namespace: Spring.Data.NHibernate

Assembly: Spring.Data.NHibernate21 (in Spring.Data.NHibernate21.dll)

See Also

FilterDefinitionFactoryObject Members | Spring.Data.NHibernate Namespace