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 boolean
createForeignKeyConstraint()
Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT)
.String
getDiscriminatorMatchValue()
Get the actual discriminator value in case of a single table inheritanceString
getExplicitForeignKeyName()
Retrieve the name of the foreign key as supplied by the user, ornull
if the user supplied none.List<ColumnSource>
getPrimaryKeyColumnSources()
ThePrimaryKeyJoinColumns
mapping for the joined-subclass.boolean
isCascadeDeleteEnabled()
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:ForeignKeyContributingSource
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?- Specified by:
isCascadeDeleteEnabled
in interfaceForeignKeyContributingSource
- Returns:
true
, if the cascade delete is enabled;false
, otherwise.
-
getExplicitForeignKeyName
public String getExplicitForeignKeyName()
Description copied from interface:ForeignKeyContributingSource
Retrieve the name of the foreign key as supplied by the user, ornull
if the user supplied none.- Specified by:
getExplicitForeignKeyName
in interfaceForeignKeyContributingSource
- Returns:
- The user supplied foreign key name.
-
createForeignKeyConstraint
public boolean createForeignKeyConstraint()
Description copied from interface:ForeignKeyContributingSource
Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT)
.- Specified by:
createForeignKeyConstraint
in interfaceForeignKeyContributingSource
- Returns:
true
if the FK constraint should be created,false
if not.
-
getPrimaryKeyColumnSources
public List<ColumnSource> getPrimaryKeyColumnSources()
Description copied from interface:JoinedSubclassEntitySource
ThePrimaryKeyJoinColumns
mapping for the joined-subclass.- Specified by:
getPrimaryKeyColumnSources
in interfaceJoinedSubclassEntitySource
- Returns:
- The
PrimaryKeyJoinColumnSource
lists defined on the joined subclass ornull
otherwise.
-
getDiscriminatorMatchValue
public String getDiscriminatorMatchValue()
Description copied from interface:EntitySource
Get the actual discriminator value in case of a single table inheritance- Specified by:
getDiscriminatorMatchValue
in interfaceEntitySource
- Overrides:
getDiscriminatorMatchValue
in classSubclassEntitySourceImpl
- Returns:
- the actual discriminator value in case of a single table inheritance or
null
in case there is no explicit value or a different inheritance scheme
-
-