Class PluralAttributeKeySourceImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
-
- org.hibernate.boot.model.source.internal.hbm.PluralAttributeKeySourceImpl
-
- All Implemented Interfaces:
ColumnBindingDefaults,ForeignKeyContributingSource,PluralAttributeKeySource,RelationalValueSourceContainer
public class PluralAttributeKeySourceImpl extends AbstractHbmSourceNode implements PluralAttributeKeySource, RelationalValueSourceContainer
-
-
Constructor Summary
Constructors Constructor Description PluralAttributeKeySourceImpl(MappingDocument mappingDocument, JaxbHbmKeyType jaxbKey, JaxbHbmManyToOneType jaxbManyToOne, AttributeSourceContainer container)PluralAttributeKeySourceImpl(MappingDocument mappingDocument, JaxbHbmKeyType jaxbKey, AttributeSourceContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?-
Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
-
-
-
-
Constructor Detail
-
PluralAttributeKeySourceImpl
public PluralAttributeKeySourceImpl(MappingDocument mappingDocument, JaxbHbmKeyType jaxbKey, AttributeSourceContainer container)
-
PluralAttributeKeySourceImpl
public PluralAttributeKeySourceImpl(MappingDocument mappingDocument, JaxbHbmKeyType jaxbKey, JaxbHbmManyToOneType jaxbManyToOne, AttributeSourceContainer container)
-
-
Method Detail
-
getExplicitForeignKeyName
public String getExplicitForeignKeyName()
Description copied from interface:ForeignKeyContributingSourceRetrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.- Specified by:
getExplicitForeignKeyNamein interfaceForeignKeyContributingSource- Returns:
- The user supplied foreign key name.
-
createForeignKeyConstraint
public boolean createForeignKeyConstraint()
Description copied from interface:ForeignKeyContributingSourcePrimarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).- Specified by:
createForeignKeyConstraintin interfaceForeignKeyContributingSource- Returns:
trueif the FK constraint should be created,falseif not.
-
getReferencedPropertyName
public String getReferencedPropertyName()
- Specified by:
getReferencedPropertyNamein interfacePluralAttributeKeySource
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()
Description copied from interface: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?- Specified by:
isCascadeDeleteEnabledin interfaceForeignKeyContributingSource- Specified by:
isCascadeDeleteEnabledin interfacePluralAttributeKeySource- Returns:
true, if the cascade delete is enabled;false, otherwise.
-
getRelationalValueSources
public List<RelationalValueSource> getRelationalValueSources()
Description copied from interface:RelationalValueSourceContainerObtain the containedRelationalValueSourcereferences.- Specified by:
getRelationalValueSourcesin interfaceRelationalValueSourceContainer- Returns:
- The contained
RelationalValueSourcereferences.
-
areValuesIncludedInInsertByDefault
public boolean areValuesIncludedInInsertByDefault()
Description copied from interface:ColumnBindingDefaultsHow should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesIncludedInInsertByDefaultin interfaceColumnBindingDefaults- Returns:
trueIndicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
areValuesIncludedInUpdateByDefault
public boolean areValuesIncludedInUpdateByDefault()
Description copied from interface:ColumnBindingDefaultsHow should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesIncludedInUpdateByDefaultin interfaceColumnBindingDefaults- Returns:
trueIndicates that updates are enabled by default for all value sources which do not explicitly specify.
-
areValuesNullableByDefault
public boolean areValuesNullableByDefault()
Description copied from interface:ColumnBindingDefaultsHow should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesNullableByDefaultin interfaceColumnBindingDefaults- Returns:
trueIndicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
-