Java org.hibernate.metadata ClassMetadata fields, constructors, methods, implement or subclass

Example usage for Java org.hibernate.metadata ClassMetadata fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.hibernate.metadata ClassMetadata.

The text is from its open source code.

Method

StringgetEntityName()
The name of the entity
SerializablegetIdentifier(Object entity, SessionImplementor session)
Get the identifier of an instance (throw an exception if no identifier property)
SerializablegetIdentifier(Object entity, SharedSessionContractImplementor session)
Get the identifier of an instance (throw an exception if no identifier property)
SerializablegetIdentifier(Object object)
Get the identifier of an instance (throw an exception if no identifier property)
StringgetIdentifierPropertyName()
Get the name of the identifier property (or return null)
TypegetIdentifierType()
Get the identifier Hibernate type
ClassgetMappedClass()
The persistent class, or null
int[]getNaturalIdentifierProperties()
Which properties hold the natural id?
boolean[]getPropertyLaziness()
Get the "laziness" of the properties of this class
String[]getPropertyNames()
Get the names of the class' persistent properties
boolean[]getPropertyNullability()
Get the nullability of the class' persistent properties
TypegetPropertyType(String propertyName)
Get the type of a particular (named) property
Type[]getPropertyTypes()
Get the Hibernate types of the class properties
ObjectgetPropertyValue(Object object, String propertyName)
Get the value of a particular (named) property
Object[]getPropertyValues(Object entity)
Extract the property values from the given entity.
ObjectgetVersion(Object object)
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
intgetVersionProperty()
Get the index of the version property
booleanhasIdentifierProperty()
Does this class have an identifier property?
booleanhasNaturalIdentifier()
Does this entity declare a natural id?
booleanhasSubclasses()
Does this entity have mapped subclasses?
Objectinstantiate(Serializable id, SessionImplementor session)
Create a class instance initialized with the given identifier
Objectinstantiate(Serializable id, SharedSessionContractImplementor session)
Create a class instance initialized with the given identifier
booleanisInherited()
Does this entity extend a mapped superclass?
voidsetIdentifier(Object entity, Serializable id, SessionImplementor session)
Inject the identifier value into the given entity.
voidsetIdentifier(Object entity, Serializable id, SharedSessionContractImplementor session)
Inject the identifier value into the given entity.
voidsetPropertyValue(Object object, String propertyName, Object value)
Set the value of a particular (named) property