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 TypeMethodDescriptionboolean
Primarily 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 mutabilityboolean
boolean
boolean
Attributes are (coarsely speaking) either singular or plural.boolean
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 Details
-
getNaturalIdMutability
Description copied from interface:SingularAttributeSource
Retrieve the natural id mutability- Specified by:
getNaturalIdMutability
in interfaceSingularAttributeSource
- Returns:
- The mutability, see enum for meanings
-
isSingular
public boolean isSingular()Description copied from interface:AttributeSource
Attributes are (coarsely speaking) either singular or plural.- Specified by:
isSingular
in interfaceAttributeSource
- Returns:
true
indicates the attribute is singular (and therefore castable toSingularAttributeSource
);false
indicates it is plural (and therefore castable toPluralAttributeSource
).
-
isVirtualAttribute
public boolean isVirtualAttribute()Description copied from interface:SingularAttributeSource
Determine whether this is a virtual attribute or whether it physically exists on the users domain model.- Specified by:
isVirtualAttribute
in interfaceSingularAttributeSource
- Returns:
true
indicates the attribute is virtual, meaning it does NOT exist on the domain model;false
indicates the attribute physically exists.
-
getGenerationTiming
Description copied from interface:SingularAttributeSource
Obtain a description of if/when the attribute value is generated by the database.- Specified by:
getGenerationTiming
in interfaceSingularAttributeSource
- Returns:
- The attribute value generation information
-
isIgnoreNotFound
public boolean isIgnoreNotFound()- Specified by:
isIgnoreNotFound
in interfaceAssociationSource
-
isMappedBy
public boolean isMappedBy()- Specified by:
isMappedBy
in interfaceAssociationSource
-
getAttributeSource
- Specified by:
getAttributeSource
in interfaceAssociationSource
-
createForeignKeyConstraint
public boolean createForeignKeyConstraint()Description copied from interface:ForeignKeyContributingSource
Primarily exists to support JPA's@ForeignKey(NO_CONSTRAINT)
.- Specified by:
createForeignKeyConstraint
in interfaceForeignKeyContributingSource
- Returns:
true
if the FK constraint should be created,false
if not.
-