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 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.getOrder()
The order by clause used during loading this plural attribute.Obtain the name of the referenced entity.Obtain the containedRelationalValueSource
references.getWhere()
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?boolean
boolean
If the source of plural attribute is supposed to be applied theORDER BY
when loading.boolean
isUnique()
Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractPluralAssociationElementSourceImpl
getAttributeSource, isMappedBy
Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getNature
in interfacePluralAttributeElementSource
-
getReferencedEntityName
Description copied from interface:AssociationSource
Obtain the name of the referenced entity.- Specified by:
getReferencedEntityName
in interfaceAssociationSource
- Specified by:
getReferencedEntityName
in interfacePluralAttributeElementSourceManyToMany
- Returns:
- The name of the referenced entity
-
getFilterSources
- Specified by:
getFilterSources
in interfacePluralAttributeElementSourceManyToMany
-
getReferencedEntityAttributeName
- Specified by:
getReferencedEntityAttributeName
in interfacePluralAttributeElementSourceManyToMany
-
getRelationalValueSources
Description copied from interface:RelationalValueSourceContainer
Obtain the containedRelationalValueSource
references.- Specified by:
getRelationalValueSources
in interfaceRelationalValueSourceContainer
- Returns:
- The contained
RelationalValueSource
references.
-
isIgnoreNotFound
public boolean isIgnoreNotFound()- Specified by:
isIgnoreNotFound
in interfaceAssociationSource
- Specified by:
isIgnoreNotFound
in interfacePluralAttributeElementSourceManyToMany
-
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
- Specified by:
getExplicitForeignKeyName
in interfacePluralAttributeElementSourceManyToMany
- Returns:
- The user supplied foreign key name.
-
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
- Returns:
true
, if the cascade delete is enabled;false
, otherwise.
-
isUnique
public boolean isUnique()- Specified by:
isUnique
in interfacePluralAttributeElementSourceManyToMany
-
getWhere
- Specified by:
getWhere
in interfacePluralAttributeElementSourceManyToMany
-
getFetchCharacteristics
- Specified by:
getFetchCharacteristics
in interfacePluralAttributeElementSourceManyToMany
-
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.
-
isOrdered
public boolean isOrdered()Description copied from interface:Orderable
If the source of plural attribute is supposed to be applied theORDER BY
when loading. -
getOrder
Description copied from interface:Orderable
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
-
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.
-