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) . |
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() |
String |
getOrder()
The order by clause used during loading this plural attribute.
|
String |
getReferencedEntityAttributeName() |
String |
getReferencedEntityName()
Obtain the name of the referenced entity.
|
List<RelationalValueSource> |
getRelationalValueSources()
Obtain the contained
RelationalValueSource references. |
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 String getReferencedEntityName()
AssociationSource
getReferencedEntityName
in interface AssociationSource
getReferencedEntityName
in interface PluralAttributeElementSourceManyToMany
public FilterSource[] getFilterSources()
getFilterSources
in interface PluralAttributeElementSourceManyToMany
public String getReferencedEntityAttributeName()
getReferencedEntityAttributeName
in interface PluralAttributeElementSourceManyToMany
public List<RelationalValueSource> getRelationalValueSources()
RelationalValueSourceContainer
RelationalValueSource
references.getRelationalValueSources
in interface RelationalValueSourceContainer
RelationalValueSource
references.public boolean isIgnoreNotFound()
isIgnoreNotFound
in interface AssociationSource
isIgnoreNotFound
in interface PluralAttributeElementSourceManyToMany
public 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 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 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-2017 Red Hat, Inc. All Rights Reserved.