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

Properties

  NameDescription
Public propertyEntityName
The name of the entity
Public propertyHasIdentifierProperty
Does the class have an identifier property?
Public propertyHasNaturalIdentifier
Does this entity declare a natural id?
Public propertyHasProxy
Does the class support dynamic proxies?
Public propertyHasSubclasses
Does this entity have mapped subclasses?
Public propertyIdentifierPropertyName
The name of the identifier property (or return null)
Public propertyIdentifierType
The identifier Hibernate type
Public propertyIsInherited
Does this entity extend a mapped superclass?
Public propertyIsMutable
Are instances of this class mutable?
Public propertyIsVersioned
Are instances of this class versioned by a timestamp or version number column?
Public propertyNaturalIdentifierProperties
Which properties hold the natural id?
Public propertyPropertyLaziness
Get the "laziness" of the properties of this class
Public propertyPropertyNames
The names of the class' persistent properties
Public propertyPropertyNullability
Get the nullability of the class' persistent properties
Public propertyPropertyTypes
The Hibernate types of the classes properties
Public propertyVersionProperty
Gets the index of the version property

See Also