The IClassMetadata type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| GetIdentifier |
Get the identifier of an instance (throw an exception if no identifier property)
| |
| GetMappedClass |
The persistent class
| |
| GetPropertyType | Get the type of a particular (named) property | |
| GetPropertyValue |
Get the value of a particular (named) property
| |
| GetPropertyValues | Extract the property values from the given entity. | |
| GetPropertyValuesToInsert | Return the values of the mapped properties of the object | |
| GetVersion |
Get the version number (or timestamp) from the object's version property
(or return null if not versioned)
| |
| ImplementsLifecycle | Does the class implement the ILifecycle interface? | |
| ImplementsValidatable | Does the class implement the IValidatable interface? | |
| Instantiate |
Create a class instance initialized with the given identifier
| |
| SetIdentifier |
Set the identifier of an instance (or do nothing if no identifier property)
| |
| SetPropertyValue |
Set the value of a particular (named) property
| |
| SetPropertyValues |
Set the given values to the mapped properties of the given object
|
Properties
| Name | Description | |
|---|---|---|
| EntityName |
The name of the entity
| |
| HasIdentifierProperty | Does the class have an identifier property? | |
| HasNaturalIdentifier | Does this entity declare a natural id? | |
| HasProxy | Does the class support dynamic proxies? | |
| HasSubclasses | Does this entity have mapped subclasses? | |
| IdentifierPropertyName |
The name of the identifier property (or return null)
| |
| IdentifierType |
The identifier Hibernate type
| |
| IsInherited | Does this entity extend a mapped superclass? | |
| IsMutable |
Are instances of this class mutable?
| |
| IsVersioned |
Are instances of this class versioned by a timestamp or version number column?
| |
| NaturalIdentifierProperties | Which properties hold the natural id? | |
| PropertyLaziness | Get the "laziness" of the properties of this class | |
| PropertyNames |
The names of the class' persistent properties
| |
| PropertyNullability |
Get the nullability of the class' persistent properties
| |
| PropertyTypes |
The Hibernate types of the classes properties
| |
| VersionProperty |
Gets the index of the version property
|