Class JoinedSubclassEntitySourceImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
-
- org.hibernate.boot.model.source.internal.hbm.AbstractEntitySourceImpl
-
- org.hibernate.boot.model.source.internal.hbm.SubclassEntitySourceImpl
-
- org.hibernate.boot.model.source.internal.hbm.JoinedSubclassEntitySourceImpl
-
- All Implemented Interfaces:
Helper.InLineViewNameInferrer,AttributeSourceContainer,EntityNamingSourceContributor,EntitySource,ForeignKeyContributingSource,IdentifiableTypeSource,JoinedSubclassEntitySource,SubclassEntitySource,ToolingHintContextContainer
public class JoinedSubclassEntitySourceImpl extends SubclassEntitySourceImpl implements JoinedSubclassEntitySource
-
-
Constructor Summary
Constructors Constructor Description JoinedSubclassEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmJoinedSubclassEntityType jaxbJoinedSubclassMapping, EntitySource container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancreateForeignKeyConstraint()Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).StringgetDiscriminatorMatchValue()Get the actual discriminator value in case of a single table inheritanceStringgetExplicitForeignKeyName()Retrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.List<ColumnSource>getPrimaryKeyColumnSources()ThePrimaryKeyJoinColumnsmapping for the joined-subclass.booleanisCascadeDeleteEnabled()Is "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?-
Methods inherited from class org.hibernate.boot.model.source.internal.hbm.SubclassEntitySourceImpl
getPrimaryTable, getSuperType
-
Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractEntitySourceImpl
afterInstantiation, attributeSources, buildAttributeSources, buildAttributeSources, extractEntityNamingSource, getAttributePathBase, getAttributeRoleBase, getBatchSize, getCustomLoaderName, getCustomPersisterClassName, getCustomSqlDelete, getCustomSqlInsert, getCustomSqlUpdate, getEntityNamingSource, getFilterSources, getHierarchy, getJpaCallbackClasses, getLocalMetadataBuildingContext, getNamedNativeQueries, getNamedQueries, getOrigin, getProxy, getSecondaryTableMap, getSubTypes, getSynchronizedTableNames, getToolingHintContext, getTypeName, getXmlNodeName, inferInLineViewName, injectHierarchy, isAbstract, isDynamicInsert, isDynamicUpdate, isLazy, isSelectBeforeUpdate, jaxbEntityMapping, quoteIdentifiersLocalToEntity
-
Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.model.source.spi.AttributeSourceContainer
attributeSources, getAttributePathBase, getAttributeRoleBase
-
Methods inherited from interface org.hibernate.boot.model.source.spi.EntityNamingSourceContributor
getEntityNamingSource
-
Methods inherited from interface org.hibernate.boot.model.source.spi.EntitySource
getBatchSize, getCustomLoaderName, getCustomPersisterClassName, getCustomSqlDelete, getCustomSqlInsert, getCustomSqlUpdate, getFilterSources, getNamedNativeQueries, getNamedQueries, getPrimaryTable, getProxy, getSecondaryTableMap, getSynchronizedTableNames, getXmlNodeName, isAbstract, isDynamicInsert, isDynamicUpdate, isLazy, isSelectBeforeUpdate, quoteIdentifiersLocalToEntity
-
Methods inherited from interface org.hibernate.boot.model.source.spi.IdentifiableTypeSource
getHierarchy, getJpaCallbackClasses, getLocalMetadataBuildingContext, getOrigin, getSubTypes, getSuperType, getTypeName
-
Methods inherited from interface org.hibernate.boot.model.source.spi.ToolingHintContextContainer
getToolingHintContext
-
-
-
-
Constructor Detail
-
JoinedSubclassEntitySourceImpl
public JoinedSubclassEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmJoinedSubclassEntityType jaxbJoinedSubclassMapping, EntitySource container)
-
-
Method Detail
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()
Description copied from interface:ForeignKeyContributingSourceIs "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?- Specified by:
isCascadeDeleteEnabledin interfaceForeignKeyContributingSource- Returns:
true, if the cascade delete is enabled;false, otherwise.
-
getExplicitForeignKeyName
public String getExplicitForeignKeyName()
Description copied from interface:ForeignKeyContributingSourceRetrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.- Specified by:
getExplicitForeignKeyNamein interfaceForeignKeyContributingSource- Returns:
- The user supplied foreign key name.
-
createForeignKeyConstraint
public boolean createForeignKeyConstraint()
Description copied from interface:ForeignKeyContributingSourcePrimarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).- Specified by:
createForeignKeyConstraintin interfaceForeignKeyContributingSource- Returns:
trueif the FK constraint should be created,falseif not.
-
getPrimaryKeyColumnSources
public List<ColumnSource> getPrimaryKeyColumnSources()
Description copied from interface:JoinedSubclassEntitySourceThePrimaryKeyJoinColumnsmapping for the joined-subclass.- Specified by:
getPrimaryKeyColumnSourcesin interfaceJoinedSubclassEntitySource- Returns:
- The
PrimaryKeyJoinColumnSourcelists defined on the joined subclass ornullotherwise.
-
getDiscriminatorMatchValue
public String getDiscriminatorMatchValue()
Description copied from interface:EntitySourceGet the actual discriminator value in case of a single table inheritance- Specified by:
getDiscriminatorMatchValuein interfaceEntitySource- Overrides:
getDiscriminatorMatchValuein classSubclassEntitySourceImpl- Returns:
- the actual discriminator value in case of a single table inheritance or
nullin case there is no explicit value or a different inheritance scheme
-
-