类 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
-
- 所有已实现的接口:
Helper.InLineViewNameInferrer,AttributeSourceContainer,EntityNamingSourceContributor,EntitySource,ForeignKeyContributingSource,IdentifiableTypeSource,JoinedSubclassEntitySource,SubclassEntitySource,ToolingHintContextContainer
public class JoinedSubclassEntitySourceImpl extends SubclassEntitySourceImpl implements JoinedSubclassEntitySource
- 作者:
- Strong Liu, Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 JoinedSubclassEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmJoinedSubclassEntityType jaxbJoinedSubclassMapping, EntitySource container)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancreateForeignKeyConstraint()Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).StringgetDiscriminatorMatchValue()Get the actual discriminator value in case of a single table inheritanceStringgetExplicitForeignKeyName()Retrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.List<ColumnSource>getPrimaryKeyColumnSources()ThePrimaryKeyJoinColumnsmapping for the joined-subclass.booleanisCascadeDeleteEnabled()Is "cascade delete" enabled for the foreign key?-
从类继承的方法 org.hibernate.boot.model.source.internal.hbm.SubclassEntitySourceImpl
getPrimaryTable, getSuperType
-
从类继承的方法 org.hibernate.boot.model.source.internal.hbm.AbstractEntitySourceImpl
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
-
从类继承的方法 org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.boot.model.source.spi.AttributeSourceContainer
attributeSources, getAttributePathBase, getAttributeRoleBase
-
从接口继承的方法 org.hibernate.boot.model.source.spi.EntityNamingSourceContributor
getEntityNamingSource
-
从接口继承的方法 org.hibernate.boot.model.source.spi.EntitySource
getBatchSize, getCustomLoaderName, getCustomPersisterClassName, getCustomSqlDelete, getCustomSqlInsert, getCustomSqlUpdate, getFilterSources, getNamedNativeQueries, getNamedQueries, getPrimaryTable, getProxy, getSecondaryTableMap, getSynchronizedTableNames, getTuplizerClassMap, getXmlNodeName, isAbstract, isDynamicInsert, isDynamicUpdate, isLazy, isSelectBeforeUpdate, quoteIdentifiersLocalToEntity
-
从接口继承的方法 org.hibernate.boot.model.source.spi.IdentifiableTypeSource
getHierarchy, getJpaCallbackClasses, getLocalMetadataBuildingContext, getOrigin, getSubTypes, getSuperType, getTypeName
-
从接口继承的方法 org.hibernate.boot.model.source.spi.ToolingHintContextContainer
getToolingHintContext
-
-
-
-
构造器详细资料
-
JoinedSubclassEntitySourceImpl
public JoinedSubclassEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmJoinedSubclassEntityType jaxbJoinedSubclassMapping, EntitySource container)
-
-
方法详细资料
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()
从接口复制的说明:ForeignKeyContributingSourceIs "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?- 指定者:
isCascadeDeleteEnabled在接口中ForeignKeyContributingSource- 返回:
true, if the cascade delete is enabled;false, otherwise.
-
getExplicitForeignKeyName
public String getExplicitForeignKeyName()
从接口复制的说明:ForeignKeyContributingSourceRetrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.- 指定者:
getExplicitForeignKeyName在接口中ForeignKeyContributingSource- 返回:
- The user supplied foreign key name.
-
createForeignKeyConstraint
public boolean createForeignKeyConstraint()
从接口复制的说明:ForeignKeyContributingSourcePrimarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).- 指定者:
createForeignKeyConstraint在接口中ForeignKeyContributingSource- 返回:
trueif the FK constraint should be created,falseif not.
-
getPrimaryKeyColumnSources
public List<ColumnSource> getPrimaryKeyColumnSources()
从接口复制的说明:JoinedSubclassEntitySourceThePrimaryKeyJoinColumnsmapping for the joined-subclass.- 指定者:
getPrimaryKeyColumnSources在接口中JoinedSubclassEntitySource- 返回:
- The
PrimaryKeyJoinColumnSourcelists defined on the joined subclass ornullotherwise.
-
getDiscriminatorMatchValue
public String getDiscriminatorMatchValue()
从接口复制的说明:EntitySourceGet the actual discriminator value in case of a single table inheritance- 指定者:
getDiscriminatorMatchValue在接口中EntitySource- 覆盖:
getDiscriminatorMatchValue在类中SubclassEntitySourceImpl- 返回:
- the actual discriminator value in case of a single table inheritance or
nullin case there is no explicit value or a different inheritance scheme
-
-