Namespaces

Types

Type ICollectionPersister

Namespace NHibernate.Persister.Collection

Methods

Properties

Public instance methods

void DeleteRows(IPersistentCollection collection, object key, ISessionImplementor session)

Delete the persistent state of any elements that were removed from the collection
Parameters
IPersistentCollection collection
object key
ISessionImplementor session

String[] GetElementColumnAliases(string suffix)

Generates the collection's element column aliases, based on the given suffix.
Parameters
return String[] The element column aliases.
string suffix The suffix to use in the element column alias generation.

string GetIdentifierColumnAlias(string suffix)

Generates the collection's identifier column aliases, based on the given suffix.
Parameters
return string The identifier column aliases.
string suffix The suffix to use in the identifier column alias generation.

String[] GetIndexColumnAliases(string suffix)

Generates the collection's index column aliases, based on the given suffix.
Parameters
return String[] The index column aliases, or null if not indexed.
string suffix The suffix to use in the index column alias generation.

String[] GetKeyColumnAliases(string suffix)

Generates the collection's key column aliases, based on the given suffix.
Parameters
return String[] The key column aliases.
string suffix The suffix to use in the key column alias generation.

string GetManyToManyFilterFragment(string alias, IDictionary enabledFilters)

Parameters
return string
string alias
IDictionary enabledFilters

void Initialize(object key, ISessionImplementor session)

Initialize the given collection with the given key
Parameters
object key
ISessionImplementor session

void InsertRows(IPersistentCollection collection, object key, ISessionImplementor session)

Insert the persistent state of any new collection elements
Parameters
IPersistentCollection collection
object key
ISessionImplementor session

bool IsAffectedByEnabledFilters(ISessionImplementor session)

Parameters
return bool
ISessionImplementor session

void PostInstantiate()

object ReadElement(IDataReader rs, object owner, String[] columnAliases, ISessionImplementor session)

Parameters
return object
IDataReader rs
object owner
String[] columnAliases
ISessionImplementor session

object ReadIdentifier(IDataReader rs, string columnAlias, ISessionImplementor session)

Read the identifier from a row of the IDataReader
Parameters
return object
IDataReader rs
string columnAlias
ISessionImplementor session

object ReadIndex(IDataReader rs, String[] columnAliases, ISessionImplementor session)

Parameters
return object
IDataReader rs
String[] columnAliases
ISessionImplementor session

object ReadKey(IDataReader rs, String[] keyAliases, ISessionImplementor session)

Parameters
return object
IDataReader rs
String[] keyAliases
ISessionImplementor session

void Recreate(IPersistentCollection collection, object key, ISessionImplementor session)

(Re)create the collection's persistent state
Parameters
IPersistentCollection collection
object key
ISessionImplementor session

void Remove(object id, ISessionImplementor session)

Completely remove the persistent state of the collection
Parameters
object id
ISessionImplementor session

void UpdateRows(IPersistentCollection collection, object key, ISessionImplementor session)

Update the persistent state of any elements that were modified
Parameters
IPersistentCollection collection
object key
ISessionImplementor session

Public properties

ICacheConcurrencyStrategy Cache get;

Get the cache
return ICacheConcurrencyStrategy

ICollectionMetadata CollectionMetadata get;

return ICollectionMetadata

object CollectionSpace get;

Get the "space" that holds the persistent state
return object

CollectionType CollectionType get;

Get the associated IType
return CollectionType

Type ElementClass get;

Return the element class of an array, or null otherwise
return Type

IType ElementType get;

Get the "element" type
return IType

ISessionFactoryImplementor Factory get;

return ISessionFactoryImplementor

bool HasCache get;

Is this collection role cacheable
return bool

bool HasIndex get;

Is this an "indexed" collection? (list or map)
return bool

bool HasManyToManyOrdering get;

return bool

bool HasOrdering get;

Is this an ordered collection? (An ordered collection is ordered by the initialization operation, not by sorting that happens in memory, as in the case of a sorted collection.)
return bool

bool HasOrphanDelete get;

Does this collection implement "orphan delete"?
return bool

IIdentifierGenerator IdentifierGenerator get;

Get the surrogate key generation strategy (optional operation)
return IIdentifierGenerator

IType IdentifierType get;

Get the type of the surrogate key
return IType

IType IndexType get;

Get the "index" type for a list or map (optional operation)
return IType

bool IsArray get;

Is this an array?
return bool

bool IsInverse get;

Is this collection "inverse", so state changes are not propogated to the database.
return bool

bool IsLazy get;

Is this collection lazyily initialized?
return bool

bool IsOneToMany get;

Is this a one-to-many association?
return bool

bool IsPrimitiveArray get;

Is this an array or primitive values?
return bool

bool IsVersioned get;

return bool

IType KeyType get;

Get the "key" type (the type of the foreign key)
return IType

Type OwnerClass get;

Get the entity class that "owns" this collection
return Type

string Role get;

Get the name of this collection role (the fully qualified class name, extended by a "property path")
return string