Some applications need to create criteria queries in "detached
mode", where the Hibernate session is not available. This class
may be instantiated anywhere, and then a ICriteria
may be obtained by passing a session to
GetExecutableCriteria(). All methods have the
same semantics and behavior as the corresponding methods of the
ICriteria interface.
The following tables list the members exposed by the DetachedCriteria type.
Public Methods
| Name | Description | |
|---|---|---|
| Add | ||
| AddOrder | ||
| CreateAlias | Overloaded. | |
| CreateCriteria | Overloaded. | |
| For | Overloaded. | |
| GetExecutableCriteria |
Get an executable instance of Criteria,
to actually run the query. | |
| SetFetchMode | ||
| SetProjection | ||
| SetResultTransformer | ||
| ToString | (Overrides .ToString().) |
Protected Methods
| Name | Description | |
|---|---|---|
| GetCriteriaImpl |
Protected Constructors
| Name | Description | |
|---|---|---|
| DetachedCriteriaNew | Overloaded. |
Public Properties
| Name | Description | |
|---|---|---|
| Alias |