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, getSuperTypeafterInstantiation, 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, quoteIdentifiersLocalToEntitymappingRoot, metadataBuildingContext, origin, sourceMappingDocumentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBatchSize, getCustomLoaderName, getCustomPersisterClassName, getCustomSqlDelete, getCustomSqlInsert, getCustomSqlUpdate, getFilterSources, getNamedNativeQueries, getNamedQueries, getPrimaryTable, getProxy, getSecondaryTableMap, getSynchronizedTableNames, getTuplizerClassMap, getXmlNodeName, isAbstract, isDynamicInsert, isDynamicUpdate, isLazy, isSelectBeforeUpdate, quoteIdentifiersLocalToEntitygetHierarchy, getJpaCallbackClasses, getLocalMetadataBuildingContext, getOrigin, getSubTypes, getSuperType, getTypeNameattributeSources, getAttributePathBase, getAttributeRoleBasegetToolingHintContextgetEntityNamingSourcepublic JoinedSubclassEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmJoinedSubclassEntityType jaxbJoinedSubclassMapping, EntitySource container)
public boolean isCascadeDeleteEnabled()
ForeignKeyContributingSourceisCascadeDeleteEnabled in interface ForeignKeyContributingSourcetrue, if the cascade delete is enabled; false, otherwise.public java.lang.String getExplicitForeignKeyName()
ForeignKeyContributingSourcenull if the user supplied none.getExplicitForeignKeyName in interface ForeignKeyContributingSourcepublic boolean createForeignKeyConstraint()
ForeignKeyContributingSource@ForeignKey(NO_CONSTRAINT).createForeignKeyConstraint in interface ForeignKeyContributingSourcetrue if the FK constraint should be created, false if not.public java.util.List<ColumnSource> getPrimaryKeyColumnSources()
JoinedSubclassEntitySourcePrimaryKeyJoinColumns mapping for the joined-subclass.getPrimaryKeyColumnSources in interface JoinedSubclassEntitySourcePrimaryKeyJoinColumnSource lists defined on the joined subclass or null otherwise.public java.lang.String getDiscriminatorMatchValue()
EntitySourcegetDiscriminatorMatchValue in interface EntitySourcegetDiscriminatorMatchValue in class SubclassEntitySourceImplnull in case there is no
explicit value or a different inheritance schemeCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.