The DefaultLoadEventListener type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| DoLoad |
Coordinates the efforts to load a given entity. First, an attempt is
made to load the entity from the session-level cache. If not found there,
an attempt is made to locate it in second-level cache. Lastly, an
attempt is made to load it directly from the datasource.
| |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetEntityPersister | ||
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Load | Perfoms the load of an entity. | |
| LoadFromDatasource |
Performs the process of loading an entity from the configured underlying datasource.
| |
| LoadFromSecondLevelCache | Attempts to load the entity from the second-level cache. | |
| LoadFromSessionCache |
Attempts to locate the entity in the session-level cache.
| |
| LockAndLoad |
If the class to be loaded has been configured with a cache, then lock
given id in that cache and then perform the load.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnLoad | ||
| ProxyOrLoad |
Based on configured options, will either return a pre-existing proxy,
generate a new proxy, or perform an actual load.
| |
| Reassociate |
Associates a given entity (either transient or associated with another session) to the given session.
(Inherited from AbstractReassociateEventListener.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| UpgradeLock |
Performs a pessimistic lock upgrade on a given entity, if needed.
(Inherited from AbstractLockUpgradeEventListener.) |
Extension Methods
| Name | Description | |
|---|---|---|
| As<(Of <<'(T>)>>) | (Defined by TypeHelperExtensionMethods.) | |
| IsBetween |
Apply a "between" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
| IsIn(array<Object>[]()[][]) | Overloaded.
Apply an "in" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
| IsIn(ICollection) | Overloaded.
Apply an "in" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
| IsProxy | (Defined by NHibernateProxyHelper.) | |
| ToTypeParameters | (Defined by ReflectHelper.) |