Package org.hibernate.tuple.entity
Class EntityMetamodel
- java.lang.Object
-
- org.hibernate.tuple.entity.EntityMetamodel
-
- All Implemented Interfaces:
java.io.Serializable
public class EntityMetamodel extends java.lang.Object implements java.io.Serializable
Centralizes metamodel information about an entity.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityMetamodel.GenerationStrategyPair
static class
EntityMetamodel.ValueGenerationStrategyException
-
Constructor Summary
Constructors Constructor Description EntityMetamodel(PersistentClass persistentClass, EntityPersister persister, PersisterCreationContext creationContext)
-
Method Summary
-
-
-
Constructor Detail
-
EntityMetamodel
public EntityMetamodel(PersistentClass persistentClass, EntityPersister persister, PersisterCreationContext creationContext)
-
-
Method Detail
-
create
public static org.hibernate.tuple.entity.EntityMetamodel.InDatabaseValueGenerationStrategyImpl create(SessionFactoryImplementor sessionFactoryImplementor, Property mappingProperty, ValueGeneration valueGeneration)
-
getTuplizer
public EntityTuplizer getTuplizer()
-
isNaturalIdentifierInsertGenerated
public boolean isNaturalIdentifierInsertGenerated()
-
isVersionGenerated
public boolean isVersionGenerated()
-
getNaturalIdentifierProperties
public int[] getNaturalIdentifierProperties()
-
hasNaturalIdentifier
public boolean hasNaturalIdentifier()
-
isNaturalIdentifierCached
public boolean isNaturalIdentifierCached()
-
hasImmutableNaturalId
public boolean hasImmutableNaturalId()
-
getSubclassEntityNames
public java.util.Set getSubclassEntityNames()
-
getSessionFactory
public SessionFactoryImplementor getSessionFactory()
-
getName
public java.lang.String getName()
-
getRootName
public java.lang.String getRootName()
-
getEntityType
public EntityType getEntityType()
-
getIdentifierProperty
public IdentifierProperty getIdentifierProperty()
-
getPropertySpan
public int getPropertySpan()
-
getVersionPropertyIndex
public int getVersionPropertyIndex()
-
getVersionProperty
public VersionProperty getVersionProperty()
-
getProperties
public NonIdentifierAttribute[] getProperties()
-
getPropertyIndex
public int getPropertyIndex(java.lang.String propertyName)
-
getPropertyIndexOrNull
public java.lang.Integer getPropertyIndexOrNull(java.lang.String propertyName)
-
hasCollections
public boolean hasCollections()
-
hasMutableProperties
public boolean hasMutableProperties()
-
getMutablePropertiesIndexes
public java.util.BitSet getMutablePropertiesIndexes()
-
hasNonIdentifierPropertyNamedId
public boolean hasNonIdentifierPropertyNamedId()
-
hasLazyProperties
public boolean hasLazyProperties()
-
hasCascades
public boolean hasCascades()
-
isMutable
public boolean isMutable()
-
isSelectBeforeUpdate
public boolean isSelectBeforeUpdate()
-
isDynamicUpdate
public boolean isDynamicUpdate()
-
isDynamicInsert
public boolean isDynamicInsert()
-
getOptimisticLockStyle
public OptimisticLockStyle getOptimisticLockStyle()
-
isPolymorphic
public boolean isPolymorphic()
-
getSuperclass
public java.lang.String getSuperclass()
-
isExplicitPolymorphism
public boolean isExplicitPolymorphism()
-
isInherited
public boolean isInherited()
-
hasSubclasses
public boolean hasSubclasses()
-
isLazy
public boolean isLazy()
-
setLazy
public void setLazy(boolean lazy)
-
isVersioned
public boolean isVersioned()
-
isAbstract
public boolean isAbstract()
-
findEntityNameByEntityClass
public java.lang.String findEntityNameByEntityClass(java.lang.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.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getPropertyNames
public java.lang.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 CascadeStyle[] getCascadeStyles()
-
hasPreInsertGeneratedValues
public boolean hasPreInsertGeneratedValues()
-
hasPreUpdateGeneratedValues
public boolean hasPreUpdateGeneratedValues()
-
hasInsertGeneratedValues
public boolean hasInsertGeneratedValues()
-
hasUpdateGeneratedValues
public boolean hasUpdateGeneratedValues()
-
getInMemoryValueGenerationStrategies
public InMemoryValueGenerationStrategy[] getInMemoryValueGenerationStrategies()
-
getInDatabaseValueGenerationStrategies
public InDatabaseValueGenerationStrategy[] getInDatabaseValueGenerationStrategies()
-
getEntityMode
public EntityMode getEntityMode()
-
isInstrumented
public boolean isInstrumented()
Whether or not this class can be lazy (ie intercepted)
-
getBytecodeEnhancementMetadata
public BytecodeEnhancementMetadata getBytecodeEnhancementMetadata()
-
-