Top Description Inners Fields Constructors Methods
org.hibernate.cfg

public Class InheritanceState

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

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private AccessType
private MetadataBuildingContext
private 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 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
public InheritanceState.ElementsToProcess
public static InheritanceState
private void
public static InheritanceState
public InheritanceType
pack-priv boolean
public Boolean
public boolean
public boolean
pack-priv boolean
public boolean
pack-priv void
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 MetadataBuildingContext buildingContext
classesToProcessForMappedSuperclassback to summary
private 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 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
public 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
pack-priv boolean hasDenormalizedTable()
hasIdClassOrEmbeddedIdback to summary
public Boolean hasIdClassOrEmbeddedId()
hasParentsback to summary
public boolean hasParents()
hasSiblingsback to summary
public boolean hasSiblings()
hasTableback to summary
pack-priv boolean hasTable()
isEmbeddableSuperclassback to summary
public boolean isEmbeddableSuperclass()
postProcessback to summary
pack-priv void 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.cfg back to summary

pack-priv final Class InheritanceState.ElementsToProcess

extends Object
Class Inheritance

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