public class CompositeIdentifierSingularAttributeSourceManyToOneImpl extends AbstractToOneAttributeSourceImpl implements SingularAttributeSourceManyToOne, RelationalValueSourceContainer
<key-many-to-one/>
mappingConstructor and Description |
---|
CompositeIdentifierSingularAttributeSourceManyToOneImpl(MappingDocument mappingDocument,
AttributeSourceContainer container,
JaxbHbmCompositeKeyManyToOneType keyManyToOneElement) |
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.
|
AttributePath |
getAttributePath() |
AttributeRole |
getAttributeRole() |
String |
getCascadeStyleName()
Obtain the cascade styles to be applied to this association.
|
protected String |
getClassName() |
String |
getExplicitForeignKeyName()
Retrieve the name of the foreign key as supplied by the user, or
null if the user supplied none. |
FetchCharacteristicsSingularAssociationImpl |
getFetchCharacteristics() |
ForeignKeyDirection |
getForeignKeyDirection() |
String |
getName()
Obtain the attribute name.
|
String |
getPropertyAccessorName()
Obtain the name of the property accessor style used to access this attribute.
|
String |
getReferencedEntityAttributeName() |
String |
getReferencedEntityName()
Obtain the name of the referenced entity.
|
List<RelationalValueSource> |
getRelationalValueSources()
Obtain the contained
RelationalValueSource references. |
SingularAttributeNature |
getSingularAttributeNature()
Obtain the nature of this attribute type.
|
XmlElementMetadata |
getSourceType() |
ToolingHintContext |
getToolingHintContext() |
HibernateTypeSourceImpl |
getTypeInformation()
Obtain information about the Hibernate type (
Type ) for this attribute. |
String |
getXmlNodeName()
Ugh.
|
boolean |
isBytecodeLazy()
Should the attribute be lazily loaded by bytecode enhancement?
|
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 |
isEmbedXml() |
boolean |
isIncludedInOptimisticLocking()
If the containing entity is using optimistic locking, should this
attribute participate in that locking? Meaning, should changes in the
value of this attribute at runtime indicate that the entity is now dirty
in terms of optimistic locking?
|
Boolean |
isInsertable()
Did the mapping specify that the given attribute value(s) should be inserted into the database?
|
boolean |
isUnique() |
Boolean |
isUpdatable()
Did the mapping specify that the given attribute value(s) should be updated in the database?
|
boolean |
isVirtualAttribute()
Determine whether this is a virtual attribute or whether it physically exists on the users domain model.
|
createForeignKeyConstraint, getAttributeSource, getGenerationTiming, getNaturalIdMutability, isIgnoreNotFound, isMappedBy, isSingular
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGenerationTiming, getNaturalIdMutability
isSingular
createForeignKeyConstraint
getAttributeSource, isIgnoreNotFound, isMappedBy
public CompositeIdentifierSingularAttributeSourceManyToOneImpl(MappingDocument mappingDocument, AttributeSourceContainer container, JaxbHbmCompositeKeyManyToOneType keyManyToOneElement)
public SingularAttributeNature getSingularAttributeNature()
SingularAttributeSource
getSingularAttributeNature
in interface SingularAttributeSource
public Boolean isInsertable()
SingularAttributeSource
isInsertable
in interface SingularAttributeSource
true
indicates value(s) should be inserted; false
indicates not.public Boolean isUpdatable()
SingularAttributeSource
isUpdatable
in interface SingularAttributeSource
true
indicates value(s) should be updated; false
indicates not.public boolean isBytecodeLazy()
SingularAttributeSource
isBytecodeLazy
in interface SingularAttributeSource
true
to indicate the attribute should be lazily loaded by bytecode enhancement?public XmlElementMetadata getSourceType()
getSourceType
in interface AttributeSource
public String getName()
AttributeSource
getName
in interface AttributeSource
null
is NOT allowed!public String getXmlNodeName()
AttributeSource
getXmlNodeName
in interface AttributeSource
public AttributePath getAttributePath()
getAttributePath
in interface AttributeSource
public HibernateTypeSourceImpl getTypeInformation()
AttributeSource
Type
) for this attribute.getTypeInformation
in interface AttributeSource
public String getPropertyAccessorName()
AttributeSource
getPropertyAccessorName
in interface AttributeSource
PropertyAccessStrategy
public AttributeRole getAttributeRole()
getAttributeRole
in interface AttributeSource
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 isIncludedInOptimisticLocking()
AttributeSource
isIncludedInOptimisticLocking
in interface AttributeSource
true
indicates it should be included; false
, it should not.public FetchCharacteristicsSingularAssociationImpl getFetchCharacteristics()
getFetchCharacteristics
in interface FetchableAttributeSource
getFetchCharacteristics
in interface SingularAttributeSourceToOne
public boolean isVirtualAttribute()
SingularAttributeSource
isVirtualAttribute
in interface SingularAttributeSource
isVirtualAttribute
in class AbstractToOneAttributeSourceImpl
true
indicates the attribute is virtual, meaning it does NOT exist on the domain model;
false
indicates the attribute physically exists.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 String getReferencedEntityAttributeName()
getReferencedEntityAttributeName
in interface SingularAttributeSourceToOne
public String getReferencedEntityName()
AssociationSource
getReferencedEntityName
in interface AssociationSource
getReferencedEntityName
in interface SingularAttributeSourceToOne
public Boolean isEmbedXml()
isEmbedXml
in interface SingularAttributeSourceToOne
public boolean isUnique()
isUnique
in interface SingularAttributeSourceToOne
public ForeignKeyDirection getForeignKeyDirection()
getForeignKeyDirection
in interface SingularAttributeSourceToOne
public String getCascadeStyleName()
CascadeStyleSource
getCascadeStyleName
in interface CascadeStyleSource
public String getExplicitForeignKeyName()
ForeignKeyContributingSource
null
if the user supplied none.getExplicitForeignKeyName
in interface ForeignKeyContributingSource
public boolean isCascadeDeleteEnabled()
ForeignKeyContributingSource
isCascadeDeleteEnabled
in interface ForeignKeyContributingSource
true
, if the cascade delete is enabled; false
, otherwise.protected String getClassName()
public ToolingHintContext getToolingHintContext()
getToolingHintContext
in interface ToolingHintContextContainer
Copyright © 2021 JBoss by Red Hat. All rights reserved.