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) . |
String |
getExplicitForeignKeyName()
Retrieve the name of the foreign key as supplied by the user, or
null if the user supplied none. |
String |
getReferencedPropertyName() |
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, sourceMappingDocument
public PluralAttributeKeySourceImpl(MappingDocument mappingDocument, JaxbHbmKeyType jaxbKey, AttributeSourceContainer container)
public String getExplicitForeignKeyName()
ForeignKeyContributingSource
null
if the user supplied none.getExplicitForeignKeyName
in interface ForeignKeyContributingSource
public boolean createForeignKeyConstraint()
ForeignKeyContributingSource
@ForeignKey(NO_CONSTRAINT)
.createForeignKeyConstraint
in interface ForeignKeyContributingSource
true
if the FK constraint should be created, false
if not.public String getReferencedPropertyName()
getReferencedPropertyName
in interface PluralAttributeKeySource
public boolean isCascadeDeleteEnabled()
ForeignKeyContributingSource
isCascadeDeleteEnabled
in interface ForeignKeyContributingSource
isCascadeDeleteEnabled
in interface PluralAttributeKeySource
true
, if the cascade delete is enabled; false
, otherwise.public List<RelationalValueSource> getRelationalValueSources()
RelationalValueSourceContainer
RelationalValueSource
references.getRelationalValueSources
in interface RelationalValueSourceContainer
RelationalValueSource
references.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.Copyright © 2017 JBoss by Red Hat. All rights reserved.