public class PluralAttributeElementSourceManyToManyImpl extends AbstractPluralAssociationElementSourceImpl implements PluralAttributeElementSourceManyToMany
Constructor and Description |
---|
PluralAttributeElementSourceManyToManyImpl(MappingDocument mappingDocument,
PluralAttributeSource pluralAttributeSource,
JaxbHbmManyToManyCollectionElementType jaxbManyToManyElement) |
Modifier and Type | Method and Description |
---|---|
boolean |
areValuesIncludedInInsertByDefault()
How should non-specification of value insertion by the individual value sources here be
interpreted in terms of defaulting that value.
|
boolean |
areValuesIncludedInUpdateByDefault()
How should non-specification of value updating by the individual value sources here be
interpreted in terms of defaulting that value.
|
boolean |
areValuesNullableByDefault()
How should non-specification of value nullability by the individual value sources here be
interpreted in terms of defaulting that value.
|
boolean |
createForeignKeyConstraint()
Primarily exists to support JPA's
@ForeignKey(NO_CONSTRAINT) . |
java.lang.String |
getExplicitForeignKeyName()
Retrieve the name of the foreign key as supplied by the user, or
null if the user supplied none. |
FetchCharacteristics |
getFetchCharacteristics() |
FilterSource[] |
getFilterSources() |
PluralAttributeElementNature |
getNature() |
java.lang.String |
getOrder()
The order by clause used during loading this plural attribute.
|
java.lang.String |
getReferencedEntityAttributeName() |
java.lang.String |
getReferencedEntityName()
Obtain the name of the referenced entity.
|
java.util.List<RelationalValueSource> |
getRelationalValueSources()
Obtain the contained
RelationalValueSource references. |
java.lang.String |
getWhere() |
boolean |
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?
|
boolean |
isIgnoreNotFound() |
boolean |
isOrdered()
If the source of plural attribute is supposed to be applied the
ORDER BY when loading. |
boolean |
isUnique() |
getAttributeSource, isMappedBy
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributeSource, isMappedBy
public PluralAttributeElementSourceManyToManyImpl(MappingDocument mappingDocument, PluralAttributeSource pluralAttributeSource, JaxbHbmManyToManyCollectionElementType jaxbManyToManyElement)
public PluralAttributeElementNature getNature()
getNature
in interface PluralAttributeElementSource
public java.lang.String getReferencedEntityName()
AssociationSource
getReferencedEntityName
in interface AssociationSource
getReferencedEntityName
in interface PluralAttributeElementSourceManyToMany
public FilterSource[] getFilterSources()
getFilterSources
in interface PluralAttributeElementSourceManyToMany
public java.lang.String getReferencedEntityAttributeName()
getReferencedEntityAttributeName
in interface PluralAttributeElementSourceManyToMany
public java.util.List<RelationalValueSource> getRelationalValueSources()
RelationalValueSourceContainer
RelationalValueSource
references.getRelationalValueSources
in interface RelationalValueSourceContainer
RelationalValueSource
references.public boolean isIgnoreNotFound()
isIgnoreNotFound
in interface AssociationSource
isIgnoreNotFound
in interface PluralAttributeElementSourceManyToMany
public java.lang.String getExplicitForeignKeyName()
ForeignKeyContributingSource
null
if the user supplied none.getExplicitForeignKeyName
in interface ForeignKeyContributingSource
getExplicitForeignKeyName
in interface PluralAttributeElementSourceManyToMany
public boolean isCascadeDeleteEnabled()
ForeignKeyContributingSource
isCascadeDeleteEnabled
in interface ForeignKeyContributingSource
true
, if the cascade delete is enabled; false
, otherwise.public boolean isUnique()
isUnique
in interface PluralAttributeElementSourceManyToMany
public java.lang.String getWhere()
getWhere
in interface PluralAttributeElementSourceManyToMany
public FetchCharacteristics getFetchCharacteristics()
getFetchCharacteristics
in interface PluralAttributeElementSourceManyToMany
public boolean areValuesIncludedInInsertByDefault()
ColumnBindingDefaults
areValuesIncludedInInsertByDefault
in interface ColumnBindingDefaults
true
Indicates that insertions are enabled by default for all value sources which
do not explicitly specify.public boolean areValuesIncludedInUpdateByDefault()
ColumnBindingDefaults
areValuesIncludedInUpdateByDefault
in interface ColumnBindingDefaults
true
Indicates that updates are enabled by default for all value sources which
do not explicitly specify.public boolean areValuesNullableByDefault()
ColumnBindingDefaults
areValuesNullableByDefault
in interface ColumnBindingDefaults
true
Indicates that insertions are enabled by default for all value sources which
do not explicitly specify.public boolean isOrdered()
Orderable
ORDER BY
when loading.public java.lang.String getOrder()
Orderable
OrderBy.value()
public boolean createForeignKeyConstraint()
ForeignKeyContributingSource
@ForeignKey(NO_CONSTRAINT)
.createForeignKeyConstraint
in interface ForeignKeyContributingSource
true
if the FK constraint should be created, false
if not.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.