Package org.hibernate.tuple.entity
Class EntityMetamodel
- java.lang.Object
-
- org.hibernate.tuple.entity.EntityMetamodel
-
- All Implemented Interfaces:
Serializable
@Deprecated(since="6", forRemoval=true) public class EntityMetamodel extends Object implements Serializable
Deprecated, for removal: This API element is subject to removal in a future version.Replaced byEntityMappingType
. EntityMetamodel was a first attempt at what has becomeEntityMappingType
Centralizes metamodel information about an entity.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
NO_VERSION_INDX
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
Constructors Constructor Description EntityMetamodel(PersistentClass persistentClass, EntityPersister persister, RuntimeModelCreationContext creationContext)
Deprecated, for removal: This API element is subject to removal in a future version.EntityMetamodel(PersistentClass persistentClass, EntityPersister persister, PersisterCreationContext creationContext)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
findEntityNameByEntityClass(Class<?> inheritanceClass)
Deprecated, for removal: This API element is subject to removal in a future version.Return the entity-name mapped to the given class within our inheritance hierarchy, if any.BytecodeEnhancementMetadata
getBytecodeEnhancementMetadata()
Deprecated, for removal: This API element is subject to removal in a future version.CascadeStyle[]
getCascadeStyles()
Deprecated, for removal: This API element is subject to removal in a future version.@Nullable Type[]
getDirtyCheckablePropertyTypes()
Deprecated, for removal: This API element is subject to removal in a future version.EntityType
getEntityType()
Deprecated, for removal: This API element is subject to removal in a future version.Generator[]
getGenerators()
Deprecated, for removal: This API element is subject to removal in a future version.IdentifierProperty
getIdentifierProperty()
Deprecated, for removal: This API element is subject to removal in a future version.BitSet
getMutablePropertiesIndexes()
Deprecated, for removal: This API element is subject to removal in a future version.String
getName()
Deprecated, for removal: This API element is subject to removal in a future version.int[]
getNaturalIdentifierProperties()
Deprecated, for removal: This API element is subject to removal in a future version.boolean[]
getNonlazyPropertyUpdateability()
Deprecated, for removal: This API element is subject to removal in a future version.OptimisticLockStyle
getOptimisticLockStyle()
Deprecated, for removal: This API element is subject to removal in a future version.NonIdentifierAttribute[]
getProperties()
Deprecated, for removal: This API element is subject to removal in a future version.boolean[]
getPropertyCheckability()
Deprecated, for removal: This API element is subject to removal in a future version.int
getPropertyIndex(String propertyName)
Deprecated, for removal: This API element is subject to removal in a future version.Integer
getPropertyIndexOrNull(String propertyName)
Deprecated, for removal: This API element is subject to removal in a future version.boolean[]
getPropertyInsertability()
Deprecated, for removal: This API element is subject to removal in a future version.boolean[]
getPropertyLaziness()
Deprecated, for removal: This API element is subject to removal in a future version.String[]
getPropertyNames()
Deprecated, for removal: This API element is subject to removal in a future version.boolean[]
getPropertyNullability()
Deprecated, for removal: This API element is subject to removal in a future version.int
getPropertySpan()
Deprecated, for removal: This API element is subject to removal in a future version.Type[]
getPropertyTypes()
Deprecated, for removal: This API element is subject to removal in a future version.boolean[]
getPropertyUpdateability()
Deprecated, for removal: This API element is subject to removal in a future version.boolean[]
getPropertyVersionability()
Deprecated, for removal: This API element is subject to removal in a future version.String
getRootName()
Deprecated, for removal: This API element is subject to removal in a future version.SessionFactoryImplementor
getSessionFactory()
Deprecated, for removal: This API element is subject to removal in a future version.Set<String>
getSubclassEntityNames()
Deprecated, for removal: This API element is subject to removal in a future version.int
getSubclassId()
Deprecated, for removal: This API element is subject to removal in a future version.String
getSuperclass()
Deprecated, for removal: This API element is subject to removal in a future version.BeforeExecutionGenerator
getVersionGenerator()
Deprecated, for removal: This API element is subject to removal in a future version.VersionProperty
getVersionProperty()
Deprecated, for removal: This API element is subject to removal in a future version.int
getVersionPropertyIndex()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasCascadeDelete()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasCascades()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasCollections()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasImmutableNaturalId()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasInsertGeneratedValues()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasLazyProperties()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasMutableProperties()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasNaturalIdentifier()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasNonIdentifierPropertyNamedId()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasOwnedCollections()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasPreInsertGeneratedValues()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasPreUpdateGeneratedValues()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasSubclasses()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasUpdateGeneratedValues()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isAbstract()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isDynamicInsert()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isDynamicUpdate()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isExplicitPolymorphism()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isInherited()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isInstrumented()
Deprecated, for removal: This API element is subject to removal in a future version.Whether this class can be lazy (ie intercepted)boolean
isLazy()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isMutable()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isNaturalIdentifierCached()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isNaturalIdentifierInsertGenerated()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isPolymorphic()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isSelectBeforeUpdate()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isVersioned()
Deprecated, for removal: This API element is subject to removal in a future version.void
setLazy(boolean lazy)
Deprecated, for removal: This API element is subject to removal in a future version.String
toString()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Field Detail
-
NO_VERSION_INDX
public static final int NO_VERSION_INDX
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EntityMetamodel
@Deprecated(since="6.0") public EntityMetamodel(PersistentClass persistentClass, EntityPersister persister, PersisterCreationContext creationContext)
Deprecated.
-
EntityMetamodel
public EntityMetamodel(PersistentClass persistentClass, EntityPersister persister, RuntimeModelCreationContext creationContext)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
getGenerators
public Generator[] getGenerators()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getVersionGenerator
public BeforeExecutionGenerator getVersionGenerator()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isNaturalIdentifierInsertGenerated
public boolean isNaturalIdentifierInsertGenerated()
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
true
if one of the properties belonging to the natural id is generated during the execution of aninsert
statement
-
getNaturalIdentifierProperties
public int[] getNaturalIdentifierProperties()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasNaturalIdentifier
public boolean hasNaturalIdentifier()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isNaturalIdentifierCached
public boolean isNaturalIdentifierCached()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasImmutableNaturalId
public boolean hasImmutableNaturalId()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSubclassEntityNames
public Set<String> getSubclassEntityNames()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSessionFactory
public SessionFactoryImplementor getSessionFactory()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getName
public String getName()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getRootName
public String getRootName()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSubclassId
public int getSubclassId()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getEntityType
public EntityType getEntityType()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getIdentifierProperty
public IdentifierProperty getIdentifierProperty()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPropertySpan
public int getPropertySpan()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getVersionPropertyIndex
public int getVersionPropertyIndex()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getVersionProperty
public VersionProperty getVersionProperty()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getProperties
public NonIdentifierAttribute[] getProperties()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPropertyIndex
public int getPropertyIndex(String propertyName)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPropertyIndexOrNull
public Integer getPropertyIndexOrNull(String propertyName)
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasCollections
public boolean hasCollections()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasOwnedCollections
public boolean hasOwnedCollections()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasMutableProperties
public boolean hasMutableProperties()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getMutablePropertiesIndexes
public BitSet getMutablePropertiesIndexes()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasNonIdentifierPropertyNamedId
public boolean hasNonIdentifierPropertyNamedId()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasLazyProperties
public boolean hasLazyProperties()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasCascades
public boolean hasCascades()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasCascadeDelete
public boolean hasCascadeDelete()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isMutable
public boolean isMutable()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isSelectBeforeUpdate
public boolean isSelectBeforeUpdate()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isDynamicUpdate
public boolean isDynamicUpdate()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isDynamicInsert
public boolean isDynamicInsert()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getOptimisticLockStyle
public OptimisticLockStyle getOptimisticLockStyle()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isPolymorphic
public boolean isPolymorphic()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSuperclass
public String getSuperclass()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isExplicitPolymorphism
public boolean isExplicitPolymorphism()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isInherited
public boolean isInherited()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasSubclasses
public boolean hasSubclasses()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isLazy
public boolean isLazy()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setLazy
public void setLazy(boolean lazy)
Deprecated, for removal: This API element is subject to removal in a future version.
-
isVersioned
public boolean isVersioned()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isAbstract
public boolean isAbstract()
Deprecated, for removal: This API element is subject to removal in a future version.
-
findEntityNameByEntityClass
public String findEntityNameByEntityClass(Class<?> inheritanceClass)
Deprecated, for removal: This API element is subject to removal in a future version.Return the entity-name mapped to the given class within our inheritance hierarchy, if any.- Parameters:
inheritanceClass
- The class for which to resolve the entity-name.- Returns:
- The mapped entity-name, or null if no such mapping was found.
-
toString
public String toString()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPropertyNames
public String[] getPropertyNames()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPropertyTypes
public Type[] getPropertyTypes()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getDirtyCheckablePropertyTypes
public @Nullable Type[] getDirtyCheckablePropertyTypes()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPropertyLaziness
public boolean[] getPropertyLaziness()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPropertyUpdateability
public boolean[] getPropertyUpdateability()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPropertyCheckability
public boolean[] getPropertyCheckability()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getNonlazyPropertyUpdateability
public boolean[] getNonlazyPropertyUpdateability()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPropertyInsertability
public boolean[] getPropertyInsertability()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPropertyNullability
public boolean[] getPropertyNullability()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getPropertyVersionability
public boolean[] getPropertyVersionability()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getCascadeStyles
public CascadeStyle[] getCascadeStyles()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasPreInsertGeneratedValues
public boolean hasPreInsertGeneratedValues()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasPreUpdateGeneratedValues
public boolean hasPreUpdateGeneratedValues()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasInsertGeneratedValues
public boolean hasInsertGeneratedValues()
Deprecated, for removal: This API element is subject to removal in a future version.
-
hasUpdateGeneratedValues
public boolean hasUpdateGeneratedValues()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isInstrumented
public boolean isInstrumented()
Deprecated, for removal: This API element is subject to removal in a future version.Whether this class can be lazy (ie intercepted)
-
getBytecodeEnhancementMetadata
public BytecodeEnhancementMetadata getBytecodeEnhancementMetadata()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-