The AbstractPersistentCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
AbstractPersistentCollection()()()() |
Not called by Hibernate, but used by non-NET serialization, eg. SOAP libraries.
| |
AbstractPersistentCollection(ISessionImplementor) | Initializes a new instance of the AbstractPersistentCollection class |
Methods
Name | Description | |
---|---|---|
AfterInitialize | ||
AfterRowInsert |
Called after inserting a row, to fetch the natively generated id
| |
BeforeInitialize |
Called before any elements are read into the collection,
allowing appropriate initializations to occur.
| |
BeginRead |
Called just before reading any rows from the IDataReader | |
ClearDirty | ||
Dirty | ||
Disassemble |
Disassemble the collection, ready for the cache
| |
EndRead |
Called after reading all rows from the IDataReader | |
Entries | ||
EntryExists |
Does an element exist at this entry in the collection?
| |
Equals | (Inherited from Object.) | |
EqualsSnapshot | ||
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
ForceInitialization |
To be called internally by the session, forcing
immediate initalization.
| |
GetDeletes |
Get all the elements that need deleting
| |
GetElement | ||
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetIdentifier | ||
GetIndex |
Get the index of the given collection entry
| |
GetOrphans(Object, String) |
Get all "orphaned" elements
| |
GetOrphans(ICollection, ICollection, String, ISessionImplementor) |
Given a collection of entity instances that used to
belong to the collection, and a collection of instances
that currently belong, return a collection of orphans
| |
GetQueuedOrphans | ||
GetSnapshot()()()() |
Gets the Snapshot from the current session the collection is in.
| |
GetSnapshot(ICollectionPersister) | ||
GetSnapshotElement | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue |
Return the user-visible collection (or array) instance
| |
IdentityRemove | ||
Initialize |
Initialize the collection, if possible, wrapping any exceptions
in a runtime exception
| |
InitializeFromCache |
Read the state of the collection from a disassembled cached value.
| |
IsSnapshotEmpty | ||
IsWrapper |
Is this the wrapper for the given underlying collection instance?
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NeedsInserting |
Do we need to insert this element?
| |
NeedsRecreate |
Gets a Boolean indicating if the rows for this collection
need to be recreated in the table.
| |
NeedsUpdating |
Do we need to update this element?
| |
PerformQueuedOperations |
After reading all existing elements from the database,
add the queued elements to the underlying collection.
| |
PostAction |
Clears out any Queued operation.
| |
PreInsert |
Called before inserting rows, to ensure that any surrogate keys are fully generated
| |
QueueOperation |
Queue an addition, delete etc. if the persistent collection supports it
| |
Read |
Called by any read-only method of the collection interface
| |
ReadElementByIndex | ||
ReadElementExistence | ||
ReadFrom |
Reads the row from the IDataReader.
| |
ReadIndexExistence | ||
ReadSize | Called by the Count property | |
SetCurrentSession |
Associate the collection with the given session.
| |
SetInitialized |
Mark the collection as initialized.
| |
SetSnapshot | ||
ThrowLazyInitializationException | ||
ThrowLazyInitializationExceptionIfNotConnected | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnsetSession |
Disassociate this collection from the given session.
| |
Write |
Called by any writer method of the collection interface
|
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
Properties
Name | Description | |
---|---|---|
CachedSize | ||
ClearQueueEnabled | Is this collection in a state that would allow us to
"queue" clear? This is a special case, because of orphan
delete.
| |
Empty |
Is the initialized collection empty?
| |
HasQueuedOperations | Does this instance have any "queued" additions? | |
InverseCollectionNoOrphanDelete |
Is this the "inverse" end of a bidirectional association with
no orphan delete enabled?
| |
InverseOneToManyOrNoOrphanDelete |
Is this the "inverse" end of a bidirectional one-to-many, or
of a collection with no orphan delete?
| |
IsConnectedToSession |
Is the collection currently connected to an open session?
| |
IsDirectlyAccessible |
Gets a Boolean indicating if the underlying collection is directly
accessible through code.
| |
IsDirty | ||
IsInverseCollection | Is this the "inverse" end of a bidirectional association? | |
IsOperationQueueEnabled |
Is this collection in a state that would allow us to "queue" additions?
| |
IsUnreferenced | ||
Key | ||
Owner | ||
PutQueueEnabled | Is this collection in a state that would allow us to
"queue" puts? This is a special case, because of orphan
delete.
| |
QueuedAdditionIterator | ||
Role | ||
RowUpdatePossible | ||
Session | ||
StoredSnapshot | ||
WasInitialized | Is this instance initialized? |