The IClassMetadata type exposes the following members.

Methods

  NameDescription
Public methodGetIdentifier
Get the identifier of an instance (throw an exception if no identifier property)
Public methodGetMappedClass
The persistent class
Public methodGetPropertyType
Get the type of a particular (named) property
Public methodGetPropertyValue
Get the value of a particular (named) property
Public methodGetPropertyValues
Extract the property values from the given entity.
Public methodGetPropertyValuesToInsert
Return the values of the mapped properties of the object
Public methodGetVersion
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
Public methodImplementsLifecycle
Does the class implement the ILifecycle interface?
Public methodImplementsValidatable
Does the class implement the IValidatable interface?
Public methodInstantiate
Create a class instance initialized with the given identifier
Public methodSetIdentifier
Set the identifier of an instance (or do nothing if no identifier property)
Public methodSetPropertyValue
Set the value of a particular (named) property
Public methodSetPropertyValues
Set the given values to the mapped properties of the given object

See Also