The AbstractPersistentCollection type exposes the following members.

Constructors

  NameDescription
Protected methodAbstractPersistentCollection()()()()
Not called by Hibernate, but used by non-NET serialization, eg. SOAP libraries.
Protected methodAbstractPersistentCollection(ISessionImplementor)
Initializes a new instance of the AbstractPersistentCollection class

Methods

  NameDescription
Public methodAfterInitialize
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
Public methodDirty
Public methodDisassemble
Disassemble the collection, ready for the cache
Public methodEndRead
Called after reading all rows from the IDataReader
Public methodEntries
Public methodEntryExists
Does an element exist at this entry in the collection?
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodEqualsSnapshot
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodForceInitialization
To be called internally by the session, forcing immediate initalization.
Public methodGetDeletes
Get all the elements that need deleting
Public methodGetElement
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetIdentifier
Public methodGetIndex
Get the index of the given collection entry
Public methodGetOrphans(Object, String)
Get all "orphaned" elements
Protected methodGetOrphans(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
Public methodGetQueuedOrphans
Protected methodGetSnapshot()()()()
Gets the Snapshot from the current session the collection is in.
Public methodGetSnapshot(ICollectionPersister)
Public methodGetSnapshotElement
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Return the user-visible collection (or array) instance
Public methodIdentityRemove
Protected methodInitialize
Initialize the collection, if possible, wrapping any exceptions in a runtime exception
Public methodInitializeFromCache
Read the state of the collection from a disassembled cached value.
Public methodIsSnapshotEmpty
Public methodIsWrapper
Is this the wrapper for the given underlying collection instance?
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
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?
Protected methodPerformQueuedOperations
After reading all existing elements from the database, add the queued elements to the underlying collection.
Public methodPostAction
Clears out any Queued operation.
Public methodPreInsert
Called before inserting rows, to ensure that any surrogate keys are fully generated
Protected methodQueueOperation
Queue an addition, delete etc. if the persistent collection supports it
Public methodRead
Called by any read-only method of the collection interface
Protected methodReadElementByIndex
Protected methodReadElementExistence
Public methodReadFrom
Reads the row from the IDataReader.
Protected methodReadIndexExistence
Protected methodReadSize
Called by the Count property
Public methodSetCurrentSession
Associate the collection with the given session.
Protected methodSetInitialized
Mark the collection as initialized.
Public methodSetSnapshot
Protected methodThrowLazyInitializationException
Protected methodThrowLazyInitializationExceptionIfNotConnected
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnsetSession
Disassociate this collection from the given session.
Protected methodWrite
Called by any writer method of the collection interface

Extension Methods

  NameDescription
Public Extension MethodAs<(Of <<'(T>)>>) (Defined by TypeHelperExtensionMethods.)
Public Extension MethodIsBetween
Apply a "between" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsIn(array<Object>[]()[][])Overloaded.
Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsIn(ICollection)Overloaded.
Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsProxy (Defined by NHibernateProxyHelper.)
Public Extension MethodToTypeParameters (Defined by ReflectHelper.)

Fields

  NameDescription
Protected fieldStatic memberNotFound
Protected fieldStatic memberUnknown

Properties

  NameDescription
Protected propertyCachedSize
Protected propertyClearQueueEnabled
Is this collection in a state that would allow us to "queue" clear? This is a special case, because of orphan delete.
Public propertyEmpty
Is the initialized collection empty?
Public propertyHasQueuedOperations
Does this instance have any "queued" additions?
Protected propertyInverseCollectionNoOrphanDelete
Is this the "inverse" end of a bidirectional association with no orphan delete enabled?
Protected propertyInverseOneToManyOrNoOrphanDelete
Is this the "inverse" end of a bidirectional one-to-many, or of a collection with no orphan delete?
Protected propertyIsConnectedToSession
Is the collection currently connected to an open session?
Public propertyIsDirectlyAccessible
Gets a Boolean indicating if the underlying collection is directly accessible through code.
Public propertyIsDirty
Protected propertyIsInverseCollection
Is this the "inverse" end of a bidirectional association?
Protected propertyIsOperationQueueEnabled
Is this collection in a state that would allow us to "queue" additions?
Public propertyIsUnreferenced
Public propertyKey
Public propertyOwner
Protected propertyPutQueueEnabled
Is this collection in a state that would allow us to "queue" puts? This is a special case, because of orphan delete.
Public propertyQueuedAdditionIterator
Public propertyRole
Public propertyRowUpdatePossible
Protected propertySession
Public propertyStoredSnapshot
Public propertyWasInitialized
Is this instance initialized?

See Also