public class

EntityMetamodel

extends Object
implements Serializable
java.lang.Object
   ↳ org.hibernate.tuple.entity.EntityMetamodel

Class Overview

Centralizes metamodel information about an entity.

Summary

Public Constructors
EntityMetamodel(PersistentClass persistentClass, SessionFactoryImplementor sessionFactory)
Public Methods
String findEntityNameByEntityClass(Class inheritenceClass)
Return the entity-name mapped to the given class within our inheritance hierarchy, if any.
CascadeStyle[] getCascadeStyles()
EntityType getEntityType()
IdentifierProperty getIdentifierProperty()
String getName()
int[] getNaturalIdentifierProperties()
boolean[] getNonlazyPropertyUpdateability()
int getOptimisticLockMode()
StandardProperty[] getProperties()
boolean[] getPropertyCheckability()
int getPropertyIndex(String propertyName)
Integer getPropertyIndexOrNull(String propertyName)
ValueInclusion[] getPropertyInsertGenerationInclusions()
boolean[] getPropertyInsertability()
boolean[] getPropertyLaziness()
String[] getPropertyNames()
boolean[] getPropertyNullability()
int getPropertySpan()
Type[] getPropertyTypes()
ValueInclusion[] getPropertyUpdateGenerationInclusions()
boolean[] getPropertyUpdateability()
boolean[] getPropertyVersionability()
String getRootName()
SessionFactoryImplementor getSessionFactory()
Set getSubclassEntityNames()
String getSuperclass()
EntityTuplizer getTuplizer(EntityMode entityMode)
EntityEntityModeToTuplizerMapping getTuplizerMapping()
EntityTuplizer getTuplizerOrNull(EntityMode entityMode)
VersionProperty getVersionProperty()
int getVersionPropertyIndex()
EntityMode guessEntityMode(Object object)
boolean hasCascades()
boolean hasCollections()
boolean hasImmutableNaturalId()
boolean hasInsertGeneratedValues()
boolean hasLazyProperties()
boolean hasMutableProperties()
boolean hasNaturalIdentifier()
boolean hasNonIdentifierPropertyNamedId()
boolean hasSubclasses()
boolean hasUpdateGeneratedValues()
boolean isAbstract()
boolean isDynamicInsert()
boolean isDynamicUpdate()
boolean isExplicitPolymorphism()
boolean isInherited()
boolean isLazy()
boolean isMutable()
boolean isPolymorphic()
boolean isSelectBeforeUpdate()
boolean isVersioned()
void setLazy(boolean lazy)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EntityMetamodel (PersistentClass persistentClass, SessionFactoryImplementor sessionFactory)

Public Methods

public String findEntityNameByEntityClass (Class inheritenceClass)

Return the entity-name mapped to the given class within our inheritance hierarchy, if any.

Parameters
inheritenceClass The class for which to resolve the entity-name.
Returns
  • The mapped entity-name, or null if no such mapping was found.

public CascadeStyle[] getCascadeStyles ()

public EntityType getEntityType ()

public IdentifierProperty getIdentifierProperty ()

public String getName ()

public int[] getNaturalIdentifierProperties ()

public boolean[] getNonlazyPropertyUpdateability ()

public int getOptimisticLockMode ()

public StandardProperty[] getProperties ()

public boolean[] getPropertyCheckability ()

public int getPropertyIndex (String propertyName)

public Integer getPropertyIndexOrNull (String propertyName)

public ValueInclusion[] getPropertyInsertGenerationInclusions ()

public boolean[] getPropertyInsertability ()

public boolean[] getPropertyLaziness ()

public String[] getPropertyNames ()

public boolean[] getPropertyNullability ()

public int getPropertySpan ()

public Type[] getPropertyTypes ()

public ValueInclusion[] getPropertyUpdateGenerationInclusions ()

public boolean[] getPropertyUpdateability ()

public boolean[] getPropertyVersionability ()

public String getRootName ()

public SessionFactoryImplementor getSessionFactory ()

public Set getSubclassEntityNames ()

public String getSuperclass ()

public EntityTuplizer getTuplizer (EntityMode entityMode)

public EntityEntityModeToTuplizerMapping getTuplizerMapping ()

public EntityTuplizer getTuplizerOrNull (EntityMode entityMode)

public VersionProperty getVersionProperty ()

public int getVersionPropertyIndex ()

public EntityMode guessEntityMode (Object object)

public boolean hasCascades ()

public boolean hasCollections ()

public boolean hasImmutableNaturalId ()

public boolean hasInsertGeneratedValues ()

public boolean hasLazyProperties ()

public boolean hasMutableProperties ()

public boolean hasNaturalIdentifier ()

public boolean hasNonIdentifierPropertyNamedId ()

public boolean hasSubclasses ()

public boolean hasUpdateGeneratedValues ()

public boolean isAbstract ()

public boolean isDynamicInsert ()

public boolean isDynamicUpdate ()

public boolean isExplicitPolymorphism ()

public boolean isInherited ()

public boolean isLazy ()

public boolean isMutable ()

public boolean isPolymorphic ()

public boolean isSelectBeforeUpdate ()

public boolean isVersioned ()

public void setLazy (boolean lazy)

public String toString ()