The IAssociationType type exposes the following members.
Methods
Name | Description | |
---|---|---|
Assemble | Reconstruct the object from its cached "disassembled" state. (Inherited from ICacheAssembler.) | |
BeforeAssemble |
Called before assembling a query result set from the query cache, to allow batch fetching
of entities missing from the second-level cache.
(Inherited from ICacheAssembler.) | |
Compare | compare two instances of the type (Inherited from IType.) | |
DeepCopy |
When implemented by a class, returns a deep copy of the persistent
state, stopping at entities and at collections.
(Inherited from IType.) | |
Disassemble | Return a cacheable "disassembled" representation of the object. (Inherited from ICacheAssembler.) | |
FromXMLNode | Parse the XML representation of an instance. (Inherited from IType.) | |
GetAssociatedEntityName | Get the entity name of the associated entity | |
GetAssociatedJoinable |
Get the "persister" for this association - a class or collection persister
| |
GetColumnSpan |
When implemented by a class, returns how many columns are used to persist this type.
(Inherited from IType.) | |
GetHashCode(Object, EntityMode) | Get a hashcode, consistent with persistence "equality" (Inherited from IType.) | |
GetHashCode(Object, EntityMode, ISessionFactoryImplementor) | Get a hashcode, consistent with persistence "equality" (Inherited from IType.) | |
GetOnCondition |
Get the "filtering" SQL fragment that is applied in the
SQL on clause, in addition to the usual join condition.
| |
GetSemiResolvedType | Get the type of a semi-resolved value. (Inherited from IType.) | |
Hydrate |
When implemented by a class, retrieves an instance of the mapped class,
or the identifier of an entity or collection from a IDataReader.
(Inherited from IType.) | |
IsDirty(Object, Object, ISessionImplementor) |
When implemented by a class, should the parent be considered dirty,
given both the old and current field or element value?
(Inherited from IType.) | |
IsDirty(Object, Object, array<Boolean>[]()[][], ISessionImplementor) | (Inherited from IType.) | |
IsEqual(Object, Object, EntityMode) |
Compare two instances of the class mapped by this type for persistence
"equality" - equality of persistent state.
(Inherited from IType.) | |
IsEqual(Object, Object, EntityMode, ISessionFactoryImplementor) |
Compare two instances of the class mapped by this type for persistence
"equality" - equality of persistent state.
(Inherited from IType.) | |
IsModified | (Inherited from IType.) | |
IsSame |
Compare two instances of the class mapped by this type for persistence
"equality" - equality of persistent state - taking a shortcut for
entity references.
(Inherited from IType.) | |
NullSafeGet(IDataReader, String, ISessionImplementor, Object) |
When implemented by a class, gets an instance of the object
mapped by this IType from the IDataReader.
(Inherited from IType.) | |
NullSafeGet(IDataReader, array<String>[]()[][], ISessionImplementor, Object) |
When implemented by a class, gets an instance of the object mapped by
this IType from the IDataReader.
(Inherited from IType.) | |
NullSafeSet(IDbCommand, Object, Int32, ISessionImplementor) |
When implemented by a class, puts the value/values from the mapped
class into the IDbCommand.
(Inherited from IType.) | |
NullSafeSet(IDbCommand, Object, Int32, array<Boolean>[]()[][], ISessionImplementor) |
When implemented by a class, puts the value/values from the mapped
class into the IDbCommand.
(Inherited from IType.) | |
Replace(Object, Object, ISessionImplementor, Object, IDictionary) | (Inherited from IType.) | |
Replace(Object, Object, ISessionImplementor, Object, IDictionary, ForeignKeyDirection) |
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging. For immutable
objects, or null values, it is safe to simply return the first parameter. For
mutable objects, it is safe to return a copy of the first parameter. For objects
with component values, it might make sense to recursively replace component values.
(Inherited from IType.) | |
ResolveIdentifier |
When implemented by a class, maps identifiers to Entities or Collections.
(Inherited from IType.) | |
SemiResolve |
Given a hydrated, but unresolved value, return a value that may be used to
reconstruct property-ref associations.
(Inherited from IType.) | |
SetToXMLNode | A representation of the value to be embedded in an XML element. (Inherited from IType.) | |
SqlTypes |
When implemented by a class, returns the SqlTypes for the columns mapped by this IType.
(Inherited from IType.) | |
ToColumnNullness |
Given an instance of the type, return an array of boolean, indicating
which mapped columns would be null.
(Inherited from IType.) | |
ToLoggableString |
When implemented by a class, a representation of the value to be
embedded in an XML element
(Inherited from IType.) |
Properties
Name | Description | |
---|---|---|
ForeignKeyDirection |
When implemented by a class, gets the type of foreign key directionality
of this association.
| |
IsAlwaysDirtyChecked |
Do we dirty check this association, even when there are
no columns to be updated.
| |
IsAnyType | (Inherited from IType.) | |
IsAssociationType |
When implemented by a class, gets a value indicating if the implementor is castable to an an IAssociationType (Inherited from IType.) | |
IsCollectionType |
When implemented by a class, gets a value indicating if the implementor is a collection type
(Inherited from IType.) | |
IsComponentType |
When implemented by a class, gets a value indicating if the implementor
is an IAbstractComponentType.
(Inherited from IType.) | |
IsEmbeddedInXML | ||
IsEntityType |
When implemented by a class, gets a value indicating if the implementor
extends EntityType (Inherited from IType.) | |
IsMutable |
When implemented by a class, gets the value indicating if the objects
of this IType are mutable.
(Inherited from IType.) | |
IsXMLElement | (Inherited from IType.) | |
LHSPropertyName |
Get the name of the property in the owning entity
that provides the join key (null if the identifier)
| |
Name |
When implemented by a class, gets the abbreviated name of the type.
(Inherited from IType.) | |
ReturnedClass |
When implemented by a class, gets the Type returned
by the NullSafeGet() methods.
(Inherited from IType.) | |
RHSUniqueKeyPropertyName |
The name of a unique property of the associated entity
that provides the join key (null if the identifier of
an entity, or key of a collection)
| |
UseLHSPrimaryKey |
Is the primary key of the owning entity table
to be used in the join?
|