Top Fields Constructors Methods
org.hibernate.boot.model.source.internal.hbm

public abstract Class AbstractToOneAttributeSourceImpl

extends AbstractHbmSourceNode
implements SingularAttributeSourceToOne
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.spi.SingularAttributeSourceToOne, org.hibernate.boot.model.source.spi.CascadeStyleSource, org.hibernate.boot.model.source.spi.AssociationSource, org.hibernate.boot.model.source.spi.FetchableAttributeSource, org.hibernate.boot.model.source.spi.ForeignKeyContributingSource, org.hibernate.boot.model.source.spi.SingularAttributeSource, org.hibernate.boot.model.source.spi.AttributeSource, org.hibernate.boot.model.source.spi.ToolingHintContextContainer
Known Direct Subclasses
org.hibernate.boot.model.source.internal.hbm.CompositeIdentifierSingularAttributeSourceManyToOneImpl, org.hibernate.boot.model.source.internal.hbm.SingularAttributeSourceManyToOneImpl, org.hibernate.boot.model.source.internal.hbm.SingularAttributeSourceOneToOneImpl
Imports
org.hibernate.boot.model.source.spi.AttributeSource, .NaturalIdMutability, .SingularAttributeSourceToOne, org.hibernate.tuple.GenerationTiming

Authors
Steve Ebersole, Gail Badner

Field Summary

Modifier and TypeField and Description
private final NaturalIdMutability

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractToOneAttributeSourceImpl(MappingDocument sourceMappingDocument, NaturalIdMutability naturalIdMutability)

Method Summary

Modifier and TypeMethod and Description
public boolean
public AttributeSource
public GenerationTiming
getGenerationTiming()

Implements org.hibernate.boot.model.source.spi.SingularAttributeSource.getGenerationTiming.

Obtain a description of if/when the attribute value is generated by the database.
public NaturalIdMutability
public boolean
public boolean
public boolean
isSingular()

Implements org.hibernate.boot.model.source.spi.AttributeSource.isSingular.

Attributes are (coarsely speaking) either singular or plural.
public boolean
isVirtualAttribute()

Implements org.hibernate.boot.model.source.spi.SingularAttributeSource.isVirtualAttribute.

Determine whether this is a virtual attribute or whether it physically exists on the users domain model.
Inherited from org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode:
mappingRootmetadataBuildingContextoriginsourceMappingDocument

Field Detail

naturalIdMutabilityback to summary
private final NaturalIdMutability naturalIdMutability

Constructor Detail

AbstractToOneAttributeSourceImplback to summary
pack-priv AbstractToOneAttributeSourceImpl(MappingDocument sourceMappingDocument, NaturalIdMutability naturalIdMutability)

Method Detail

createForeignKeyConstraintback to summary
public boolean createForeignKeyConstraint()

Implements org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.createForeignKeyConstraint.

Doc from org.hibernate.boot.model.source.spi.ForeignKeyContributingSource.createForeignKeyConstraint.

Primarily exists to support JPA's @ForeignKey(NO_CONSTRAINT).

Returns:boolean

true if the FK constraint should be created, false if not.

Annotations
@Override
getAttributeSourceback to summary
public AttributeSource getAttributeSource()

Implements org.hibernate.boot.model.source.spi.AssociationSource.getAttributeSource.

Annotations
@Override
getGenerationTimingback to summary
public GenerationTiming getGenerationTiming()

Implements org.hibernate.boot.model.source.spi.SingularAttributeSource.getGenerationTiming.

Doc from org.hibernate.boot.model.source.spi.SingularAttributeSource.getGenerationTiming.

Obtain a description of if/when the attribute value is generated by the database.

Returns:GenerationTiming

The attribute value generation information

Annotations
@Override
getNaturalIdMutabilityback to summary
public NaturalIdMutability getNaturalIdMutability()

Implements org.hibernate.boot.model.source.spi.SingularAttributeSource.getNaturalIdMutability.

Doc from org.hibernate.boot.model.source.spi.SingularAttributeSource.getNaturalIdMutability.

Retrieve the natural id mutability

Returns:NaturalIdMutability

The mutability, see enum for meanings

Annotations
@Override
isIgnoreNotFoundback to summary
public boolean isIgnoreNotFound()

Implements org.hibernate.boot.model.source.spi.AssociationSource.isIgnoreNotFound.

Annotations
@Override
isMappedByback to summary
public boolean isMappedBy()

Implements org.hibernate.boot.model.source.spi.AssociationSource.isMappedBy.

Annotations
@Override
isSingularback to summary
public boolean isSingular()

Implements org.hibernate.boot.model.source.spi.AttributeSource.isSingular.

Doc from org.hibernate.boot.model.source.spi.AttributeSource.isSingular.

Attributes are (coarsely speaking) either singular or plural.

Returns:boolean

true indicates the attribute is singular (and therefore castable to SingularAttributeSource); false indicates it is plural (and therefore castable to PluralAttributeSource).

Annotations
@Override
isVirtualAttributeback to summary
public boolean isVirtualAttribute()

Implements org.hibernate.boot.model.source.spi.SingularAttributeSource.isVirtualAttribute.

Doc from org.hibernate.boot.model.source.spi.SingularAttributeSource.isVirtualAttribute.

Determine whether this is a virtual attribute or whether it physically exists on the users domain model.

Returns:boolean

true indicates the attribute is virtual, meaning it does NOT exist on the domain model; false indicates the attribute physically exists.

Annotations
@Override