org.hibernate.tuple
Class EntityMetamodel

java.lang.Object
  extended byorg.hibernate.tuple.EntityMetamodel
All Implemented Interfaces:
Serializable

public class EntityMetamodel
extends Object
implements Serializable

Centralizes metamodel information about an entity.

Author:
Steve Ebersole
See Also:
Serialized Form

Constructor Summary
EntityMetamodel(PersistentClass persistentClass, SessionFactoryImplementor sessionFactory)
           
 
Method Summary
 Cascades.CascadeStyle[] getCascadeStyles()
           
 EntityType getEntityType()
           
 IdentifierProperty getIdentifierProperty()
           
 String getName()
           
 boolean[] getNonlazyPropertyUpdateability()
           
 int getOptimisticLockMode()
           
 StandardProperty[] getProperties()
           
 boolean[] getPropertyCheckability()
           
 int getPropertyIndex(StandardProperty property)
           
 int getPropertyIndex(String propertyName)
           
 boolean[] getPropertyInsertability()
           
 boolean[] getPropertyLaziness()
           
 String[] getPropertyNames()
           
 boolean[] getPropertyNullability()
           
 int getPropertySpan()
           
 Type[] getPropertyTypes()
           
 boolean[] getPropertyUpdateability()
           
 boolean[] getPropertyVersionability()
           
 String getRootName()
           
 SessionFactoryImplementor getSessionFactory()
           
 Set getSubclassEntityNames()
           
 String getSuperclass()
           
 EntityTuplizer getTuplizer(EntityMode entityMode)
           
 EntityTuplizer getTuplizerOrNull(EntityMode entityMode)
           
 VersionProperty getVersionProperty()
           
 int getVersionPropertyIndex()
           
 EntityMode guessEntityMode(Object object)
           
 boolean hasCascades()
           
 boolean hasCollections()
           
 boolean hasLazyProperties()
           
 boolean hasSubclasses()
           
 boolean isAbstract()
           
 boolean isDynamicInsert()
           
 boolean isDynamicUpdate()
           
 boolean isExplicitPolymorphism()
           
 boolean isInherited()
           
 boolean isLazy()
           
 boolean isMutable()
           
 boolean isPolymorphic()
           
 boolean isSelectBeforeUpdate()
           
 boolean isVersioned()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityMetamodel

public EntityMetamodel(PersistentClass persistentClass,
                       SessionFactoryImplementor sessionFactory)
Method Detail

getTuplizer

public EntityTuplizer getTuplizer(EntityMode entityMode)

getTuplizerOrNull

public EntityTuplizer getTuplizerOrNull(EntityMode entityMode)

guessEntityMode

public EntityMode guessEntityMode(Object object)

getSubclassEntityNames

public Set getSubclassEntityNames()

getSessionFactory

public SessionFactoryImplementor getSessionFactory()

getName

public String getName()

getRootName

public String getRootName()

getEntityType

public EntityType getEntityType()

getIdentifierProperty

public IdentifierProperty getIdentifierProperty()

getPropertySpan

public int getPropertySpan()

getVersionPropertyIndex

public int getVersionPropertyIndex()

getVersionProperty

public VersionProperty getVersionProperty()

getProperties

public StandardProperty[] getProperties()

getPropertyIndex

public int getPropertyIndex(StandardProperty property)
                     throws PropertyNotFoundException
Throws:
PropertyNotFoundException

getPropertyIndex

public int getPropertyIndex(String propertyName)
                     throws PropertyNotFoundException
Throws:
PropertyNotFoundException

hasCollections

public boolean hasCollections()

hasLazyProperties

public boolean hasLazyProperties()

hasCascades

public boolean hasCascades()

isMutable

public boolean isMutable()

isSelectBeforeUpdate

public boolean isSelectBeforeUpdate()

isDynamicUpdate

public boolean isDynamicUpdate()

isDynamicInsert

public boolean isDynamicInsert()

getOptimisticLockMode

public int getOptimisticLockMode()

isPolymorphic

public boolean isPolymorphic()

getSuperclass

public String getSuperclass()

isExplicitPolymorphism

public boolean isExplicitPolymorphism()

isInherited

public boolean isInherited()

hasSubclasses

public boolean hasSubclasses()

isLazy

public boolean isLazy()

isVersioned

public boolean isVersioned()

isAbstract

public boolean isAbstract()

toString

public String toString()

getPropertyNames

public String[] getPropertyNames()

getPropertyTypes

public Type[] getPropertyTypes()

getPropertyLaziness

public boolean[] getPropertyLaziness()

getPropertyUpdateability

public boolean[] getPropertyUpdateability()

getPropertyCheckability

public boolean[] getPropertyCheckability()

getNonlazyPropertyUpdateability

public boolean[] getNonlazyPropertyUpdateability()

getPropertyInsertability

public boolean[] getPropertyInsertability()

getPropertyNullability

public boolean[] getPropertyNullability()

getPropertyVersionability

public boolean[] getPropertyVersionability()

getCascadeStyles

public Cascades.CascadeStyle[] getCascadeStyles()