public class JoinedSubclassEntitySourceImpl extends SubclassEntitySourceImpl implements JoinedSubclassEntitySource
Constructor and Description |
---|
JoinedSubclassEntitySourceImpl(MappingDocument sourceMappingDocument,
JaxbHbmJoinedSubclassEntityType jaxbJoinedSubclassMapping,
EntitySource container) |
Modifier and Type | Method and Description |
---|---|
boolean |
createForeignKeyConstraint()
Primarily exists to support JPA's
@ForeignKey(NO_CONSTRAINT) . |
java.lang.String |
getDiscriminatorMatchValue()
Get the actual discriminator value in case of a single table inheritance
|
java.lang.String |
getExplicitForeignKeyName()
Retrieve the name of the foreign key as supplied by the user, or
null if the user supplied none. |
java.util.List<ColumnSource> |
getPrimaryKeyColumnSources()
The
PrimaryKeyJoinColumns 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?
|
getPrimaryTable, getSuperType
afterInstantiation, attributeSources, buildAttributeSources, buildAttributeSources, determineEntityMode, extractEntityNamingSource, getAttributePathBase, getAttributeRoleBase, getBatchSize, getCustomLoaderName, getCustomPersisterClassName, getCustomSqlDelete, getCustomSqlInsert, getCustomSqlUpdate, getEntityNamingSource, getFilterSources, getHierarchy, getJpaCallbackClasses, getLocalMetadataBuildingContext, getNamedNativeQueries, getNamedQueries, getOrigin, getProxy, getSecondaryTableMap, getSubTypes, getSynchronizedTableNames, getToolingHintContext, getTuplizerClassMap, getTypeName, getXmlNodeName, inferInLineViewName, injectHierarchy, isAbstract, isDynamicInsert, isDynamicUpdate, isLazy, isSelectBeforeUpdate, jaxbEntityMapping, quoteIdentifiersLocalToEntity
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBatchSize, getCustomLoaderName, getCustomPersisterClassName, getCustomSqlDelete, getCustomSqlInsert, getCustomSqlUpdate, getFilterSources, getNamedNativeQueries, getNamedQueries, getPrimaryTable, getProxy, getSecondaryTableMap, getSynchronizedTableNames, getTuplizerClassMap, getXmlNodeName, isAbstract, isDynamicInsert, isDynamicUpdate, isLazy, isSelectBeforeUpdate, quoteIdentifiersLocalToEntity
getHierarchy, getJpaCallbackClasses, getLocalMetadataBuildingContext, getOrigin, getSubTypes, getSuperType, getTypeName
attributeSources, getAttributePathBase, getAttributeRoleBase
getToolingHintContext
getEntityNamingSource
public JoinedSubclassEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmJoinedSubclassEntityType jaxbJoinedSubclassMapping, EntitySource container)
public boolean isCascadeDeleteEnabled()
ForeignKeyContributingSource
isCascadeDeleteEnabled
in interface ForeignKeyContributingSource
true
, if the cascade delete is enabled; false
, otherwise.public java.lang.String getExplicitForeignKeyName()
ForeignKeyContributingSource
null
if the user supplied none.getExplicitForeignKeyName
in interface ForeignKeyContributingSource
public boolean createForeignKeyConstraint()
ForeignKeyContributingSource
@ForeignKey(NO_CONSTRAINT)
.createForeignKeyConstraint
in interface ForeignKeyContributingSource
true
if the FK constraint should be created, false
if not.public java.util.List<ColumnSource> getPrimaryKeyColumnSources()
JoinedSubclassEntitySource
PrimaryKeyJoinColumns
mapping for the joined-subclass.getPrimaryKeyColumnSources
in interface JoinedSubclassEntitySource
PrimaryKeyJoinColumnSource
lists defined on the joined subclass or null
otherwise.public java.lang.String getDiscriminatorMatchValue()
EntitySource
getDiscriminatorMatchValue
in interface EntitySource
getDiscriminatorMatchValue
in class SubclassEntitySourceImpl
null
in case there is no
explicit value or a different inheritance schemeCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.