The IPersistentCollection type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | AfterInitialize |
Called after initializing from cache
|
![]() | 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 |
Clear the dirty flag, after flushing changes
to the database.
|
![]() | Dirty |
Mark the collection as dirty
|
![]() | Disassemble |
Disassemble the collection, ready for the cache
|
![]() | EndRead |
Called after reading all rows from the IDataReader |
![]() | Entries |
Iterate all collection entries, during update of the database
|
![]() | EntryExists |
Does an element exist at this entry in the collection?
|
![]() | EqualsSnapshot |
Does the current state exactly match the snapshot?
|
![]() | ForceInitialization |
To be called internally by the session, forcing
immediate initalization.
|
![]() | GetDeletes |
Get all the elements that need deleting
|
![]() | GetElement |
Get the value of the given collection entry
|
![]() | GetIdentifier |
Get the identifier of the given collection entry
|
![]() | GetIndex |
Get the index of the given collection entry
|
![]() | GetOrphans |
Get all "orphaned" elements
|
![]() | GetQueuedOrphans | Get the "queued" orphans |
![]() | GetSnapshot |
Return a new snapshot of the current state of the collection
|
![]() | GetSnapshotElement |
Get the snapshot value of the given collection entry
|
![]() | GetValue |
Return the user-visible collection (or array) instance
|
![]() | InitializeFromCache |
Read the state of the collection from a disassembled cached value.
|
![]() | IsSnapshotEmpty | Is the snapshot empty? |
![]() | IsWrapper |
Is this the wrapper for the given underlying collection instance?
|
![]() | 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?
|
![]() | PostAction |
Clears out any Queued Additions.
|
![]() | PreInsert |
Called before inserting rows, to ensure that any surrogate keys are fully generated
|
![]() | ReadFrom |
Reads the row from the IDataReader.
|
![]() | SetCurrentSession |
Associate the collection with the given session.
|
![]() | SetSnapshot | After flushing, re-init snapshot state. |
![]() | UnsetSession |
Disassociate this collection from the given session.
|
Properties
Name | Description | |
---|---|---|
![]() | Empty |
Is the initialized collection empty?
|
![]() | HasQueuedOperations | |
![]() | IsDirectlyAccessible |
Gets a Boolean indicating if the underlying collection is directly
accessible through code.
|
![]() | IsDirty |
Is the collection dirty? Note that this is only
reliable during the flush cycle, after the
collection elements are dirty checked against
the snapshot.
|
![]() | IsUnreferenced | Is the collection unreferenced? |
![]() | Key | Get the current collection key value |
![]() | Owner |
The owning entity.
|
![]() | QueuedAdditionIterator | |
![]() | Role | Get the current role name |
![]() | RowUpdatePossible | |
![]() | StoredSnapshot | Get the snapshot cached by the collection instance |
![]() | WasInitialized |