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 boolean
areValuesIncludedInInsertByDefault()
How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.boolean
areValuesIncludedInUpdateByDefault()
How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.boolean
areValuesNullableByDefault()
How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.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, ornull
if the user supplied none.String
getReferencedPropertyName()
List<RelationalValueSource>
getRelationalValueSources()
Obtain the containedRelationalValueSource
references.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?-
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: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
public String 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
public List<RelationalValueSource> 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.
-
-