org.hibernate.tuple.entity

Class EntityMetamodel

Implemented Interfaces:
Serializable

public class EntityMetamodel
extends java.lang.Object
implements Serializable

Centralizes metamodel information about an entity.
Author:
Steve Ebersole

Constructor Summary

EntityMetamodel(PersistentClass persistentClass, SessionFactoryImplementor sessionFactory)

Method Summary

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)
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()

Constructor Details

EntityMetamodel

public EntityMetamodel(PersistentClass persistentClass,
                       SessionFactoryImplementor sessionFactory)

Method Details

getCascadeStyles

public CascadeStyle[] getCascadeStyles()

getEntityType

public EntityType getEntityType()

getIdentifierProperty

public IdentifierProperty getIdentifierProperty()

getName

public String getName()

getNaturalIdentifierProperties

public int[] getNaturalIdentifierProperties()

getNonlazyPropertyUpdateability

public boolean[] getNonlazyPropertyUpdateability()

getOptimisticLockMode

public int getOptimisticLockMode()

getProperties

public StandardProperty[] getProperties()

getPropertyCheckability

public boolean[] getPropertyCheckability()

getPropertyIndex

public int getPropertyIndex(String propertyName)

getPropertyIndexOrNull

public Integer getPropertyIndexOrNull(String propertyName)

getPropertyInsertGenerationInclusions

public ValueInclusion[] getPropertyInsertGenerationInclusions()

getPropertyInsertability

public boolean[] getPropertyInsertability()

getPropertyLaziness

public boolean[] getPropertyLaziness()

getPropertyNames

public String[] getPropertyNames()

getPropertyNullability

public boolean[] getPropertyNullability()

getPropertySpan

public int getPropertySpan()

getPropertyTypes

public Type[] getPropertyTypes()

getPropertyUpdateGenerationInclusions

public ValueInclusion[] getPropertyUpdateGenerationInclusions()

getPropertyUpdateability

public boolean[] getPropertyUpdateability()

getPropertyVersionability

public boolean[] getPropertyVersionability()

getRootName

public String getRootName()

getSessionFactory

public SessionFactoryImplementor getSessionFactory()

getSubclassEntityNames

public Set getSubclassEntityNames()

getSuperclass

public String getSuperclass()

getTuplizer

public EntityTuplizer getTuplizer(EntityMode entityMode)

getTuplizerOrNull

public EntityTuplizer getTuplizerOrNull(EntityMode entityMode)

getVersionProperty

public VersionProperty getVersionProperty()

getVersionPropertyIndex

public int getVersionPropertyIndex()

guessEntityMode

public EntityMode guessEntityMode(Object object)

hasCascades

public boolean hasCascades()

hasCollections

public boolean hasCollections()

hasImmutableNaturalId

public boolean hasImmutableNaturalId()

hasInsertGeneratedValues

public boolean hasInsertGeneratedValues()

hasLazyProperties

public boolean hasLazyProperties()

hasMutableProperties

public boolean hasMutableProperties()

hasNaturalIdentifier

public boolean hasNaturalIdentifier()

hasNonIdentifierPropertyNamedId

public boolean hasNonIdentifierPropertyNamedId()

hasSubclasses

public boolean hasSubclasses()

hasUpdateGeneratedValues

public boolean hasUpdateGeneratedValues()

isAbstract

public boolean isAbstract()

isDynamicInsert

public boolean isDynamicInsert()

isDynamicUpdate

public boolean isDynamicUpdate()

isExplicitPolymorphism

public boolean isExplicitPolymorphism()

isInherited

public boolean isInherited()

isLazy

public boolean isLazy()

isMutable

public boolean isMutable()

isPolymorphic

public boolean isPolymorphic()

isSelectBeforeUpdate

public boolean isSelectBeforeUpdate()

isVersioned

public boolean isVersioned()

setLazy

public void setLazy(boolean lazy)

toString

public String toString()