Namespaces

Types

Type CollectionType

Namespace NHibernate.Type

Parent AbstractType

Interfaces IAssociationType

Methods

Properties

Public instance methods

object Assemble(object cached, ISessionImplementor session, object owner)

Parameters
return object
object cached
ISessionImplementor session
object owner

object DeepCopy(object value)

Parameters
return object
object value

object Disassemble(object value, ISessionImplementor session)

Parameters
return object
object value
ISessionImplementor session

bool Equals(object obj)

Parameters
return bool
object obj

bool Equals(object x, object y)

Parameters
return bool
object x
object y

object FromString(string xml)

Parameters
return object
string xml

Type GetAssociatedClass(ISessionFactoryImplementor factory)

Parameters
return Type
ISessionFactoryImplementor factory

IJoinable GetAssociatedJoinable(ISessionFactoryImplementor factory)

Parameters
return IJoinable
ISessionFactoryImplementor factory

int GetColumnSpan(IMapping session)

Parameters
return int
IMapping session

ICollection GetElementsCollection(object collection)

Returns a reference to the elements in the collection.
By default the parameter collection is just cast to an ICollection. Collections such as Maps and Sets should override this so that the Elements are returned - not a DictionaryEntry.
Parameters
return ICollection An ICollection of the Elements(classes) in the Collection.
object collection The object that holds the ICollection.

IType GetElementType(ISessionFactoryImplementor factory)

Parameters
return IType
ISessionFactoryImplementor factory

int GetHashCode(object x, ISessionFactoryImplementor factory)

Parameters
return int
object x
ISessionFactoryImplementor factory

int GetHashCode()

Parameters
return int

object GetKeyOfOwner(object owner, ISessionImplementor session)

Get the key value from the owning entity instance, usually the identifier, but might be some other unique key, in the case of property-ref
Parameters
return object
object owner
ISessionImplementor session

string GetOnCondition(string alias, ISessionFactoryImplementor factory, IDictionary enabledFilters)

Parameters
return string
string alias
ISessionFactoryImplementor factory
IDictionary enabledFilters

String[] GetReferencedColumns(ISessionFactoryImplementor factory)

Parameters
return String[]
ISessionFactoryImplementor factory

Type GetType()

Parameters
return Type

object Hydrate(IDataReader rs, String[] name, ISessionImplementor session, object owner)

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

object Instantiate()

Instantiate an empty instance of the "underlying" collection (not a wrapper)
Parameters
return object

IPersistentCollection Instantiate(ISessionImplementor session, ICollectionPersister persister)

Parameters
return IPersistentCollection
ISessionImplementor session
ICollectionPersister persister

object InstantiateResult(object original)

Parameters
return object
object original

bool IsDatabaseNull(object value)

Parameters
return bool
object value

bool IsDirty(object old, object current, Boolean[] checkable, ISessionImplementor session)

Parameters
return bool
object old
object current
Boolean[] checkable
ISessionImplementor session

bool IsDirty(object old, object current, ISessionImplementor session)

Parameters
return bool
object old
object current
ISessionImplementor session

bool IsModified(object oldHydratedState, object currentState, Boolean[] checkable, ISessionImplementor session)

Parameters
return bool
object oldHydratedState
object currentState
Boolean[] checkable
ISessionImplementor session

object NullSafeGet(IDataReader rs, String[] name, ISessionImplementor session, object owner)

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

object NullSafeGet(IDataReader rs, string name, ISessionImplementor session, object owner)

Parameters
return object
IDataReader rs
string name
ISessionImplementor session
object owner

void NullSafeSet(IDbCommand st, object value, int index, Boolean[] settable, ISessionImplementor session)

Parameters
IDbCommand st
object value
int index
Boolean[] settable
ISessionImplementor session

void NullSafeSet(IDbCommand cmd, object value, int index, ISessionImplementor session)

Parameters
IDbCommand cmd
object value
int index
ISessionImplementor session

object Replace(object original, object target, ISessionImplementor session, object owner, IDictionary copyCache)

Parameters
return object
object original
object target
ISessionImplementor session
object owner
IDictionary copyCache

object ReplaceElements(object original, object target, object owner, IDictionary copyCache, ISessionImplementor session)

Parameters
return object
object original
object target
object owner
IDictionary copyCache
ISessionImplementor session

object ResolveIdentifier(object value, ISessionImplementor session, object owner)

Parameters
return object
object value
ISessionImplementor session
object owner

object SemiResolve(object value, ISessionImplementor session, object owner)

Parameters
return object
object value
ISessionImplementor session
object owner

SqlType[] SqlTypes(IMapping session)

Parameters
return SqlType[]
IMapping session

string ToLoggableString(object value, ISessionFactoryImplementor factory)

Parameters
return string
object value
ISessionFactoryImplementor factory

string ToString()

Parameters
return string

IPersistentCollection Wrap(ISessionImplementor session, object collection)

Wraps a collection from System.Collections or Iesi.Collections inside one of the NHibernate collections.
Parameters
return IPersistentCollection A subclass of IPersistentCollection that wraps the non NHibernate collection.
ISessionImplementor session The ISessionImplementor for the collection to be a part of.
object collection The unwrapped collection.

Public properties

ForeignKeyDirection ForeignKeyDirection get;

return ForeignKeyDirection

bool HasNiceEquals get;

return bool

bool IsAlwaysDirtyChecked get;

We always need to dirty check the collection because we sometimes need to incremement version number of owner and also because of how assemble/disassemble is implemented for uks
return bool

bool IsAnyType get;

return bool

bool IsArrayType get;

return bool

bool IsAssociationType get;

return bool

bool IsCollectionType get;

return bool

bool IsComponentType get;

return bool

bool IsEntityType get;

return bool

bool IsMutable get;

return bool

string LHSPropertyName get;

return string

string Name get;

return string

Type ReturnedClass get;

return Type

string RHSUniqueKeyPropertyName get;

return string

string Role get;

return string

bool UseLHSPrimaryKey get;

return bool