Property | Type | Description | |
---|---|---|---|
NoRow | object |
Method | Description | |
---|---|---|
AddChildParent ( object child, object parent ) : void | ||
AddCollectionHolder ( IPersistentCollection holder ) : void |
Register a PersistentCollection object for an array. Associates a holder with an array - MUST be called after loading array, since the array instance is not created until endLoad().
|
|
AddEntity ( object entity, Status status, object loadedState, NHibernate.Engine.EntityKey entityKey, object version, LockMode lockMode, bool existsInDatabase, IEntityPersister persister, bool disableVersionIncrement, bool lazyPropertiesAreUnfetched ) : EntityEntry |
Adds an entity to the internal caches.
|
|
AddEntity ( NHibernate.Engine.EntityKey key, object entity ) : void |
Add a canonical mapping from entity key to entity instance
|
|
AddEntity ( NHibernate.Engine.EntityUniqueKey euk, object entity ) : void |
Add an entity to the cache by unique key
|
|
AddEntry ( object entity, Status status, object loadedState, object rowId, object id, object version, LockMode lockMode, bool existsInDatabase, IEntityPersister persister, bool disableVersionIncrement, bool lazyPropertiesAreUnfetched ) : EntityEntry |
Generates an appropriate EntityEntry instance and adds it to the event source's internal caches.
|
|
AddInitializedCollection ( ICollectionPersister persister, IPersistentCollection collection, object id ) : CollectionEntry |
add a collection we just pulled out of the cache (does not need initializing)
|
|
AddInitializedDetachedCollection ( ICollectionPersister collectionPersister, IPersistentCollection collection ) : void |
add an (initialized) collection that was created by another session and passed into update() (ie. one with a snapshot and existing state on the database)
|
|
AddNewCollection ( ICollectionPersister persister, IPersistentCollection collection ) : void |
Add a new collection (ie. a newly created one, just instantiated by the application, with no database state or snapshot)
|
|
AddNonLazyCollection ( IPersistentCollection collection ) : void |
Register a collection for non-lazy loading at the end of the two-phase load
|
|
AddNullProperty ( NHibernate.Engine.EntityKey ownerKey, string propertyName ) : void |
Record the fact that the association belonging to the keyed entity is null.
|
|
AddProxy ( NHibernate.Engine.EntityKey key, INHibernateProxy proxy ) : void |
Add a proxy to the session cache
|
|
AddUninitializedCollection ( ICollectionPersister persister, IPersistentCollection collection, object id ) : void |
add a collection we just loaded up (still needs initializing)
|
|
AddUninitializedDetachedCollection ( ICollectionPersister persister, IPersistentCollection collection ) : void |
add a detached uninitialized collection
|
|
AddUnownedCollection ( CollectionKey key, IPersistentCollection collection ) : void |
Add a collection which has no owner loaded
|
|
AfterLoad ( ) : void |
Call this after finishing a two-phase load
|
|
AfterTransactionCompletion ( ) : void |
Called after transactions end
|
|
BeforeLoad ( ) : void |
Call this before begining a two-phase load
|
|
CheckUniqueness ( EntityKey key, object obj ) : void |
Attempts to check whether the given key represents an entity already loaded within the current session.
|
|
Clear ( ) : void |
Clear the state of the persistence context
|
|
ContainsCollection ( IPersistentCollection collection ) : bool |
Is the given collection associated with this persistence context?
|
|
ContainsEntity ( EntityKey key ) : bool |
Is there an entity with the given key in the persistence context
|
|
ContainsProxy ( INHibernateProxy proxy ) : bool |
Is the given proxy associated with this persistence context?
|
|
DecrementCascadeLevel ( ) : int |
Called after cascading
|
|
GetCachedDatabaseSnapshot ( EntityKey key ) : object[] |
Retrieve the cached database snapshot for the requested entity key.
|
|
GetCollection ( CollectionKey collectionKey ) : IPersistentCollection |
Get the collection instance associated with the CollectionKey
|
|
GetCollectionEntry ( IPersistentCollection coll ) : CollectionEntry |
Get the collection entry for a persistent collection
|
|
GetCollectionEntryOrNull ( object collection ) : CollectionEntry |
Get the collection entry for a collection passed to filter, which might be a collection wrapper, an array, or an unwrapped collection. Return null if there is no entry.
|
|
GetCollectionHolder ( object array ) : IPersistentCollection |
Get the PersistentCollection object for an array
|
|
GetCollectionOwner ( object key, ICollectionPersister collectionPersister ) : object |
Get the entity that owns this persistent collection
|
|
GetDatabaseSnapshot ( object id, IEntityPersister persister ) : object[] |
Get the current state of the entity as known to the underlying database, or null if there is no corresponding row
|
|
GetEntity ( EntityKey key ) : object |
Get the entity instance associated with the given EntityKey
|
|
GetEntity ( EntityUniqueKey euk ) : object |
Get an entity cached by unique key
|
|
GetEntry ( object entity ) : EntityEntry |
Retrieve the EntityEntry representation of the given entity.
|
|
GetIndexInOwner ( string entity, string property, object childEntity, IDictionary mergeMap ) : object |
Search the persistence context for an index of the child object, given a collection role
|
|
GetLoadedCollectionOwnerIdOrNull ( IPersistentCollection collection ) : object |
Get the ID for the entity that owned this persistent collection when it was loaded
|
|
GetLoadedCollectionOwnerOrNull ( IPersistentCollection collection ) : object |
Get the entity that owned this persistent collection when it was loaded
|
|
GetNaturalIdSnapshot ( object id, IEntityPersister persister ) : object[] |
Get the values of the natural id fields as known to the underlying database, or null if the entity has no natural id or there is no corresponding row.
|
|
GetOwnerId ( string entityName, string propertyName, object childEntity, IDictionary mergeMap ) : object |
Search the persistence context for an owner for the child object, given a collection role
|
|
GetProxy ( EntityKey key ) : object |
Get an existing proxy by key
|
|
GetSnapshot ( IPersistentCollection coll ) : object |
Get the snapshot of the pre-flush collection state
|
|
IncrementCascadeLevel ( ) : int |
Called before cascading
|
|
InitializeNonLazyCollections ( ) : void |
Force initialization of all non-lazy collections encountered during the current two-phase load (actually, this is a no-op, unless this is the "outermost" load)
|
|
IsEntryFor ( object entity ) : bool |
Is there an EntityEntry for this instance?
|
|
IsPropertyNull ( EntityKey ownerKey, string propertyName ) : bool |
Is the association property belonging to the keyed entity null?
|
|
IsReadOnly ( object entityOrProxy ) : bool | ||
NarrowProxy ( INHibernateProxy proxy, IEntityPersister persister, EntityKey key, object obj ) : object |
If the existing proxy is insufficiently "narrow" (derived), instantiate a new proxy and overwrite the registration of the old one. This breaks == and occurs only for "class" proxies rather than "interface" proxies. Also init the proxy to point to the given target implementation if necessary.
|
|
ProxyFor ( IEntityPersister persister, EntityKey key, object impl ) : object |
Return the existing proxy associated with the given EntityKey, or the third argument (the entity associated with the key) if no proxy exists. Init the proxy to the target implementation, if necessary.
|
|
ProxyFor ( object impl ) : object |
Return the existing proxy associated with the given EntityKey, or the argument (the entity associated with the key) if no proxy exists. (slower than the form above)
|
|
ReassociateIfUninitializedProxy ( object value ) : bool |
Takes the given object and, if it represents a proxy, reassociates it with this event source.
|
|
ReassociateProxy ( object value, object id ) : void |
If a deleted entity instance is re-saved, and it has a proxy, we need to reset the identifier of the proxy
|
|
RemoveChildParent ( object child ) : void | ||
RemoveCollectionHolder ( object array ) : IPersistentCollection |
Remove the mapping of collection to holder during eviction of the owning entity
|
|
RemoveEntity ( EntityKey key ) : object |
Remove an entity from the session cache, also clear up other state associated with the entity, all except for the EntityEntry
|
|
RemoveEntry ( object entity ) : EntityEntry |
Remove an entity entry from the session cache
|
|
RemoveProxy ( EntityKey key ) : object |
Remove a proxy from the session cache
|
|
ReplaceDelayedEntityIdentityInsertKeys ( EntityKey oldKey, object generatedId ) : void | ||
SetEntryStatus ( EntityEntry entry, Status status ) : void |
Set the status of an entry
|
|
SetReadOnly ( object entityOrProxy, bool readOnly ) : void | ||
StatefulPersistenceContext ( ISessionImplementor session ) : System |
Constructs a PersistentContext, bound to the given session.
|
|
ToString ( ) : string | ||
Unproxy ( object maybeProxy ) : object |
Get the entity instance underlying the given proxy, throwing an exception if the proxy is uninitialized. If the given object is not a proxy, simply return the argument.
|
|
UnproxyAndReassociate ( object maybeProxy ) : object |
Possibly unproxy the given reference and reassociate it with the current session.
|
|
UseUnownedCollection ( CollectionKey key ) : IPersistentCollection |
Get and remove a collection whose owner is not yet loaded, when its owner is being loaded
|
Method | Description | |
---|---|---|
AddCollection ( IPersistentCollection coll, CollectionEntry entry, object key ) : void |
Add an collection to the cache, with a given collection entry.
|
|
AddCollection ( IPersistentCollection collection, ICollectionPersister persister ) : void |
Add a collection to the cache, creating a new collection entry for it
|
|
ClearNullProperties ( ) : void | ||
GetIndexInParent ( string property, object childEntity, IEntityPersister persister, ICollectionPersister collectionPersister, object potentialParent ) : object | ||
GetLoadedCollectionOwnerIdOrNull ( CollectionEntry ce ) : object |
Get the ID for the entity that owned this persistent collection when it was loaded
|
|
IDeserializationCallback ( object sender ) : void | ||
ISerializable ( SerializationInfo info, StreamingContext context ) : void | ||
InitTransientState ( ) : void | ||
IsFoundInParent ( string property, object childEntity, IEntityPersister persister, ICollectionPersister collectionPersister, object potentialParent ) : bool | ||
ReassociateProxy ( ILazyInitializer li, INHibernateProxy proxy ) : void |
Associate a proxy that was instantiated by another session with this session
|
|
SetEntityReadOnly ( object entity, bool readOnly ) : void | ||
SetHasNonReadOnlyEnties ( Status value ) : void | ||
SetProxyReadOnly ( INHibernateProxy proxy, bool readOnly ) : void | ||
SetSession ( ISessionImplementor session ) : void | ||
StatefulPersistenceContext ( SerializationInfo info, StreamingContext context ) : System |
public AddChildParent ( object child, object parent ) : void | ||
child | object | |
parent | object | |
return | void |
public AddCollectionHolder ( IPersistentCollection holder ) : void | ||
holder | IPersistentCollection | |
return | void |
public AddEntity ( object entity, Status status, object loadedState, NHibernate.Engine.EntityKey entityKey, object version, LockMode lockMode, bool existsInDatabase, IEntityPersister persister, bool disableVersionIncrement, bool lazyPropertiesAreUnfetched ) : EntityEntry | ||
entity | object | |
status | Status | |
loadedState | object | |
entityKey | NHibernate.Engine.EntityKey | |
version | object | |
lockMode | LockMode | |
existsInDatabase | bool | |
persister | IEntityPersister | |
disableVersionIncrement | bool | |
lazyPropertiesAreUnfetched | bool | |
return | EntityEntry |
public AddEntity ( NHibernate.Engine.EntityKey key, object entity ) : void | ||
key | NHibernate.Engine.EntityKey | |
entity | object | |
return | void |
public AddEntity ( NHibernate.Engine.EntityUniqueKey euk, object entity ) : void | ||
euk | NHibernate.Engine.EntityUniqueKey | |
entity | object | |
return | void |
public AddEntry ( object entity, Status status, object loadedState, object rowId, object id, object version, LockMode lockMode, bool existsInDatabase, IEntityPersister persister, bool disableVersionIncrement, bool lazyPropertiesAreUnfetched ) : EntityEntry | ||
entity | object | |
status | Status | |
loadedState | object | |
rowId | object | |
id | object | |
version | object | |
lockMode | LockMode | |
existsInDatabase | bool | |
persister | IEntityPersister | |
disableVersionIncrement | bool | |
lazyPropertiesAreUnfetched | bool | |
return | EntityEntry |
public AddInitializedCollection ( ICollectionPersister persister, IPersistentCollection collection, object id ) : CollectionEntry | ||
persister | ICollectionPersister | |
collection | IPersistentCollection | |
id | object | |
return | CollectionEntry |
public AddInitializedDetachedCollection ( ICollectionPersister collectionPersister, IPersistentCollection collection ) : void | ||
collectionPersister | ICollectionPersister | |
collection | IPersistentCollection | |
return | void |
public AddNewCollection ( ICollectionPersister persister, IPersistentCollection collection ) : void | ||
persister | ICollectionPersister | |
collection | IPersistentCollection | The collection to be associated with the persistence context |
return | void |
public AddNonLazyCollection ( IPersistentCollection collection ) : void | ||
collection | IPersistentCollection | |
return | void |
public AddNullProperty ( NHibernate.Engine.EntityKey ownerKey, string propertyName ) : void | ||
ownerKey | NHibernate.Engine.EntityKey | |
propertyName | string | |
return | void |
public AddProxy ( NHibernate.Engine.EntityKey key, INHibernateProxy proxy ) : void | ||
key | NHibernate.Engine.EntityKey | |
proxy | INHibernateProxy | |
return | void |
public AddUninitializedCollection ( ICollectionPersister persister, IPersistentCollection collection, object id ) : void | ||
persister | ICollectionPersister | |
collection | IPersistentCollection | |
id | object | |
return | void |
public AddUninitializedDetachedCollection ( ICollectionPersister persister, IPersistentCollection collection ) : void | ||
persister | ICollectionPersister | |
collection | IPersistentCollection | |
return | void |
public AddUnownedCollection ( CollectionKey key, IPersistentCollection collection ) : void | ||
key | CollectionKey | |
collection | IPersistentCollection | |
return | void |
public CheckUniqueness ( EntityKey key, object obj ) : void | ||
key | EntityKey | The entity key. |
obj | object | The entity reference against which to perform the uniqueness check. |
return | void |
public ContainsCollection ( IPersistentCollection collection ) : bool | ||
collection | IPersistentCollection | |
return | bool |
public ContainsEntity ( EntityKey key ) : bool | ||
key | EntityKey | |
return | bool |
public ContainsProxy ( INHibernateProxy proxy ) : bool | ||
proxy | INHibernateProxy | |
return | bool |
public GetCachedDatabaseSnapshot ( EntityKey key ) : object[] | ||
key | EntityKey | The entity key for which to retrieve the cached snapshot |
return | object[] |
public GetCollection ( CollectionKey collectionKey ) : IPersistentCollection | ||
collectionKey | CollectionKey | |
return | IPersistentCollection |
public GetCollectionEntry ( IPersistentCollection coll ) : CollectionEntry | ||
coll | IPersistentCollection | |
return | CollectionEntry |
public GetCollectionEntryOrNull ( object collection ) : CollectionEntry | ||
collection | object | |
return | CollectionEntry |
public GetCollectionHolder ( object array ) : IPersistentCollection | ||
array | object | |
return | IPersistentCollection |
public GetCollectionOwner ( object key, ICollectionPersister collectionPersister ) : object | ||
key | object | |
collectionPersister | ICollectionPersister | |
return | object |
public GetDatabaseSnapshot ( object id, IEntityPersister persister ) : object[] | ||
id | object | |
persister | IEntityPersister | |
return | object[] |
public GetEntity ( EntityUniqueKey euk ) : object | ||
euk | EntityUniqueKey | |
return | object |
public GetEntry ( object entity ) : EntityEntry | ||
entity | object | The entity for which to locate the EntityEntry. |
return | EntityEntry |
public GetIndexInOwner ( string entity, string property, object childEntity, IDictionary mergeMap ) : object | ||
entity | string | |
property | string | |
childEntity | object | |
mergeMap | IDictionary | |
return | object |
public GetLoadedCollectionOwnerIdOrNull ( IPersistentCollection collection ) : object | ||
collection | IPersistentCollection | The persistent collection |
return | object |
public GetLoadedCollectionOwnerOrNull ( IPersistentCollection collection ) : object | ||
collection | IPersistentCollection | The persistent collection |
return | object |
public GetNaturalIdSnapshot ( object id, IEntityPersister persister ) : object[] | ||
id | object | |
persister | IEntityPersister | |
return | object[] |
public GetOwnerId ( string entityName, string propertyName, object childEntity, IDictionary mergeMap ) : object | ||
entityName | string | |
propertyName | string | |
childEntity | object | |
mergeMap | IDictionary | |
return | object |
public GetSnapshot ( IPersistentCollection coll ) : object | ||
coll | IPersistentCollection | |
return | object |
public InitializeNonLazyCollections ( ) : void | ||
return | void |
public IsPropertyNull ( EntityKey ownerKey, string propertyName ) : bool | ||
ownerKey | EntityKey | |
propertyName | string | |
return | bool |
public IsReadOnly ( object entityOrProxy ) : bool | ||
entityOrProxy | object | |
return | bool |
public NarrowProxy ( INHibernateProxy proxy, IEntityPersister persister, EntityKey key, object obj ) : object | ||
proxy | INHibernateProxy | The proxy instance to be narrowed. |
persister | IEntityPersister | The persister for the proxied entity. |
key | EntityKey | The internal cache key for the proxied entity. |
obj | object | (optional) the actual proxied entity instance. |
return | object |
public ProxyFor ( IEntityPersister persister, EntityKey key, object impl ) : object | ||
persister | IEntityPersister | |
key | EntityKey | |
impl | object | |
return | object |
public ReassociateIfUninitializedProxy ( object value ) : bool | ||
value | object | The possible proxy to be reassociated. |
return | bool |
public ReassociateProxy ( object value, object id ) : void | ||
value | object | |
id | object | |
return | void |
public RemoveChildParent ( object child ) : void | ||
child | object | |
return | void |
public RemoveCollectionHolder ( object array ) : IPersistentCollection | ||
array | object | |
return | IPersistentCollection |
public RemoveEntity ( EntityKey key ) : object | ||
key | EntityKey | |
return | object |
public RemoveEntry ( object entity ) : EntityEntry | ||
entity | object | |
return | EntityEntry |
public RemoveProxy ( EntityKey key ) : object | ||
key | EntityKey | |
return | object |
public ReplaceDelayedEntityIdentityInsertKeys ( EntityKey oldKey, object generatedId ) : void | ||
oldKey | EntityKey | |
generatedId | object | |
return | void |
public SetEntryStatus ( EntityEntry entry, Status status ) : void | ||
entry | EntityEntry | |
status | Status | |
return | void |
public SetReadOnly ( object entityOrProxy, bool readOnly ) : void | ||
entityOrProxy | object | |
readOnly | bool | |
return | void |
public StatefulPersistenceContext ( ISessionImplementor session ) : System | ||
session | ISessionImplementor | The session "owning" this context. |
return | System |
public Unproxy ( object maybeProxy ) : object | ||
maybeProxy | object | |
return | object |
public UnproxyAndReassociate ( object maybeProxy ) : object | ||
maybeProxy | object | The reference to be unproxied if it currently represents a proxy. |
return | object |
public UseUnownedCollection ( CollectionKey key ) : IPersistentCollection | ||
key | CollectionKey | |
return | IPersistentCollection |