Top Fields Constructors Methods
org.hibernate.boot.model.source.internal.hbm

public Class JoinedSubclassEntitySourceImpl

extends SubclassEntitySourceImpl
implements JoinedSubclassEntitySource
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.spi.JoinedSubclassEntitySource, org.hibernate.boot.model.source.spi.ForeignKeyContributingSource, org.hibernate.boot.model.source.spi.SubclassEntitySource, org.hibernate.boot.model.source.spi.EntitySource, org.hibernate.boot.model.source.spi.EntityNamingSourceContributor, org.hibernate.boot.model.source.spi.ToolingHintContextContainer, org.hibernate.boot.model.source.spi.IdentifiableTypeSource, org.hibernate.boot.model.source.spi.AttributeSourceContainer
Imports
java.util.ArrayList, .List, org.hibernate.boot.jaxb.hbm.spi.JaxbHbmJoinedSubclassEntityType, .JaxbHbmKeyType, .JaxbHbmOnDeleteEnum, org.hibernate.boot.model.source.spi.ColumnSource, .EntitySource, .JoinedSubclassEntitySource, .RelationalValueSource

Authors
Strong Liu, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final JaxbHbmKeyType
private final List<ColumnSource>

Constructor Summary

AccessConstructor and Description
public
JoinedSubclassEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmJoinedSubclassEntityType jaxbJoinedSubclassMapping, EntitySource container)

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
public String
getExplicitForeignKeyName()

Implements org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.getExplicitForeignKeyName.

Retrieve the name of the foreign key as supplied by the user, or null if the user supplied none.
public List<ColumnSource>
public boolean
Inherited from org.hibernate.boot.model.source.internal.hbm.SubclassEntitySourceImpl:
getPrimaryTablegetSuperType

Field Detail

jaxbKeyMappingback to summary
private final JaxbHbmKeyType jaxbKeyMapping
primaryKeyJoinColumnSourcesback to summary
private final List<ColumnSource> primaryKeyJoinColumnSources

Constructor Detail

JoinedSubclassEntitySourceImplback to summary
public JoinedSubclassEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmJoinedSubclassEntityType jaxbJoinedSubclassMapping, EntitySource container)

Method Detail

createForeignKeyConstraintback to summary
public boolean createForeignKeyConstraint()

Implements org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.createForeignKeyConstraint.

Doc from org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.createForeignKeyConstraint.

Primarily exists to support JPA's @ForeignKey(NO_CONSTRAINT).

Returns:boolean

true if the FK constraint should be created, false if not.

Annotations
@Override
getDiscriminatorMatchValueback to summary
public String getDiscriminatorMatchValue()

Overrides org.hibernate.boot.model.source.internal.hbm.SubclassEntitySourceImpl.getDiscriminatorMatchValue.

Implements org.hibernate.boot.model.source.spi.EntitySource.getDiscriminatorMatchValue.

Doc from org.hibernate.boot.model.source.spi.EntitySource.getDiscriminatorMatchValue.

Get the actual discriminator value in case of a single table inheritance

Returns:String

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

Annotations
@Override
getExplicitForeignKeyNameback to summary
public String getExplicitForeignKeyName()

Implements org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.getExplicitForeignKeyName.

Doc from org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.getExplicitForeignKeyName.

Retrieve the name of the foreign key as supplied by the user, or null if the user supplied none.

Returns:String

The user supplied foreign key name.

Annotations
@Override
getPrimaryKeyColumnSourcesback to summary
public List<ColumnSource> getPrimaryKeyColumnSources()

Implements org.hibernate.boot.model.source.spi.JoinedSubclassEntitySource.getPrimaryKeyColumnSources.

Doc from org.hibernate.boot.model.source.spi.JoinedSubclassEntitySource.getPrimaryKeyColumnSources.

The PrimaryKeyJoinColumns mapping for the joined-subclass.

Returns:List<ColumnSource>

The PrimaryKeyJoinColumnSource lists defined on the joined subclass or null otherwise.

Annotations
@Override
isCascadeDeleteEnabledback to summary
public boolean isCascadeDeleteEnabled()

Implements org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.isCascadeDeleteEnabled.

Doc from org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.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?

Returns:boolean

true, if the cascade delete is enabled; false, otherwise.

Annotations
@Override