The IPersistentCollection type exposes the following members.

Methods

  NameDescription
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
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
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.
UnsetSession
Disassociate this collection from the given session.

See Also