Interface SingularAttributeSource
- All Superinterfaces:
AttributeSource,ToolingHintContextContainer
- All Known Subinterfaces:
SingularAttributeSourceAny,SingularAttributeSourceBasic,SingularAttributeSourceEmbedded,SingularAttributeSourceManyToOne,SingularAttributeSourceOneToOne,SingularAttributeSourceToOne,VersionAttributeSource
- All Known Implementing Classes:
AbstractSingularAttributeSourceEmbeddedImpl,AbstractToOneAttributeSourceImpl,CompositeIdentifierSingularAttributeSourceBasicImpl,CompositeIdentifierSingularAttributeSourceManyToOneImpl,SingularAttributeSourceAnyImpl
Source-agnostic description of information needed to bind a singular attribute.
-
Method Summary
Modifier and TypeMethodDescriptionObtain a description of if/when the attribute value is generated by the database.Retrieve the natural id mutabilityObtain the nature of this attribute type.booleanShould the attribute be lazily loaded by bytecode enhancement?Did the mapping specify that the given attribute value(s) should be inserted into the database?Did the mapping specify that the given attribute value(s) should be updated in the database?booleanDetermine 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, isSingularMethods inherited from interface org.hibernate.boot.model.source.spi.ToolingHintContextContainer
getToolingHintContext
-
Method Details
-
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
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
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
-