Class PluralAttributeElementSourceManyToManyImpl
java.lang.Object
org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
org.hibernate.boot.model.source.internal.hbm.AbstractPluralAssociationElementSourceImpl
org.hibernate.boot.model.source.internal.hbm.PluralAttributeElementSourceManyToManyImpl
- All Implemented Interfaces:
AssociationSource,ColumnBindingDefaults,ForeignKeyContributingSource,Orderable,PluralAttributeElementSource,PluralAttributeElementSourceAssociation,PluralAttributeElementSourceManyToMany,RelationalValueSourceContainer
public class PluralAttributeElementSourceManyToManyImpl
extends AbstractPluralAssociationElementSourceImpl
implements PluralAttributeElementSourceManyToMany
-
Constructor Summary
ConstructorsConstructorDescriptionPluralAttributeElementSourceManyToManyImpl(MappingDocument mappingDocument, PluralAttributeSource pluralAttributeSource, JaxbHbmManyToManyCollectionElementType jaxbManyToManyElement) -
Method Summary
Modifier and TypeMethodDescriptionbooleanHow should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.booleanHow should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.booleanHow should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.booleanPrimarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).Retrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.getOrder()The order by clause used during loading this plural attribute.Obtain the name of the referenced entity.Obtain the containedRelationalValueSourcereferences.getWhere()booleanIs "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?booleanbooleanIf the source of plural attribute is supposed to be applied theORDER BYwhen loading.booleanisUnique()Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractPluralAssociationElementSourceImpl
getAttributeSource, isMappedByMethods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.boot.model.source.spi.AssociationSource
getAttributeSource, isMappedBy
-
Constructor Details
-
PluralAttributeElementSourceManyToManyImpl
public PluralAttributeElementSourceManyToManyImpl(MappingDocument mappingDocument, PluralAttributeSource pluralAttributeSource, JaxbHbmManyToManyCollectionElementType jaxbManyToManyElement)
-
-
Method Details
-
getNature
- Specified by:
getNaturein interfacePluralAttributeElementSource
-
getReferencedEntityName
Description copied from interface:AssociationSourceObtain the name of the referenced entity.- Specified by:
getReferencedEntityNamein interfaceAssociationSource- Specified by:
getReferencedEntityNamein interfacePluralAttributeElementSourceManyToMany- Returns:
- The name of the referenced entity
-
getFilterSources
- Specified by:
getFilterSourcesin interfacePluralAttributeElementSourceManyToMany
-
getReferencedEntityAttributeName
- Specified by:
getReferencedEntityAttributeNamein interfacePluralAttributeElementSourceManyToMany
-
getRelationalValueSources
Description copied from interface:RelationalValueSourceContainerObtain the containedRelationalValueSourcereferences.- Specified by:
getRelationalValueSourcesin interfaceRelationalValueSourceContainer- Returns:
- The contained
RelationalValueSourcereferences.
-
isIgnoreNotFound
public boolean isIgnoreNotFound()- Specified by:
isIgnoreNotFoundin interfaceAssociationSource- Specified by:
isIgnoreNotFoundin interfacePluralAttributeElementSourceManyToMany
-
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- Specified by:
getExplicitForeignKeyNamein interfacePluralAttributeElementSourceManyToMany- Returns:
- The user supplied foreign key name.
-
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- Returns:
true, if the cascade delete is enabled;false, otherwise.
-
isUnique
public boolean isUnique()- Specified by:
isUniquein interfacePluralAttributeElementSourceManyToMany
-
getWhere
- Specified by:
getWherein interfacePluralAttributeElementSourceManyToMany
-
getFetchCharacteristics
- Specified by:
getFetchCharacteristicsin interfacePluralAttributeElementSourceManyToMany
-
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.
-
isOrdered
public boolean isOrdered()Description copied from interface:OrderableIf the source of plural attribute is supposed to be applied theORDER BYwhen loading. -
getOrder
Description copied from interface:OrderableThe 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
-
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.
-