The EntityType type exposes the following members.

Constructors

  NameDescription
Protected methodEntityType
Constructs the requested entity type mapping.

Methods

  NameDescription
Public methodAssemble
Reconstructs the object from its cached "disassembled" state.
(Inherited from AbstractType.)
Public methodBeforeAssemble (Inherited from AbstractType.)
Public methodCompare (Overrides AbstractType..::..Compare(Object, Object, Nullable<(Of <<'(EntityMode>)>>)).)
Public methodDeepCopy (Overrides AbstractType..::..DeepCopy(Object, EntityMode, ISessionFactoryImplementor).)
Public methodDisassemble
Disassembles the object into a cacheable representation.
(Inherited from AbstractType.)
Public methodEquals (Inherited from AbstractType.)
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 methodFromXMLNode (Overrides AbstractType..::..FromXMLNode(XmlNode, IMapping).)
Public methodGetAssociatedEntityName()()()()
The name of the associated entity.
Public methodGetAssociatedEntityName(ISessionFactoryImplementor)
The name of the associated entity.
Public methodGetAssociatedJoinable
Retrieves the {@link Joinable} defining the associated entity.
Public methodGetColumnSpan
When implemented by a class, returns how many columns are used to persist this type.
(Inherited from AbstractType.)
Public methodGetHashCode()()()() (Inherited from AbstractType.)
Public methodGetHashCode(Object, EntityMode) (Inherited from AbstractType.)
Public methodGetHashCode(Object, EntityMode, ISessionFactoryImplementor) (Overrides AbstractType..::..GetHashCode(Object, EntityMode, ISessionFactoryImplementor).)
Protected methodGetIdentifier
Public methodGetIdentifierOrUniqueKeyPropertyName
The name of the property on the associated entity to which our FK refers
Public methodGetIdentifierOrUniqueKeyType
Determine the type of either (1) the identifier if we reference the associated entity's PK or (2) the unique key to which we refer (i.e. the property-ref).
Public methodGetOnCondition
Public methodGetSemiResolvedType (Overrides AbstractType..::..GetSemiResolvedType(ISessionFactoryImplementor).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHydrate (Overrides AbstractType..::..Hydrate(IDataReader, array<String>[]()[][], ISessionImplementor, Object).)
Public methodIsDirty(Object, Object, ISessionImplementor)
Should the parent be considered dirty, given both the old and current field or element value?
(Inherited from AbstractType.)
Public methodIsDirty(Object, Object, array<Boolean>[]()[][], ISessionImplementor) (Inherited from AbstractType.)
Public methodIsEqual(Object, Object, EntityMode) (Inherited from AbstractType.)
Public methodIsEqual(Object, Object, EntityMode, ISessionFactoryImplementor) (Overrides AbstractType..::..IsEqual(Object, Object, EntityMode, ISessionFactoryImplementor).)
Public methodIsModified
Says whether the value has been modified
(Inherited from AbstractType.)
Protected methodIsNotEmbedded
Public methodIsNull
Public methodIsSame
Two entities are considered the same when their instances are the same.
(Overrides AbstractType..::..IsSame(Object, Object, EntityMode).)
Public methodLoadByUniqueKey
Load an instance by a unique key that is not the primary key.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNullSafeGet(IDataReader, String, ISessionImplementor, Object) (Overrides AbstractType..::..NullSafeGet(IDataReader, String, ISessionImplementor, Object).)
Public methodNullSafeGet(IDataReader, array<String>[]()[][], ISessionImplementor, Object)
Converts the id contained in the IDataReader to an object.
(Overrides AbstractType..::..NullSafeGet(IDataReader, array<String>[]()[][], ISessionImplementor, Object).)
Public methodNullSafeSet(IDbCommand, Object, Int32, ISessionImplementor)
When implemented by a class, puts the value/values from the mapped class into the IDbCommand.
(Inherited from AbstractType.)
Public methodNullSafeSet(IDbCommand, Object, Int32, array<Boolean>[]()[][], ISessionImplementor)
When implemented by a class, puts the value/values from the mapped class into the IDbCommand.
(Inherited from AbstractType.)
Public methodReplace(Object, Object, ISessionImplementor, Object, IDictionary) (Overrides AbstractType..::..Replace(Object, Object, ISessionImplementor, Object, IDictionary).)
Public methodReplace(Object, Object, ISessionImplementor, Object, IDictionary, ForeignKeyDirection) (Inherited from AbstractType.)
Protected methodResolveIdentifier(Object, ISessionImplementor)
Resolves the identifier to the actual object.
Public methodResolveIdentifier(Object, ISessionImplementor, Object)
Resolve an identifier or unique key value
(Overrides AbstractType..::..ResolveIdentifier(Object, ISessionImplementor, Object).)
Public methodSemiResolve (Inherited from AbstractType.)
Public methodSetToXMLNode (Overrides AbstractType..::..SetToXMLNode(XmlNode, Object, ISessionFactoryImplementor).)
Public methodSqlTypes
When implemented by a class, returns the SqlTypes for the columns mapped by this IType.
(Inherited from AbstractType.)
Public methodToColumnNullness (Inherited from AbstractType.)
Public methodToLoggableString (Overrides AbstractType..::..ToLoggableString(Object, ISessionFactoryImplementor).)
Public methodToString (Overrides Object..::..ToString()()()().)

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 fielduniqueKeyPropertyName

Properties

  NameDescription
Public propertyForeignKeyDirection
When implemented by a class, gets the type of foreign key directionality of this association.
Public propertyIsAlwaysDirtyChecked
Public propertyIsAnyType
Gets a value indicating if the implementation is an "object" type
(Inherited from AbstractType.)
Public propertyIsAssociationType (Overrides AbstractType..::..IsAssociationType.)
Public propertyIsCollectionType
Gets a value indicating if the AbstractType is a CollectionType.
(Inherited from AbstractType.)
Public propertyIsComponentType
Gets a value indicating if the AbstractType is an IAbstractComponentType.
(Inherited from AbstractType.)
Public propertyIsEmbeddedInXML
Public propertyIsEntityType
Explicitly, an entity type is an entity type
(Overrides AbstractType..::..IsEntityType.)
Public propertyIsMutable (Overrides AbstractType..::..IsMutable.)
Public propertyIsNullable
Public propertyIsOneToOne
Public propertyIsReferenceToPrimaryKey
Public propertyIsUniqueKeyReference
Public propertyIsXMLElement (Overrides AbstractType..::..IsXMLElement.)
Public propertyLHSPropertyName
Public propertyName (Overrides AbstractType..::..Name.)
Public propertyPropertyName
Public propertyReturnedClass
This returns the wrong class for an entity with a proxy, or for a named entity. Theoretically it should return the proxy class, but it doesn't.

The problem here is that we do not necessarily have a ref to the associated entity persister (nor to the session factory, to look it up) which is really needed to "do the right thing" here...

(Overrides AbstractType..::..ReturnedClass.)
Public propertyRHSUniqueKeyPropertyName
Public propertyUseLHSPrimaryKey
Is the foreign key the primary key of the table?

See Also