The AbstractLazyInitializer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
AbstractLazyInitializer |
Create a LazyInitializer to handle all of the Methods/Properties that are called
on the Proxy.
|
Methods
Name | Description | |
---|---|---|
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.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetImplementation()()()() |
Return the Underlying Persistent Object, initializing if necessary.
| |
GetImplementation(ISessionImplementor) |
Return the Underlying Persistent Object in a given ISession, or null.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize |
Perform an ImmediateLoad of the actual object for the Proxy.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetImplementation | ||
SetSession |
Associate the proxy with the given session.
Care should be given to make certain that the proxy is added to the session's persistence context as well
to maintain the symmetry of the association. That must be done seperately as this method simply sets an
internal reference. We do also check that if there is already an associated session that the proxy
reference was removed from that previous session's persistence context.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnsetSession |
Unset this initializer's reference to session. It is assumed that the caller is also taking care or
cleaning up the owning proxy's reference in the persistence context.
Generally speaking this is intended to be called only during Evict(Object) and
Clear()()()() processing; most other use-cases should call SetSession(ISessionImplementor) instead.
|
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.) |
Fields
Name | Description | |
---|---|---|
InvokeImplementation |
If this is returned by Invoke then the subclass needs to Invoke the
method call against the object that is being proxied.
|
Properties
Name | Description | |
---|---|---|
EntityName | ||
Identifier | ||
IsConnectedToSession | ||
IsReadOnlySettingAvailable |
Is the read-only setting available?
| |
IsUninitialized | ||
PersistentClass | ||
ReadOnly |
Read-only status
| |
Session | ||
Target | ||
Unwrap |