类 SingularAttributeSourceAnyImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
-
- org.hibernate.boot.model.source.internal.hbm.SingularAttributeSourceAnyImpl
-
- 所有已实现的接口:
AnyMappingSource,AttributeSource,CascadeStyleSource,SingularAttributeSource,SingularAttributeSourceAny,ToolingHintContextContainer
public class SingularAttributeSourceAnyImpl extends AbstractHbmSourceNode implements SingularAttributeSourceAny
- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 SingularAttributeSourceAnyImpl(MappingDocument sourceMappingDocument, AttributeSourceContainer container, JaxbHbmAnyAssociationType jaxbAnyMapping, String logicalTableName, NaturalIdMutability naturalIdMutability)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 AttributePathgetAttributePath()AttributeRolegetAttributeRole()StringgetCascadeStyleName()Obtain the cascade styles to be applied to this association.AnyDiscriminatorSourcegetDiscriminatorSource()GenerationTiminggetGenerationTiming()Obtain a description of if/when the attribute value is generated by the database.AnyKeySourcegetKeySource()StringgetName()Obtain the attribute name.NaturalIdMutabilitygetNaturalIdMutability()Retrieve the natural id mutabilityStringgetPropertyAccessorName()Obtain the name of the property accessor style used to access this attribute.SingularAttributeNaturegetSingularAttributeNature()Obtain the nature of this attribute type.XmlElementMetadatagetSourceType()ToolingHintContextgetToolingHintContext()HibernateTypeSourcegetTypeInformation()Obtain information about the Hibernate type (Type) for this attribute.StringgetXmlNodeName()Ugh.booleanisBytecodeLazy()Should the attribute be lazily loaded by bytecode enhancement?booleanisIncludedInOptimisticLocking()If the containing entity is using optimistic locking, should this attribute participate in that locking?BooleanisInsertable()Did the mapping specify that the given attribute value(s) should be inserted into the database?booleanisLazy()booleanisSingular()Attributes are (coarsely speaking) either singular or plural.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.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
-
-
-
-
构造器详细资料
-
SingularAttributeSourceAnyImpl
public SingularAttributeSourceAnyImpl(MappingDocument sourceMappingDocument, AttributeSourceContainer container, JaxbHbmAnyAssociationType jaxbAnyMapping, String logicalTableName, NaturalIdMutability naturalIdMutability)
-
-
方法详细资料
-
getSingularAttributeNature
public SingularAttributeNature getSingularAttributeNature()
从接口复制的说明:SingularAttributeSourceObtain the nature of this attribute type.- 指定者:
getSingularAttributeNature在接口中SingularAttributeSource- 返回:
- The attribute type nature
-
getSourceType
public XmlElementMetadata getSourceType()
- 指定者:
getSourceType在接口中AttributeSource
-
isSingular
public boolean isSingular()
从接口复制的说明:AttributeSourceAttributes are (coarsely speaking) either singular or plural.- 指定者:
isSingular在接口中AttributeSource- 返回:
trueindicates the attribute is singular (and therefore castable toSingularAttributeSource);falseindicates it is plural (and therefore castable toPluralAttributeSource).
-
getName
public String getName()
从接口复制的说明:AttributeSourceObtain the attribute name.- 指定者:
getName在接口中AttributeSource- 返回:
- The attribute name.
nullis NOT allowed!
-
getXmlNodeName
public String getXmlNodeName()
从接口复制的说明:AttributeSourceUgh. This is the deprecated DOM4J entity-mode feature- 指定者:
getXmlNodeName在接口中AttributeSource- 返回:
- The xml node name
-
getAttributePath
public AttributePath getAttributePath()
- 指定者:
getAttributePath在接口中AttributeSource
-
getAttributeRole
public AttributeRole getAttributeRole()
- 指定者:
getAttributeRole在接口中AttributeSource
-
isVirtualAttribute
public boolean isVirtualAttribute()
从接口复制的说明:SingularAttributeSourceDetermine whether this is a virtual attribute or whether it physically exists on the users domain model.- 指定者:
isVirtualAttribute在接口中SingularAttributeSource- 返回:
trueindicates the attribute is virtual, meaning it does NOT exist on the domain model;falseindicates the attribute physically exists.
-
getGenerationTiming
public GenerationTiming getGenerationTiming()
从接口复制的说明:SingularAttributeSourceObtain a description of if/when the attribute value is generated by the database.- 指定者:
getGenerationTiming在接口中SingularAttributeSource- 返回:
- The attribute value generation information
-
isInsertable
public Boolean isInsertable()
从接口复制的说明:SingularAttributeSourceDid the mapping specify that the given attribute value(s) should be inserted into the database?- 指定者:
isInsertable在接口中SingularAttributeSource- 返回:
trueindicates value(s) should be inserted;falseindicates not.
-
isUpdatable
public Boolean isUpdatable()
从接口复制的说明:SingularAttributeSourceDid the mapping specify that the given attribute value(s) should be updated in the database?- 指定者:
isUpdatable在接口中SingularAttributeSource- 返回:
trueindicates value(s) should be updated;falseindicates not.
-
isBytecodeLazy
public boolean isBytecodeLazy()
从接口复制的说明:SingularAttributeSourceShould the attribute be lazily loaded by bytecode enhancement?- 指定者:
isBytecodeLazy在接口中SingularAttributeSource- 返回:
trueto indicate the attribute should be lazily loaded by bytecode enhancement?
-
getNaturalIdMutability
public NaturalIdMutability getNaturalIdMutability()
从接口复制的说明:SingularAttributeSourceRetrieve the natural id mutability- 指定者:
getNaturalIdMutability在接口中SingularAttributeSource- 返回:
- The mutability, see enum for meanings
-
getTypeInformation
public HibernateTypeSource getTypeInformation()
从接口复制的说明:AttributeSourceObtain information about the Hibernate type (Type) for this attribute.- 指定者:
getTypeInformation在接口中AttributeSource- 返回:
- The Hibernate type information
-
getPropertyAccessorName
public String getPropertyAccessorName()
从接口复制的说明:AttributeSourceObtain the name of the property accessor style used to access this attribute.- 指定者:
getPropertyAccessorName在接口中AttributeSource- 返回:
- The property accessor style for this attribute.
- 另请参阅:
PropertyAccessStrategy
-
isIncludedInOptimisticLocking
public boolean isIncludedInOptimisticLocking()
从接口复制的说明:AttributeSourceIf the containing entity is using optimistic locking, should this attribute participate in that locking? Meaning, should changes in the value of this attribute at runtime indicate that the entity is now dirty in terms of optimistic locking?- 指定者:
isIncludedInOptimisticLocking在接口中AttributeSource- 返回:
trueindicates it should be included;false, it should not.
-
getToolingHintContext
public ToolingHintContext getToolingHintContext()
-
getDiscriminatorSource
public AnyDiscriminatorSource getDiscriminatorSource()
- 指定者:
getDiscriminatorSource在接口中AnyMappingSource
-
getKeySource
public AnyKeySource getKeySource()
- 指定者:
getKeySource在接口中AnyMappingSource
-
getCascadeStyleName
public String getCascadeStyleName()
从接口复制的说明:CascadeStyleSourceObtain the cascade styles to be applied to this association.- 指定者:
getCascadeStyleName在接口中CascadeStyleSource- 返回:
- The cascade styles.
-
isLazy
public boolean isLazy()
- 指定者:
isLazy在接口中AnyMappingSource
-
-