Top Fields Constructors Methods
org.hibernate.boot.model.source.internal.hbm

public Class PluralAttributeKeySourceImpl

extends AbstractHbmSourceNode
implements PluralAttributeKeySource, RelationalValueSourceContainer
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.spi.RelationalValueSourceContainer, org.hibernate.boot.model.source.spi.ColumnBindingDefaults, org.hibernate.boot.model.source.spi.PluralAttributeKeySource, org.hibernate.boot.model.source.spi.ForeignKeyContributingSource
Imports
java.util.List, org.hibernate.boot.jaxb.hbm.spi.JaxbHbmKeyType, .JaxbHbmManyToOneType, org.hibernate.boot.model.source.spi.AttributeSourceContainer, .PluralAttributeKeySource, .RelationalValueSource, .RelationalValueSourceContainer, org.hibernate.internal.util.StringHelper

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final boolean
private final String
private final boolean
private final String
private final boolean
private final List<RelationalValueSource>

Constructor Summary

AccessConstructor and Description
public
public
PluralAttributeKeySourceImpl(MappingDocument mappingDocument, final JaxbHbmKeyType jaxbKey, final JaxbHbmManyToOneType jaxbManyToOne, final AttributeSourceContainer container)

Method Summary

Modifier and TypeMethod and Description
public boolean
areValuesIncludedInInsertByDefault()

Implements org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesIncludedInInsertByDefault.

How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.
public boolean
areValuesIncludedInUpdateByDefault()

Implements org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesIncludedInUpdateByDefault.

How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.
public boolean
areValuesNullableByDefault()

Implements org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesNullableByDefault.

How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.
public boolean
public String
getExplicitForeignKeyName()

Implements org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.getExplicitForeignKeyName.

Retrieve the name of the foreign key as supplied by the user, or null if the user supplied none.
public String
public List<RelationalValueSource>
public boolean
Inherited from org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode:
mappingRootmetadataBuildingContextoriginsourceMappingDocument

Field Detail

cascadeDeletesAtFkLevelback to summary
private final boolean cascadeDeletesAtFkLevel
explicitFkNameback to summary
private final String explicitFkName
nullableback to summary
private final boolean nullable
referencedPropertyNameback to summary
private final String referencedPropertyName
updateableback to summary
private final boolean updateable
valueSourcesback to summary
private final List<RelationalValueSource> valueSources

Constructor Detail

PluralAttributeKeySourceImplback to summary
public PluralAttributeKeySourceImpl(MappingDocument mappingDocument, final JaxbHbmKeyType jaxbKey, final AttributeSourceContainer container)
PluralAttributeKeySourceImplback to summary
public PluralAttributeKeySourceImpl(MappingDocument mappingDocument, final JaxbHbmKeyType jaxbKey, final JaxbHbmManyToOneType jaxbManyToOne, final AttributeSourceContainer container)

Method Detail

areValuesIncludedInInsertByDefaultback to summary
public boolean areValuesIncludedInInsertByDefault()

Implements org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesIncludedInInsertByDefault.

Doc from org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesIncludedInInsertByDefault.

How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.

Returns:boolean

true Indicates that insertions are enabled by default for all value sources which do not explicitly specify.

Annotations
@Override
areValuesIncludedInUpdateByDefaultback to summary
public boolean areValuesIncludedInUpdateByDefault()

Implements org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesIncludedInUpdateByDefault.

Doc from org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesIncludedInUpdateByDefault.

How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.

Returns:boolean

true Indicates that updates are enabled by default for all value sources which do not explicitly specify.

Annotations
@Override
areValuesNullableByDefaultback to summary
public boolean areValuesNullableByDefault()

Implements org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesNullableByDefault.

Doc from org.hibernate.boot.model.source.spi.ColumnBindingDefaults.areValuesNullableByDefault.

How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.

Returns:boolean

true Indicates that insertions are enabled by default for all value sources which do not explicitly specify.

Annotations
@Override
createForeignKeyConstraintback to summary
public boolean createForeignKeyConstraint()

Implements org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.createForeignKeyConstraint.

Doc from org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.createForeignKeyConstraint.

Primarily exists to support JPA's @ForeignKey(NO_CONSTRAINT).

Returns:boolean

true if the FK constraint should be created, false if not.

Annotations
@Override
getExplicitForeignKeyNameback to summary
public String getExplicitForeignKeyName()

Implements org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.getExplicitForeignKeyName.

Doc from org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.getExplicitForeignKeyName.

Retrieve the name of the foreign key as supplied by the user, or null if the user supplied none.

Returns:String

The user supplied foreign key name.

Annotations
@Override
getReferencedPropertyNameback to summary
public String getReferencedPropertyName()

Implements org.hibernate.boot.model.source.spi.PluralAttributeKeySource.getReferencedPropertyName.

Annotations
@Override
getRelationalValueSourcesback to summary
public List<RelationalValueSource> getRelationalValueSources()

Implements org.hibernate.boot.model.source.spi.RelationalValueSourceContainer.getRelationalValueSources.

Doc from org.hibernate.boot.model.source.spi.RelationalValueSourceContainer.getRelationalValueSources.

Obtain the contained RelationalValueSource references.

Returns:List<RelationalValueSource>

The contained RelationalValueSource references.

Annotations
@Override
isCascadeDeleteEnabledback to summary
public boolean isCascadeDeleteEnabled()

Implements org.hibernate.boot.model.source.spi.PluralAttributeKeySource.isCascadeDeleteEnabled.

Doc from org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.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?

Returns:boolean

true, if the cascade delete is enabled; false, otherwise.

Annotations
@Override