The IType 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 | |
DeepCopy |
When implemented by a class, returns a deep copy of the persistent
state, stopping at entities and at collections.
| |
Disassemble | Return a cacheable "disassembled" representation of the object. (Inherited from ICacheAssembler.) | |
FromXMLNode | Parse the XML representation of an instance. | |
GetColumnSpan |
When implemented by a class, returns how many columns are used to persist this type.
| |
GetHashCode(Object, EntityMode) | Get a hashcode, consistent with persistence "equality" | |
GetHashCode(Object, EntityMode, ISessionFactoryImplementor) | Get a hashcode, consistent with persistence "equality" | |
GetSemiResolvedType | Get the type of a semi-resolved value. | |
Hydrate |
When implemented by a class, retrieves an instance of the mapped class,
or the identifier of an entity or collection from a IDataReader.
| |
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?
| |
IsDirty(Object, Object, array<Boolean>[]()[][], ISessionImplementor) | ||
IsEqual(Object, Object, EntityMode) |
Compare two instances of the class mapped by this type for persistence
"equality" - equality of persistent state.
| |
IsEqual(Object, Object, EntityMode, ISessionFactoryImplementor) |
Compare two instances of the class mapped by this type for persistence
"equality" - equality of persistent state.
| |
IsModified | ||
IsSame |
Compare two instances of the class mapped by this type for persistence
"equality" - equality of persistent state - taking a shortcut for
entity references.
| |
NullSafeGet(IDataReader, String, ISessionImplementor, Object) |
When implemented by a class, gets an instance of the object
mapped by this IType from the IDataReader.
| |
NullSafeGet(IDataReader, array<String>[]()[][], ISessionImplementor, Object) |
When implemented by a class, gets an instance of the object mapped by
this IType from the IDataReader.
| |
NullSafeSet(IDbCommand, Object, Int32, ISessionImplementor) |
When implemented by a class, puts the value/values from the mapped
class into the IDbCommand.
| |
NullSafeSet(IDbCommand, Object, Int32, array<Boolean>[]()[][], ISessionImplementor) |
When implemented by a class, puts the value/values from the mapped
class into the IDbCommand.
| |
Replace(Object, Object, ISessionImplementor, Object, IDictionary) | ||
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.
| |
ResolveIdentifier |
When implemented by a class, maps identifiers to Entities or Collections.
| |
SemiResolve |
Given a hydrated, but unresolved value, return a value that may be used to
reconstruct property-ref associations.
| |
SetToXMLNode | A representation of the value to be embedded in an XML element. | |
SqlTypes |
When implemented by a class, returns the SqlTypes for the columns mapped by this IType.
| |
ToColumnNullness |
Given an instance of the type, return an array of boolean, indicating
which mapped columns would be null.
| |
ToLoggableString |
When implemented by a class, a representation of the value to be
embedded in an XML element
|
Properties
Name | Description | |
---|---|---|
IsAnyType | ||
IsAssociationType |
When implemented by a class, gets a value indicating if the implementor is castable to an an IAssociationType | |
IsCollectionType |
When implemented by a class, gets a value indicating if the implementor is a collection type
| |
IsComponentType |
When implemented by a class, gets a value indicating if the implementor
is an IAbstractComponentType.
| |
IsEntityType |
When implemented by a class, gets a value indicating if the implementor
extends EntityType | |
IsMutable |
When implemented by a class, gets the value indicating if the objects
of this IType are mutable.
| |
IsXMLElement | ||
Name |
When implemented by a class, gets the abbreviated name of the type.
| |
ReturnedClass |
When implemented by a class, gets the Type returned
by the NullSafeGet() methods.
|