public class PluralAttributeKeySourceImpl extends AbstractHbmSourceNode implements PluralAttributeKeySource, RelationalValueSourceContainer
| Constructor and Description |
|---|
PluralAttributeKeySourceImpl(MappingDocument mappingDocument,
JaxbHbmKeyType jaxbKey,
AttributeSourceContainer container) |
| 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. |
java.lang.String |
getReferencedPropertyName() |
java.util.List<RelationalValueSource> |
getRelationalValueSources()
Obtain the contained
RelationalValueSource references. |
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?
|
mappingRoot, metadataBuildingContext, origin, sourceMappingDocumentpublic PluralAttributeKeySourceImpl(MappingDocument mappingDocument, JaxbHbmKeyType jaxbKey, AttributeSourceContainer container)
public java.lang.String getExplicitForeignKeyName()
ForeignKeyContributingSourcenull if the user supplied none.getExplicitForeignKeyName in interface ForeignKeyContributingSourcepublic boolean createForeignKeyConstraint()
ForeignKeyContributingSource@ForeignKey(NO_CONSTRAINT).createForeignKeyConstraint in interface ForeignKeyContributingSourcetrue if the FK constraint should be created, false if not.public java.lang.String getReferencedPropertyName()
getReferencedPropertyName in interface PluralAttributeKeySourcepublic boolean isCascadeDeleteEnabled()
ForeignKeyContributingSourceisCascadeDeleteEnabled in interface ForeignKeyContributingSourceisCascadeDeleteEnabled in interface PluralAttributeKeySourcetrue, if the cascade delete is enabled; false, otherwise.public java.util.List<RelationalValueSource> getRelationalValueSources()
RelationalValueSourceContainerRelationalValueSource references.getRelationalValueSources in interface RelationalValueSourceContainerRelationalValueSource references.public boolean areValuesIncludedInInsertByDefault()
ColumnBindingDefaultsareValuesIncludedInInsertByDefault in interface ColumnBindingDefaultstrue Indicates that insertions are enabled by default for all value sources which
do not explicitly specify.public boolean areValuesIncludedInUpdateByDefault()
ColumnBindingDefaultsareValuesIncludedInUpdateByDefault in interface ColumnBindingDefaultstrue Indicates that updates are enabled by default for all value sources which
do not explicitly specify.public boolean areValuesNullableByDefault()
ColumnBindingDefaultsareValuesNullableByDefault in interface ColumnBindingDefaultstrue Indicates that insertions are enabled by default for all value sources which
do not explicitly specify.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.