接口 SingularAttributeSource
-
- 所有已知子接口:
SingularAttributeSourceAny,SingularAttributeSourceBasic,SingularAttributeSourceEmbedded,SingularAttributeSourceManyToOne,SingularAttributeSourceOneToOne,SingularAttributeSourceToOne,VersionAttributeSource
- 所有已知实现类:
AbstractSingularAttributeSourceEmbeddedImpl,AbstractToOneAttributeSourceImpl,CompositeIdentifierSingularAttributeSourceBasicImpl,CompositeIdentifierSingularAttributeSourceManyToOneImpl,SingularAttributeSourceAnyImpl
public interface SingularAttributeSource extends AttributeSource
Source-agnostic description of information needed to bind a singular attribute.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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?BooleanisInsertable()Did the mapping specify that the given attribute value(s) should be inserted into the database?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.-
从接口继承的方法 org.hibernate.boot.model.source.spi.AttributeSource
getAttributePath, getAttributeRole, getName, getPropertyAccessorName, getSourceType, getTypeInformation, getXmlNodeName, isIncludedInOptimisticLocking, isSingular
-
从接口继承的方法 org.hibernate.boot.model.source.spi.ToolingHintContextContainer
getToolingHintContext
-
-
-
-
方法详细资料
-
isVirtualAttribute
boolean isVirtualAttribute()
Determine whether this is a virtual attribute or whether it physically exists on the users domain model.- 返回:
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.- 返回:
- The attribute type nature
-
getGenerationTiming
GenerationTiming getGenerationTiming()
Obtain a description of if/when the attribute value is generated by the database.- 返回:
- The attribute value generation information
-
isInsertable
Boolean isInsertable()
Did the mapping specify that the given attribute value(s) should be inserted into the database?- 返回:
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?- 返回:
trueindicates value(s) should be updated;falseindicates not.
-
isBytecodeLazy
boolean isBytecodeLazy()
Should the attribute be lazily loaded by bytecode enhancement?- 返回:
trueto indicate the attribute should be lazily loaded by bytecode enhancement?
-
getNaturalIdMutability
NaturalIdMutability getNaturalIdMutability()
Retrieve the natural id mutability- 返回:
- The mutability, see enum for meanings
-
-