Namespaces

Types

Type IClassMetadata

Namespace NHibernate.Metadata

Methods

Properties

Public instance methods

object GetIdentifier(object entity)

Get the identifier of an instance (throw an exception if no identifier property)
Parameters
return object
object entity

IType GetPropertyType(string propertyName)

Get the type of a particular (named) property
Parameters
return IType
string propertyName

object GetPropertyValue(object obj, string propertyName)

Get the value of a particular (named) property
Parameters
return object
object obj
string propertyName

Object[] GetPropertyValues(object entity)

Return the values of the mapped properties of the object
Parameters
return Object[]
object entity

object GetVersion(object obj)

Get the version number (or timestamp) from the object's version property (or return null if not versioned)
Parameters
return object
object obj

object Instantiate(object id)

Create a class instance initialized with the given identifier
Parameters
return object
object id

void SetIdentifier(object entity, object id)

Set the identifier of an instance (or do nothing if no identifier property)
Parameters
object entity
object id

void SetPropertyValue(object obj, string propertyName, object value)

Set the value of a particular (named) property
Parameters
object obj
string propertyName
object value

void SetPropertyValues(object entity, Object[] values)

Parameters
object entity
Object[] values

Public properties

bool HasIdentifierProperty get;

Does the class have an identifier property?
return bool

bool HasProxy get;

Does the class support dynamic proxies?
return bool

string IdentifierPropertyName get;

The name of the identifier property (or return null)
return string

IType IdentifierType get;

The identifier Hibernate type
return IType

bool ImplementsLifecycle get;

Does the class implement the ILifecycle interface?
return bool

bool ImplementsValidatable get;

Does the class implement the IValidatable inteface?
return bool

bool IsMutable get;

Are instances of this class mutable?
return bool

bool IsVersioned get;

Are instances of this class versioned by a timestamp or version number column?
return bool

Type MappedClass get;

The persistent class
return Type

String[] PropertyNames get;

The names of the class' persistent properties
return String[]

Boolean[] PropertyNullability get;

Get the nullability of the class' persistent properties
return Boolean[]

IType[] PropertyTypes get;

The Hibernate types of the classes properties
return IType[]

int VersionProperty get;

Gets the index of the version property
return int