Namespaces

Types

Type PersistentClass

Namespace NHibernate.Mapping

Interfaces IFilterable

Methods

Properties

Fields

Public instance methods

void AddFilter(string name, string condition)

Parameters
string name
string condition

void AddProperty(Property p)

Change the property definition or add a new property definition
Parameters
Property p The Property to add.

void AddSubclass(Subclass subclass)

Adds a Subclass to the class hierarchy.
Parameters
Subclass subclass The Subclass to add to the hierarchy.

void AddSubclassProperty(Property p)

Adds a Property that is implemented by a subclass.
Parameters
Property p The Property implemented by a subclass.

void AddSubclassTable(Table table)

Adds a Table that a subclass is stored in.
Parameters
Table table The Table the subclass is stored in.

void AddSynchronizedTable(string table)

Parameters
string table

void CreatePrimaryKey(Dialect dialect)

Creates the PrimaryKey for the Table this type is persisted in.
Parameters
Dialect dialect The Dialect that is used to Alias columns.

bool Equals(object obj)

Parameters
return bool
object obj

int GetHashCode()

Parameters
return int

MetaAttribute GetMetaAttribute(string name)

Parameters
return MetaAttribute
string name

Property GetProperty(string propertyName)

Parameters
return Property
string propertyName

Property GetRecursiveProperty(string propertyPath)

Parameters
return Property
string propertyPath

Property GetReferencedProperty(string propertyPath)

Given a property path, locate the appropriate referenceable property reference.
A referenceable property is a property which can be a target of a foreign-key mapping (an identifier or explicitly named in a property-ref).
Parameters
return Property The property reference (never null).
string propertyPath The property path to resolve into a property reference.

Type GetType()

Parameters
return Type

void SetCustomSQLDelete(string sql, bool callable, ExecuteUpdateResultCheckStyle checkStyle)

Parameters
string sql
bool callable
ExecuteUpdateResultCheckStyle checkStyle

void SetCustomSQLInsert(string sql, bool callable, ExecuteUpdateResultCheckStyle checkStyle)

Parameters
string sql
bool callable
ExecuteUpdateResultCheckStyle checkStyle

void SetCustomSQLUpdate(string sql, bool callable, ExecuteUpdateResultCheckStyle checkStyle)

Parameters
string sql
bool callable
ExecuteUpdateResultCheckStyle checkStyle

string ToString()

Parameters
return string

void Validate(IMapping mapping)

Parameters
IMapping mapping

Public properties

int BatchSize get; set;

return int

string CacheConcurrencyStrategy get; set;

When implemented by a class, gets or sets the CacheConcurrencyStrategy to use to read/write instances of the persistent class to the Cache.
return string

Type ClassPersisterClass get; set;

When implemented by a class, gets or sets the Type of the Persister.
return Type

SqlString CustomSQLDelete get;

return SqlString

ExecuteUpdateResultCheckStyle CustomSQLDeleteCheckStyle get;

return ExecuteUpdateResultCheckStyle

SqlString CustomSQLInsert get;

return SqlString

ExecuteUpdateResultCheckStyle CustomSQLInsertCheckStyle get;

return ExecuteUpdateResultCheckStyle

SqlString CustomSQLUpdate get;

return SqlString

ExecuteUpdateResultCheckStyle CustomSQLUpdateCheckStyle get;

return ExecuteUpdateResultCheckStyle

ICollection DirectSubclasses get;

Gets an ICollection of Subclass objects that directly inherit from this PersistentClass.
return ICollection

SimpleValue Discriminator get; set;

When implemented by a class, gets or sets the SimpleValue that contains information about the discriminator.
return SimpleValue

string DiscriminatorValue get; set;

Gets or Sets the value to use as the discriminator for the Class.
The value of this is set by the discriminator-value attribute. Each in a heirarchy must define a unique discriminator-value . The default value is the class name if no value is supplied.
return string

bool DynamicInsert get; set;

Gets or Sets if the Insert Sql is built dynamically.
The value of this is set by the dynamic-insert attribute.
return bool

bool DynamicUpdate get; set;

Gets or Sets if the Update Sql is built dynamically.
The value of this is set by the dynamic-update attribute.
return bool

IDictionary FilterMap get;

return IDictionary

bool HasEmbeddedIdentifier get; set;

When implemented by a class, gets or sets a boolean indicating if the identifier is embedded in the class.
An embedded identifier is true when using a composite-id specifying properties of the class as the key-property instead of using a class as the composite-id .
return bool

bool HasIdentifierProperty get;

When implemented by a class, gets a boolean indicating if the mapped class has a Property for the id .
return bool

bool HasPojoRepresentation get;

return bool

bool HasSubclasses get;

Gets a boolean indicating if this PersistentClass has any subclasses.
return bool

bool HasSubselectLoadableCollections get; set;

return bool

SimpleValue Identifier get; set;

When implemented by a class, gets or sets the SimpleValue that contains information about the identifier.
return SimpleValue

Property IdentifierProperty get; set;

When implemented by a class, gets or sets the Property that is used as the id .
return Property

object IsAbstract get;

return object

bool IsCustomDeleteCallable get;

return bool

bool IsCustomInsertCallable get;

return bool

bool IsCustomUpdateCallable get;

return bool

bool IsDiscriminatorInsertable get; set;

return bool

bool IsDiscriminatorValueNotNull get;

return bool

bool IsDiscriminatorValueNull get;

return bool

bool IsExplicitPolymorphism get; set;

When implemented by a class, gets or sets a boolean indicating if explicit polymorphism should be used in Queries.
The value of this is set by the polymorphism attribute.
return bool

bool IsForceDiscriminator get; set;

Gets or sets a boolean indicating if only values in the discriminator column that are mapped will be included in the sql.
The value of this is set by the force attribute on the discriminator element.
return bool

bool IsInherited get;

When implemented by a class, gets a boolean indicating if this mapped class is inherited from another.
return bool

bool IsJoinedSubclass get;

return bool

bool IsLazy get; set;

return bool

bool IsMutable get; set;

When implemented by a class, gets or set a boolean indicating if the mapped class has properties that can be changed.
The value of this is set by the mutable attribute.
return bool

bool IsPolymorphic get; set;

When implemented by a class, gets or sets if the mapped class has subclasses or is a subclass.
return bool

bool IsVersioned get;

When implemented by a class, gets a boolean indicating if the mapped class has a version property.
return bool

SimpleValue Key get; set;

When implemented by a class, gets or sets the SimpleValue that contains information about the Key.
return SimpleValue

string LoaderName get; set;

return string

Type MappedClass get; set;

Gets the Type that is being mapped.
The value of this is set by the name attribute on the element.
return Type

IDictionary MetaAttributes get; set;

return IDictionary

string Name get;

Gets the fully qualified name of the type being persisted.
return string

OptimisticLockMode OptimisticLockMode get; set;

return OptimisticLockMode

ICollection PropertyClosureCollection get;

When implemented by a class, gets an ICollection of Property objects that this mapped class contains.
This is all of the properties of this mapped class and each mapped class that it is inheriting from.
return ICollection

int PropertyClosureSpan get;

return int

ICollection PropertyCollection get;

Gets an ICollection of Property objects.
return ICollection

Type ProxyInterface get; set;

Gets or sets the Type to use as a Proxy.
The value of this is set by the proxy attribute.
return Type

ICollection ReferenceablePropertyCollection get;

Build a collection of properties which are "referenceable".
See GetReferencedProperty for a discussion of "referenceable".
return ICollection

RootClass RootClazz get;

When implemented by a class, gets the RootClass of the class that is mapped in the class element.
return RootClass

Table RootTable get;

When implemented by a class, gets the Table of the class that is mapped in the class element.
return Table

bool SelectBeforeUpdate get; set;

return bool

ICollection SubclassCollection get;

Gets the Collection of Subclasses for this PersistentClass.
return ICollection

int SubclassId get;

return int

ICollection SubclassPropertyClosureCollection get;

Gets an ICollection of Property objects that this mapped class contains and that all of its subclasses contain.
return ICollection

int SubclassSpan get;

Gets the number of subclasses that inherit either directly or indirectly.
return int

ICollection SubclassTableClosureCollection get;

Gets an ICollection of all of the Table objects that the subclass finds its information in.
It adds the TableClosureCollection and the subclassTables into the ICollection.
return ICollection

PersistentClass Superclass get; set;

When implemented by a class, gets or sets the PersistentClass that this mapped class is extending.
return PersistentClass

ISet SynchronizedTables get;

return ISet

Table Table get; set;

Gets or Sets the Table that this class is stored in.
The value of this is set by the table attribute.
return Table

ICollection TableClosureCollection get;

When implemented by a class, gets an ICollection of Table objects that this mapped class reads from and writes to.
This is all of the tables of this mapped class and each mapped class that it is inheriting from.
return ICollection

Property Version get; set;

When implemented by a class, gets or sets the Property that is used as the version.
return Property

string Where get; set;

When implemented by a class, gets or sets the sql string that should be a part of the where clause.
The value of this is set by the where attribute.
return string

Public fields

string NullDiscriminatorMapping

return string

string NotNullDiscriminatorMapping

return string