类 PluralAttributeKeySourceImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
-
- org.hibernate.boot.model.source.internal.hbm.PluralAttributeKeySourceImpl
-
- 所有已实现的接口:
ColumnBindingDefaults,ForeignKeyContributingSource,PluralAttributeKeySource,RelationalValueSourceContainer
public class PluralAttributeKeySourceImpl extends AbstractHbmSourceNode implements PluralAttributeKeySource, RelationalValueSourceContainer
- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 PluralAttributeKeySourceImpl(MappingDocument mappingDocument, JaxbHbmKeyType jaxbKey, AttributeSourceContainer container)PluralAttributeKeySourceImpl(MappingDocument mappingDocument, JaxbHbmManyToOneType jaxbKey, AttributeSourceContainer container)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanareValuesIncludedInInsertByDefault()How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.booleanareValuesIncludedInUpdateByDefault()How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.booleanareValuesNullableByDefault()How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.booleancreateForeignKeyConstraint()Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).StringgetExplicitForeignKeyName()Retrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.StringgetReferencedPropertyName()List<RelationalValueSource>getRelationalValueSources()Obtain the containedRelationalValueSourcereferences.booleanisCascadeDeleteEnabled()Is "cascade delete" enabled for the foreign key?-
从类继承的方法 org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
-
-
-
-
构造器详细资料
-
PluralAttributeKeySourceImpl
public PluralAttributeKeySourceImpl(MappingDocument mappingDocument, JaxbHbmKeyType jaxbKey, AttributeSourceContainer container)
-
PluralAttributeKeySourceImpl
public PluralAttributeKeySourceImpl(MappingDocument mappingDocument, JaxbHbmManyToOneType jaxbKey, AttributeSourceContainer container)
-
-
方法详细资料
-
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.
-
getReferencedPropertyName
public String getReferencedPropertyName()
-
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- 指定者:
isCascadeDeleteEnabled在接口中PluralAttributeKeySource- 返回:
true, if the cascade delete is enabled;false, otherwise.
-
getRelationalValueSources
public List<RelationalValueSource> getRelationalValueSources()
从接口复制的说明:RelationalValueSourceContainerObtain the containedRelationalValueSourcereferences.- 指定者:
getRelationalValueSources在接口中RelationalValueSourceContainer- 返回:
- The contained
RelationalValueSourcereferences.
-
areValuesIncludedInInsertByDefault
public boolean areValuesIncludedInInsertByDefault()
从接口复制的说明:ColumnBindingDefaultsHow should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.- 指定者:
areValuesIncludedInInsertByDefault在接口中ColumnBindingDefaults- 返回:
trueIndicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
areValuesIncludedInUpdateByDefault
public boolean areValuesIncludedInUpdateByDefault()
从接口复制的说明:ColumnBindingDefaultsHow should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.- 指定者:
areValuesIncludedInUpdateByDefault在接口中ColumnBindingDefaults- 返回:
trueIndicates that updates are enabled by default for all value sources which do not explicitly specify.
-
areValuesNullableByDefault
public boolean areValuesNullableByDefault()
从接口复制的说明:ColumnBindingDefaultsHow should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.- 指定者:
areValuesNullableByDefault在接口中ColumnBindingDefaults- 返回:
trueIndicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
-