Top Description Inners Fields Constructors Methods
org.hibernate.boot.model.internal

public Class InheritanceState

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, .Map, org.hibernate.AnnotationException, org.hibernate.annotations.common.reflection.XAnnotatedElement, .XClass, .XProperty, org.hibernate.boot.spi.AccessType, .MetadataBuildingContext, .PropertyData, org.hibernate.mapping.PersistentClass, jakarta.persistence.Access, .EmbeddedId, .Entity, .Id, .IdClass, .Inheritance, .InheritanceType, .MappedSuperclass

Some extra data to the inheritance position of a class.
Author
Emmanuel Bernard

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private AccessType
private final MetadataBuildingContext
private final List<XClass>
private XClass
private InheritanceState.ElementsToProcess
private Boolean
private boolean
hasParents

a mother entity is available

private boolean
hasSiblings

Has sibling (either mappedsuperclass entity)

private final Map<XClass, InheritanceState>
private boolean
private InheritanceType

Constructor Summary

AccessConstructor and Description
public
InheritanceState(XClass clazz, Map<XClass, InheritanceState> inheritanceStatePerClass, MetadataBuildingContext buildingContext)

Method Summary

Modifier and TypeMethod and Description
private void
private AccessType
private void
public XClass
getClassWithIdClass(boolean evenIfSubclass)

public XClass
private InheritanceState.ElementsToProcess
public static InheritanceState
private void
public static InheritanceState
public InheritanceType
public boolean
public Boolean
public boolean
public boolean
public boolean
public boolean
public InheritanceState.ElementsToProcess
postProcess(PersistentClass persistenceClass, EntityBinder entityBinder)

public void
public void
setEmbeddableSuperclass(boolean embeddableSuperclass)

public void
setHasParents(boolean hasParents)

public void
setHasSiblings(boolean hasSiblings)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessTypeback to summary
private AccessType accessType
buildingContextback to summary
private final MetadataBuildingContext buildingContext
classesToProcessForMappedSuperclassback to summary
private final List<XClass> classesToProcessForMappedSuperclass
clazzback to summary
private XClass clazz
elementsToProcessback to summary
private InheritanceState.ElementsToProcess elementsToProcess
hasIdClassOrEmbeddedIdback to summary
private Boolean hasIdClassOrEmbeddedId
hasParentsback to summary
private boolean hasParents

a mother entity is available

hasSiblingsback to summary
private boolean hasSiblings

Has sibling (either mappedsuperclass entity)

inheritanceStatePerClassback to summary
private final Map<XClass, InheritanceState> inheritanceStatePerClass
isEmbeddableSuperclassback to summary
private boolean isEmbeddableSuperclass
typeback to summary
private InheritanceType type

Constructor Detail

InheritanceStateback to summary
public InheritanceState(XClass clazz, Map<XClass, InheritanceState> inheritanceStatePerClass, MetadataBuildingContext buildingContext)

Method Detail

addMappedSuperClassInMetadataback to summary
private void addMappedSuperClassInMetadata(PersistentClass persistentClass)
determineDefaultAccessTypeback to summary
private AccessType determineDefaultAccessType()
extractInheritanceTypeback to summary
private void extractInheritanceType()
getClassWithIdClassback to summary
public XClass getClassWithIdClass(boolean evenIfSubclass)
getClazzback to summary
public XClass getClazz()
getElementsToProcessback to summary
private InheritanceState.ElementsToProcess getElementsToProcess()
getInheritanceStateOfSuperEntityback to summary
public static InheritanceState getInheritanceStateOfSuperEntity(XClass clazz, Map<XClass, InheritanceState> states)
getMappedSuperclassesTillNextEntityOrderedback to summary
private void getMappedSuperclassesTillNextEntityOrdered()
getSuperclassInheritanceStateback to summary
public static InheritanceState getSuperclassInheritanceState(XClass clazz, Map<XClass, InheritanceState> states)
getTypeback to summary
public InheritanceType getType()
hasDenormalizedTableback to summary
public boolean hasDenormalizedTable()
hasIdClassOrEmbeddedIdback to summary
public Boolean hasIdClassOrEmbeddedId()
hasParentsback to summary
public boolean hasParents()
hasSiblingsback to summary
public boolean hasSiblings()
hasTableback to summary
public boolean hasTable()
isEmbeddableSuperclassback to summary
public boolean isEmbeddableSuperclass()
postProcessback to summary
public InheritanceState.ElementsToProcess postProcess(PersistentClass persistenceClass, EntityBinder entityBinder)
setClazzback to summary
public void setClazz(XClass clazz)
setEmbeddableSuperclassback to summary
public void setEmbeddableSuperclass(boolean embeddableSuperclass)
setHasParentsback to summary
public void setHasParents(boolean hasParents)
setHasSiblingsback to summary
public void setHasSiblings(boolean hasSiblings)
setTypeback to summary
public void setType(InheritanceType type)
org.hibernate.boot.model.internal back to summary

public final Class InheritanceState.ElementsToProcess

extends Object
Class Inheritance
  • java.lang.Object
  • org.hibernate.boot.model.internal.InheritanceState.ElementsToProcess

Field Summary

Modifier and TypeField and Description
private final int
private final List<PropertyData>

Constructor Summary

AccessConstructor and Description
private
ElementsToProcess(List<PropertyData> properties, int idPropertyCount)

Method Summary

Modifier and TypeMethod and Description
public List<PropertyData>
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

idPropertyCountback to summary
private final int idPropertyCount
propertiesback to summary
private final List<PropertyData> properties

Constructor Detail

ElementsToProcessback to summary
private ElementsToProcess(List<PropertyData> properties, int idPropertyCount)

Method Detail

getElementsback to summary
public List<PropertyData> getElements()
getIdPropertyCountback to summary
public int getIdPropertyCount()