getEntityName
public String getEntityName()
The name of the entity
getIdentifier
public Serializable getIdentifier(Object entity,
EntityMode entityMode)
throws HibernateException
Get the identifier of an instance (throw an exception if no identifier property)
getIdentifierPropertyName
public String getIdentifierPropertyName()
Get the name of the identifier property (or return null)
getIdentifierType
public Type getIdentifierType()
Get the identifier Hibernate type
getMappedClass
public Class getMappedClass(EntityMode entityMode)
The persistent class, or null
getNaturalIdentifierProperties
public int[] getNaturalIdentifierProperties()
Which properties hold the natural id?
getPropertyLaziness
public boolean[] getPropertyLaziness()
Get the "laziness" of the properties of this class
getPropertyNames
public String[] getPropertyNames()
Get the names of the class' persistent properties
getPropertyNullability
public boolean[] getPropertyNullability()
Get the nullability of the class' persistent properties
getPropertyType
public Type getPropertyType(String propertyName)
throws HibernateException
Get the type of a particular (named) property
getPropertyTypes
public Type[] getPropertyTypes()
Get the Hibernate types of the class properties
getPropertyValue
public Object getPropertyValue(Object object,
String propertyName,
EntityMode entityMode)
throws HibernateException
Get the value of a particular (named) property
getPropertyValues
public Object[] getPropertyValues(Object entity,
EntityMode entityMode)
throws HibernateException
Extract the property values from the given entity.
entity
- The entity from which to extract the property values.entityMode
- The entity-mode of the given entity
getPropertyValuesToInsert
public Object[] getPropertyValuesToInsert(Object entity,
Map mergeMap,
SessionImplementor session)
throws HibernateException
Return the values of the mapped properties of the object
getVersion
public Object getVersion(Object object,
EntityMode entityMode)
throws HibernateException
Get the version number (or timestamp) from the object's version property
(or return null if not versioned)
getVersionProperty
public int getVersionProperty()
Get the index of the version property
hasIdentifierProperty
public boolean hasIdentifierProperty()
Does this class have an identifier property?
hasNaturalIdentifier
public boolean hasNaturalIdentifier()
Does this entity declare a natural id?
hasProxy
public boolean hasProxy()
Does this class support dynamic proxies?
hasSubclasses
public boolean hasSubclasses()
Does this entity have mapped subclasses?
implementsLifecycle
public boolean implementsLifecycle(EntityMode entityMode)
Does the class implement the Lifecycle interface?
implementsValidatable
public boolean implementsValidatable(EntityMode entityMode)
Does the class implement the Validatable interface?
instantiate
public Object instantiate(Serializable id,
EntityMode entityMode)
throws HibernateException
Create a class instance initialized with the given identifier
isInherited
public boolean isInherited()
Does this entity extend a mapped superclass?
isMutable
public boolean isMutable()
Are instances of this class mutable?
isVersioned
public boolean isVersioned()
Are instances of this class versioned by a timestamp or version number column?
setIdentifier
public void setIdentifier(Object object,
Serializable id,
EntityMode entityMode)
throws HibernateException
Set the identifier of an instance (or do nothing if no identifier property)
setPropertyValue
public void setPropertyValue(Object object,
String propertyName,
Object value,
EntityMode entityMode)
throws HibernateException
Set the value of a particular (named) property
setPropertyValues
public void setPropertyValues(Object object,
Object[] values,
EntityMode entityMode)
throws HibernateException
Set the given values to the mapped properties of the given object