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

public Class PluralAttributeElementSourceManyToManyImpl

extends AbstractPluralAssociationElementSourceImpl
implements PluralAttributeElementSourceManyToMany
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.spi.PluralAttributeElementSourceManyToMany, org.hibernate.boot.model.source.spi.Orderable, org.hibernate.boot.model.source.spi.ForeignKeyContributingSource, org.hibernate.boot.model.source.spi.RelationalValueSourceContainer, org.hibernate.boot.model.source.spi.ColumnBindingDefaults, org.hibernate.boot.model.source.spi.PluralAttributeElementSourceAssociation, org.hibernate.boot.model.source.spi.AssociationSource, org.hibernate.boot.model.source.spi.PluralAttributeElementSource
Imports
java.util.List, org.hibernate.boot.jaxb.hbm.spi.JaxbHbmFilterType, .JaxbHbmManyToManyCollectionElementType, org.hibernate.boot.model.source.spi.FetchCharacteristics, .FilterSource, .PluralAttributeElementNature, .PluralAttributeElementSourceManyToMany, .PluralAttributeSource, .RelationalValueSource, org.hibernate.internal.util.StringHelper

Authors
Steve Ebersole, Gail Badner

Field Summary

Modifier and TypeField and Description
private final FetchCharacteristics
private final FilterSource[]
private final JaxbHbmManyToManyCollectionElementType
private static final FilterSource[]
private final String
private final List<RelationalValueSource>

Constructor Summary

AccessConstructor and Description
public
PluralAttributeElementSourceManyToManyImpl(MappingDocument mappingDocument, final PluralAttributeSource pluralAttributeSource, final JaxbHbmManyToManyCollectionElementType jaxbManyToManyElement)

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.
private FilterSource[]
public boolean
public String
getExplicitForeignKeyName()

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

Retrieve the name of the foreign key as supplied by the user, or null if the user supplied none.
public FetchCharacteristics
public FilterSource[]
public PluralAttributeElementNature
public String
getOrder()

Implements org.hibernate.boot.model.source.spi.Orderable.getOrder.

The order by clause used during loading this plural attribute.
public String
public String
public List<RelationalValueSource>
public String
public boolean
public boolean
public boolean
isOrdered()

Implements org.hibernate.boot.model.source.spi.Orderable.isOrdered.

If the source of plural attribute is supposed to be applied the ORDER BY when loading.
public boolean
Inherited from org.hibernate.boot.model.source.internal.hbm.AbstractPluralAssociationElementSourceImpl:
getAttributeSourceisMappedBy

Field Detail

fetchCharacteristicsback to summary
private final FetchCharacteristics fetchCharacteristics
filterSourcesback to summary
private final FilterSource[] filterSources
jaxbManyToManyElementback to summary
private final JaxbHbmManyToManyCollectionElementType jaxbManyToManyElement
NO_FILTER_SOURCESback to summary
private static final FilterSource[] NO_FILTER_SOURCES
referencedEntityNameback to summary
private final String referencedEntityName
valueSourcesback to summary
private final List<RelationalValueSource> valueSources

Constructor Detail

PluralAttributeElementSourceManyToManyImplback to summary
public PluralAttributeElementSourceManyToManyImpl(MappingDocument mappingDocument, final PluralAttributeSource pluralAttributeSource, final JaxbHbmManyToManyCollectionElementType jaxbManyToManyElement)

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
buildFilterSourcesback to summary
private FilterSource[] buildFilterSources()
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.PluralAttributeElementSourceManyToMany.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
getFetchCharacteristicsback to summary
public FetchCharacteristics getFetchCharacteristics()

Implements org.hibernate.boot.model.source.spi.PluralAttributeElementSourceManyToMany.getFetchCharacteristics.

Annotations
@Override
getFilterSourcesback to summary
public FilterSource[] getFilterSources()

Implements org.hibernate.boot.model.source.spi.PluralAttributeElementSourceManyToMany.getFilterSources.

Annotations
@Override
getNatureback to summary
public PluralAttributeElementNature getNature()

Implements org.hibernate.boot.model.source.spi.PluralAttributeElementSource.getNature.

Annotations
@Override
getOrderback to summary
public String getOrder()

Implements org.hibernate.boot.model.source.spi.Orderable.getOrder.

Doc from org.hibernate.boot.model.source.spi.Orderable.getOrder.

The order by clause used during loading this plural attribute.

If the ordering element is not specified, ordering by the primary key of the associated entity is assumed

Returns:String

The ORDER BY fragment used during loading this plural attribute from DB.

Annotations
@Override
getReferencedEntityAttributeNameback to summary
public String getReferencedEntityAttributeName()

Implements org.hibernate.boot.model.source.spi.PluralAttributeElementSourceManyToMany.getReferencedEntityAttributeName.

Annotations
@Override
getReferencedEntityNameback to summary
public String getReferencedEntityName()

Implements org.hibernate.boot.model.source.spi.PluralAttributeElementSourceManyToMany.getReferencedEntityName, org.hibernate.boot.model.source.spi.AssociationSource.getReferencedEntityName.

Doc from org.hibernate.boot.model.source.spi.AssociationSource.getReferencedEntityName.

Obtain the name of the referenced entity.

Returns:String

The name of the referenced entity

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
getWhereback to summary
public String getWhere()

Implements org.hibernate.boot.model.source.spi.PluralAttributeElementSourceManyToMany.getWhere.

Annotations
@Override
isCascadeDeleteEnabledback to summary
public boolean isCascadeDeleteEnabled()

Implements org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.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
isIgnoreNotFoundback to summary
public boolean isIgnoreNotFound()

Implements org.hibernate.boot.model.source.spi.PluralAttributeElementSourceManyToMany.isIgnoreNotFound, org.hibernate.boot.model.source.spi.AssociationSource.isIgnoreNotFound.

Annotations
@Override
isOrderedback to summary
public boolean isOrdered()

Implements org.hibernate.boot.model.source.spi.Orderable.isOrdered.

Doc from org.hibernate.boot.model.source.spi.Orderable.isOrdered.

If the source of plural attribute is supposed to be applied the ORDER BY when loading.

Returns:boolean

true indicates to apply the ORDER BY; false means not.

Annotations
@Override
isUniqueback to summary
public boolean isUnique()

Implements org.hibernate.boot.model.source.spi.PluralAttributeElementSourceManyToMany.isUnique.

Annotations
@Override