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 becomeEntityMappingTypeCentralizes metamodel information about an entity.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intNO_VERSION_INDXDeprecated, 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 StringfindEntityNameByEntityClass(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.BytecodeEnhancementMetadatagetBytecodeEnhancementMetadata()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.EntityTypegetEntityType()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.IdentifierPropertygetIdentifierProperty()Deprecated, for removal: This API element is subject to removal in a future version.BitSetgetMutablePropertiesIndexes()Deprecated, for removal: This API element is subject to removal in a future version.StringgetName()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.OptimisticLockStylegetOptimisticLockStyle()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.intgetPropertyIndex(String propertyName)Deprecated, for removal: This API element is subject to removal in a future version.IntegergetPropertyIndexOrNull(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.OnDeleteAction[]getPropertyOnDeleteActions()Deprecated, for removal: This API element is subject to removal in a future version.intgetPropertySpan()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.StringgetRootName()Deprecated, for removal: This API element is subject to removal in a future version.SessionFactoryImplementorgetSessionFactory()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.intgetSubclassId()Deprecated, for removal: This API element is subject to removal in a future version.StringgetSuperclass()Deprecated, for removal: This API element is subject to removal in a future version.BeforeExecutionGeneratorgetVersionGenerator()Deprecated, for removal: This API element is subject to removal in a future version.VersionPropertygetVersionProperty()Deprecated, for removal: This API element is subject to removal in a future version.intgetVersionPropertyIndex()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasCascadeDelete()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasCascades()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasCollections()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasImmutableNaturalId()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasInsertGeneratedValues()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasLazyProperties()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasMutableProperties()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasNaturalIdentifier()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasNonIdentifierPropertyNamedId()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasOwnedCollections()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasPreInsertGeneratedValues()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasPreUpdateGeneratedValues()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasSubclasses()Deprecated, for removal: This API element is subject to removal in a future version.booleanhasUpdateGeneratedValues()Deprecated, for removal: This API element is subject to removal in a future version.booleanisAbstract()Deprecated, for removal: This API element is subject to removal in a future version.booleanisDynamicInsert()Deprecated, for removal: This API element is subject to removal in a future version.booleanisDynamicUpdate()Deprecated, for removal: This API element is subject to removal in a future version.booleanisExplicitPolymorphism()Deprecated, for removal: This API element is subject to removal in a future version.booleanisInherited()Deprecated, for removal: This API element is subject to removal in a future version.booleanisInstrumented()Deprecated, for removal: This API element is subject to removal in a future version.Whether this class can be lazy (ie intercepted)booleanisLazy()Deprecated, for removal: This API element is subject to removal in a future version.booleanisMutable()Deprecated, for removal: This API element is subject to removal in a future version.booleanisNaturalIdentifierCached()Deprecated, for removal: This API element is subject to removal in a future version.booleanisNaturalIdentifierInsertGenerated()Deprecated, for removal: This API element is subject to removal in a future version.booleanisPolymorphic()Deprecated, for removal: This API element is subject to removal in a future version.booleanisSelectBeforeUpdate()Deprecated, for removal: This API element is subject to removal in a future version.booleanisVersioned()Deprecated, for removal: This API element is subject to removal in a future version.voidsetLazy(boolean lazy)Deprecated, for removal: This API element is subject to removal in a future version.StringtoString()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:
trueif one of the properties belonging to the natural id is generated during the execution of aninsertstatement
-
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.
-
getPropertyOnDeleteActions
public OnDeleteAction[] getPropertyOnDeleteActions()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-