The ILazyInitializer type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetImplementation()()()() |
Return the underlying persistent object, initializing if necessary.
| |
GetImplementation(ISessionImplementor) |
Return the underlying persistent object in a given ISession, or null.
| |
Initialize |
Perform an ImmediateLoad of the actual object for the Proxy.
| |
SetImplementation |
Initialize the proxy manually by injecting its target.
| |
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.
| |
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.
|
Properties
Name | Description | |
---|---|---|
EntityName |
The entity-name of the entity our owning proxy represents.
| |
Identifier |
The identifier value for the entity our owning proxy represents.
| |
IsReadOnlySettingAvailable |
Is the read-only setting available?
| |
IsUninitialized |
Is the proxy uninitialzed?
| |
PersistentClass |
Get the actual class of the entity. Generally, EntityName should be used instead.
| |
ReadOnly |
Read-only status
| |
Session |
Get the session to which this proxy is associated, or null if it is not attached.
| |
Unwrap |