Interface SingularAttributeSource
-
- All Superinterfaces:
AttributeSource,ToolingHintContextContainer
- All Known Subinterfaces:
SingularAttributeSourceAny,SingularAttributeSourceBasic,SingularAttributeSourceEmbedded,SingularAttributeSourceManyToOne,SingularAttributeSourceOneToOne,SingularAttributeSourceToOne,VersionAttributeSource
public interface SingularAttributeSource extends AttributeSource
Source-agnostic description of information needed to bind a singular attribute.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GenerationTiminggetGenerationTiming()Obtain a description of if/when the attribute value is generated by the database.NaturalIdMutabilitygetNaturalIdMutability()Retrieve the natural id mutabilitySingularAttributeNaturegetSingularAttributeNature()Obtain the nature of this attribute type.booleanisBytecodeLazy()Should the attribute be lazily loaded by bytecode enhancement?java.lang.BooleanisInsertable()Did the mapping specify that the given attribute value(s) should be inserted into the database?java.lang.BooleanisUpdatable()Did the mapping specify that the given attribute value(s) should be updated in the database?booleanisVirtualAttribute()Determine whether this is a virtual attribute or whether it physically exists on the users domain model.-
Methods inherited from interface org.hibernate.boot.model.source.spi.AttributeSource
getAttributePath, getAttributeRole, getName, getPropertyAccessorName, getSourceType, getTypeInformation, getXmlNodeName, isIncludedInOptimisticLocking, isSingular
-
Methods inherited from interface org.hibernate.boot.model.source.spi.ToolingHintContextContainer
getToolingHintContext
-
-
-
-
Method Detail
-
isVirtualAttribute
boolean isVirtualAttribute()
Determine whether this is a virtual attribute or whether it physically exists on the users domain model.- Returns:
trueindicates the attribute is virtual, meaning it does NOT exist on the domain model;falseindicates the attribute physically exists.
-
getSingularAttributeNature
SingularAttributeNature getSingularAttributeNature()
Obtain the nature of this attribute type.- Returns:
- The attribute type nature
-
getGenerationTiming
GenerationTiming getGenerationTiming()
Obtain a description of if/when the attribute value is generated by the database.- Returns:
- The attribute value generation information
-
isInsertable
java.lang.Boolean isInsertable()
Did the mapping specify that the given attribute value(s) should be inserted into the database?- Returns:
trueindicates value(s) should be inserted;falseindicates not.
-
isUpdatable
java.lang.Boolean isUpdatable()
Did the mapping specify that the given attribute value(s) should be updated in the database?- Returns:
trueindicates value(s) should be updated;falseindicates not.
-
isBytecodeLazy
boolean isBytecodeLazy()
Should the attribute be lazily loaded by bytecode enhancement?- Returns:
trueto indicate the attribute should be lazily loaded by bytecode enhancement?
-
getNaturalIdMutability
NaturalIdMutability getNaturalIdMutability()
Retrieve the natural id mutability- Returns:
- The mutability, see enum for meanings
-
-