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
ConstructorsConstructorDescriptionPluralAttributeKeySourceImpl
(MappingDocument mappingDocument, JaxbHbmKeyType jaxbKey, JaxbHbmManyToOneType jaxbManyToOne, AttributeSourceContainer container) PluralAttributeKeySourceImpl
(MappingDocument mappingDocument, JaxbHbmKeyType jaxbKey, AttributeSourceContainer container) -
Method Summary
Modifier and TypeMethodDescriptionboolean
How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.boolean
How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.boolean
How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.boolean
Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT)
.Retrieve the name of the foreign key as supplied by the user, ornull
if the user supplied none.Obtain the containedRelationalValueSource
references.boolean
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 Details
-
PluralAttributeKeySourceImpl
public PluralAttributeKeySourceImpl(MappingDocument mappingDocument, JaxbHbmKeyType jaxbKey, AttributeSourceContainer container) -
PluralAttributeKeySourceImpl
public PluralAttributeKeySourceImpl(MappingDocument mappingDocument, JaxbHbmKeyType jaxbKey, JaxbHbmManyToOneType jaxbManyToOne, AttributeSourceContainer container)
-
-
Method Details
-
getExplicitForeignKeyName
Description copied from interface:ForeignKeyContributingSource
Retrieve the name of the foreign key as supplied by the user, ornull
if the user supplied none.- Specified by:
getExplicitForeignKeyName
in interfaceForeignKeyContributingSource
- Returns:
- The user supplied foreign key name.
-
createForeignKeyConstraint
public boolean createForeignKeyConstraint()Description copied from interface:ForeignKeyContributingSource
Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT)
.- Specified by:
createForeignKeyConstraint
in interfaceForeignKeyContributingSource
- Returns:
true
if the FK constraint should be created,false
if not.
-
getReferencedPropertyName
- Specified by:
getReferencedPropertyName
in interfacePluralAttributeKeySource
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()Description copied from interface:ForeignKeyContributingSource
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?- Specified by:
isCascadeDeleteEnabled
in interfaceForeignKeyContributingSource
- Specified by:
isCascadeDeleteEnabled
in interfacePluralAttributeKeySource
- Returns:
true
, if the cascade delete is enabled;false
, otherwise.
-
getRelationalValueSources
Description copied from interface:RelationalValueSourceContainer
Obtain the containedRelationalValueSource
references.- Specified by:
getRelationalValueSources
in interfaceRelationalValueSourceContainer
- Returns:
- The contained
RelationalValueSource
references.
-
areValuesIncludedInInsertByDefault
public boolean areValuesIncludedInInsertByDefault()Description copied from interface:ColumnBindingDefaults
How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesIncludedInInsertByDefault
in interfaceColumnBindingDefaults
- Returns:
true
Indicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
areValuesIncludedInUpdateByDefault
public boolean areValuesIncludedInUpdateByDefault()Description copied from interface:ColumnBindingDefaults
How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesIncludedInUpdateByDefault
in interfaceColumnBindingDefaults
- Returns:
true
Indicates that updates are enabled by default for all value sources which do not explicitly specify.
-
areValuesNullableByDefault
public boolean areValuesNullableByDefault()Description copied from interface:ColumnBindingDefaults
How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.- Specified by:
areValuesNullableByDefault
in interfaceColumnBindingDefaults
- Returns:
true
Indicates that insertions are enabled by default for all value sources which do not explicitly specify.
-