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) . |
String |
getExplicitForeignKeyName()
Retrieve the name of the foreign key as supplied by the user, or
null if the user supplied none. |
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?
|
getDiscriminatorMatchValue, 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, getDiscriminatorMatchValue, 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 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 List<ColumnSource> getPrimaryKeyColumnSources()
JoinedSubclassEntitySource
PrimaryKeyJoinColumns
mapping for the joined-subclass.getPrimaryKeyColumnSources
in interface JoinedSubclassEntitySource
PrimaryKeyJoinColumnSource
lists defined on the joined subclass or null
otherwise.Copyright © 2016 JBoss by Red Hat. All rights reserved.