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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancreateForeignKeyConstraint()Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).AttributeSourcegetAttributeSource()GenerationTiminggetGenerationTiming()Obtain a description of if/when the attribute value is generated by the database.NaturalIdMutabilitygetNaturalIdMutability()Retrieve the natural id mutabilitybooleanisIgnoreNotFound()booleanisMappedBy()booleanisSingular()Attributes are (coarsely speaking) either singular or plural.booleanisVirtualAttribute()Determine 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, sourceMappingDocument
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.model.source.spi.AttributeSource
getAttributePath, getAttributeRole, getName, getPropertyAccessorName, getSourceType, getTypeInformation, getXmlNodeName, isIncludedInOptimisticLocking
-
Methods inherited from interface org.hibernate.boot.model.source.spi.CascadeStyleSource
getCascadeStyleName
-
Methods inherited from interface org.hibernate.boot.model.source.spi.ForeignKeyContributingSource
getExplicitForeignKeyName, isCascadeDeleteEnabled
-
Methods inherited from interface org.hibernate.boot.model.source.spi.SingularAttributeSource
getSingularAttributeNature, isBytecodeLazy, isInsertable, isUpdatable
-
Methods inherited from interface org.hibernate.boot.model.source.spi.SingularAttributeSourceToOne
getFetchCharacteristics, getForeignKeyDirection, getReferencedEntityAttributeName, getReferencedEntityName, isEmbedXml, isUnique
-
Methods inherited from interface org.hibernate.boot.model.source.spi.ToolingHintContextContainer
getToolingHintContext
-
-
-
-
Method Detail
-
getNaturalIdMutability
public NaturalIdMutability 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
public GenerationTiming 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
public AttributeSource 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.
-
-