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
Constructors Constructor Description PluralAttributeElementSourceManyToManyImpl(MappingDocument mappingDocument, PluralAttributeSource pluralAttributeSource, JaxbHbmManyToManyCollectionElementType jaxbManyToManyElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareValuesIncludedInInsertByDefault()How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.booleanareValuesIncludedInUpdateByDefault()How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.booleanareValuesNullableByDefault()How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.booleancreateForeignKeyConstraint()Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).StringgetExplicitForeignKeyName()Retrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.FetchCharacteristicsgetFetchCharacteristics()FilterSource[]getFilterSources()PluralAttributeElementNaturegetNature()StringgetOrder()The order by clause used during loading this plural attribute.StringgetReferencedEntityAttributeName()StringgetReferencedEntityName()Obtain the name of the referenced entity.List<RelationalValueSource>getRelationalValueSources()Obtain the containedRelationalValueSourcereferences.StringgetWhere()booleanisCascadeDeleteEnabled()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?booleanisIgnoreNotFound()booleanisOrdered()If 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, 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 Detail
-
PluralAttributeElementSourceManyToManyImpl
public PluralAttributeElementSourceManyToManyImpl(MappingDocument mappingDocument, PluralAttributeSource pluralAttributeSource, JaxbHbmManyToManyCollectionElementType jaxbManyToManyElement)
-
-
Method Detail
-
getNature
public PluralAttributeElementNature getNature()
- Specified by:
getNaturein interfacePluralAttributeElementSource
-
getReferencedEntityName
public String 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
public FilterSource[] getFilterSources()
- Specified by:
getFilterSourcesin interfacePluralAttributeElementSourceManyToMany
-
getReferencedEntityAttributeName
public String getReferencedEntityAttributeName()
- Specified by:
getReferencedEntityAttributeNamein interfacePluralAttributeElementSourceManyToMany
-
getRelationalValueSources
public List<RelationalValueSource> 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
public String 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
public String getWhere()
- Specified by:
getWherein interfacePluralAttributeElementSourceManyToMany
-
getFetchCharacteristics
public FetchCharacteristics 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
public String 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
- Specified by:
getOrderin interfaceOrderable- Returns:
- The
ORDER BYfragment used during loading this plural attribute from DB. - See Also:
OrderBy.value()
-
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.
-
-