The IPersistentCollection type exposes the following members.

Methods

  NameDescription
Public methodAfterInitialize
Called after initializing from cache
Public methodAfterRowInsert
Called after inserting a row, to fetch the natively generated id
Public methodBeforeInitialize
Called before any elements are read into the collection, allowing appropriate initializations to occur.
Public methodBeginRead
Called just before reading any rows from the IDataReader
Public methodClearDirty
Clear the dirty flag, after flushing changes to the database.
Public methodDirty
Mark the collection as dirty
Public methodDisassemble
Disassemble the collection, ready for the cache
Public methodEndRead
Called after reading all rows from the IDataReader
Public methodEntries
Iterate all collection entries, during update of the database
Public methodEntryExists
Does an element exist at this entry in the collection?
Public methodEqualsSnapshot
Does the current state exactly match the snapshot?
Public methodForceInitialization
To be called internally by the session, forcing immediate initalization.
Public methodGetDeletes
Get all the elements that need deleting
Public methodGetElement
Get the value of the given collection entry
Public methodGetIdentifier
Get the identifier of the given collection entry
Public methodGetIndex
Get the index of the given collection entry
Public methodGetOrphans
Get all "orphaned" elements
Public methodGetQueuedOrphans
Get the "queued" orphans
Public methodGetSnapshot
Return a new snapshot of the current state of the collection
Public methodGetSnapshotElement
Get the snapshot value of the given collection entry
Public methodGetValue
Return the user-visible collection (or array) instance
Public methodInitializeFromCache
Read the state of the collection from a disassembled cached value.
Public methodIsSnapshotEmpty
Is the snapshot empty?
Public methodIsWrapper
Is this the wrapper for the given underlying collection instance?
Public methodNeedsInserting
Do we need to insert this element?
Public methodNeedsRecreate
Gets a Boolean indicating if the rows for this collection need to be recreated in the table.
Public methodNeedsUpdating
Do we need to update this element?
Public methodPostAction
Clears out any Queued Additions.
Public methodPreInsert
Called before inserting rows, to ensure that any surrogate keys are fully generated
Public methodReadFrom
Reads the row from the IDataReader.
Public methodSetCurrentSession
Associate the collection with the given session.
Public methodSetSnapshot
After flushing, re-init snapshot state.
Public methodUnsetSession
Disassociate this collection from the given session.

Properties

  NameDescription
Public propertyEmpty
Is the initialized collection empty?
Public propertyHasQueuedOperations
Public propertyIsDirectlyAccessible
Gets a Boolean indicating if the underlying collection is directly accessible through code.
Public propertyIsDirty
Is the collection dirty? Note that this is only reliable during the flush cycle, after the collection elements are dirty checked against the snapshot.
Public propertyIsUnreferenced
Is the collection unreferenced?
Public propertyKey
Get the current collection key value
Public propertyOwner
The owning entity.
Public propertyQueuedAdditionIterator
Public propertyRole
Get the current role name
Public propertyRowUpdatePossible
Public propertyStoredSnapshot
Get the snapshot cached by the collection instance
Public propertyWasInitialized

See Also