Class AbstractToOneAttributeSourceImpl
java.lang.Object
org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
org.hibernate.boot.model.source.internal.hbm.AbstractToOneAttributeSourceImpl
- All Implemented Interfaces:
AssociationSource,AttributeSource,CascadeStyleSource,FetchableAttributeSource,ForeignKeyContributingSource,SingularAttributeSource,SingularAttributeSourceToOne,ToolingHintContextContainer
- Direct Known Subclasses:
CompositeIdentifierSingularAttributeSourceManyToOneImpl
public abstract class AbstractToOneAttributeSourceImpl
extends AbstractHbmSourceNode
implements SingularAttributeSourceToOne
-
Method Summary
Modifier and TypeMethodDescriptionbooleanPrimarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).Obtain a description of if/when the attribute value is generated by the database.Retrieve the natural id mutabilitybooleanbooleanbooleanAttributes are (coarsely speaking) either singular or plural.booleanDetermine whether this is a virtual attribute or whether it physically exists on the users domain model.Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.boot.model.source.spi.AttributeSource
getAttributePath, getAttributeRole, getName, getPropertyAccessorName, getSourceType, getTypeInformation, getXmlNodeName, isIncludedInOptimisticLockingMethods inherited from interface org.hibernate.boot.model.source.spi.CascadeStyleSource
getCascadeStyleNameMethods inherited from interface org.hibernate.boot.model.source.spi.ForeignKeyContributingSource
getExplicitForeignKeyName, isCascadeDeleteEnabledMethods inherited from interface org.hibernate.boot.model.source.spi.SingularAttributeSource
getSingularAttributeNature, isBytecodeLazy, isInsertable, isUpdatableMethods inherited from interface org.hibernate.boot.model.source.spi.SingularAttributeSourceToOne
getFetchCharacteristics, getForeignKeyDirection, getReferencedEntityAttributeName, getReferencedEntityName, isEmbedXml, isUniqueMethods inherited from interface org.hibernate.boot.model.source.spi.ToolingHintContextContainer
getToolingHintContext
-
Method Details
-
getNaturalIdMutability
Description copied from interface:SingularAttributeSourceRetrieve the natural id mutability- Specified by:
getNaturalIdMutabilityin interfaceSingularAttributeSource- Returns:
- The mutability, see enum for meanings
-
isSingular
public boolean isSingular()Description copied from interface:AttributeSourceAttributes are (coarsely speaking) either singular or plural.- Specified by:
isSingularin interfaceAttributeSource- Returns:
trueindicates the attribute is singular (and therefore castable toSingularAttributeSource);falseindicates it is plural (and therefore castable toPluralAttributeSource).
-
isVirtualAttribute
public boolean isVirtualAttribute()Description copied from interface:SingularAttributeSourceDetermine whether this is a virtual attribute or whether it physically exists on the users domain model.- Specified by:
isVirtualAttributein interfaceSingularAttributeSource- Returns:
trueindicates the attribute is virtual, meaning it does NOT exist on the domain model;falseindicates the attribute physically exists.
-
getGenerationTiming
Description copied from interface:SingularAttributeSourceObtain a description of if/when the attribute value is generated by the database.- Specified by:
getGenerationTimingin interfaceSingularAttributeSource- Returns:
- The attribute value generation information
-
isIgnoreNotFound
public boolean isIgnoreNotFound()- Specified by:
isIgnoreNotFoundin interfaceAssociationSource
-
isMappedBy
public boolean isMappedBy()- Specified by:
isMappedByin interfaceAssociationSource
-
getAttributeSource
- Specified by:
getAttributeSourcein interfaceAssociationSource
-
createForeignKeyConstraint
public boolean createForeignKeyConstraint()Description copied from interface:ForeignKeyContributingSourcePrimarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).- Specified by:
createForeignKeyConstraintin interfaceForeignKeyContributingSource- Returns:
trueif the FK constraint should be created,falseif not.
-