类 CompositeIdentifierSingularAttributeSourceBasicImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
-
- org.hibernate.boot.model.source.internal.hbm.CompositeIdentifierSingularAttributeSourceBasicImpl
-
- 所有已实现的接口:
ImplicitBasicColumnNameSource,ImplicitNameSource,AttributeSource,ColumnBindingDefaults,RelationalValueSourceContainer,SingularAttributeSource,SingularAttributeSourceBasic,ToolingHintContextContainer
public class CompositeIdentifierSingularAttributeSourceBasicImpl extends AbstractHbmSourceNode implements SingularAttributeSourceBasic
Descriptor for<key-property/>- 作者:
- Steve Ebersole, Gail Badner
-
-
构造器概要
构造器 构造器 说明 CompositeIdentifierSingularAttributeSourceBasicImpl(MappingDocument mappingDocument, AttributeSourceContainer container, JaxbHbmCompositeKeyBasicAttributeType keyPropertyElement)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanareValuesIncludedInInsertByDefault()How should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.booleanareValuesIncludedInUpdateByDefault()How should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.booleanareValuesNullableByDefault()How should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.AttributePathgetAttributePath()Access to the AttributePath for the basic valueAttributeRolegetAttributeRole()MetadataBuildingContextgetBuildingContext()Access to the current building context.GenerationTiminggetGenerationTiming()Obtain a description of if/when the attribute value is generated by the database.StringgetName()Obtain the attribute name.NaturalIdMutabilitygetNaturalIdMutability()Retrieve the natural id mutabilityStringgetPropertyAccessorName()Obtain the name of the property accessor style used to access this attribute.List<RelationalValueSource>getRelationalValueSources()Obtain the containedRelationalValueSourcereferences.SingularAttributeNaturegetSingularAttributeNature()Obtain the nature of this attribute type.XmlElementMetadatagetSourceType()ToolingHintContextgetToolingHintContext()HibernateTypeSourceImplgetTypeInformation()Obtain information about the Hibernate type (Type) for this attribute.StringgetXmlNodeName()Ugh.booleanisBytecodeLazy()Should the attribute be lazily loaded by bytecode enhancement?booleanisCollectionElement()Is the basic column the "element column" for a collection?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?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
-
-
-
-
构造器详细资料
-
CompositeIdentifierSingularAttributeSourceBasicImpl
public CompositeIdentifierSingularAttributeSourceBasicImpl(MappingDocument mappingDocument, AttributeSourceContainer container, JaxbHbmCompositeKeyBasicAttributeType keyPropertyElement)
-
-
方法详细资料
-
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()
从接口复制的说明:ImplicitBasicColumnNameSourceAccess to the AttributePath for the basic value- 指定者:
getAttributePath在接口中AttributeSource- 指定者:
getAttributePath在接口中ImplicitBasicColumnNameSource- 返回:
- The AttributePath for the basic value
-
isCollectionElement
public boolean isCollectionElement()
从接口复制的说明:ImplicitBasicColumnNameSourceIs the basic column the "element column" for a collection? Historical handling for these inhbm.xmlbinding was to simply name the column "elt".- 指定者:
isCollectionElement在接口中ImplicitBasicColumnNameSource- 返回:
trueif the column being named is the collection element column;falseotherwise.
-
getAttributeRole
public AttributeRole getAttributeRole()
- 指定者:
getAttributeRole在接口中AttributeSource
-
getTypeInformation
public HibernateTypeSourceImpl 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
-
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.
-
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.
-
areValuesIncludedInInsertByDefault
public boolean areValuesIncludedInInsertByDefault()
从接口复制的说明:ColumnBindingDefaultsHow should non-specification of value insertion by the individual value sources here be interpreted in terms of defaulting that value.- 指定者:
areValuesIncludedInInsertByDefault在接口中ColumnBindingDefaults- 返回:
trueIndicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
areValuesIncludedInUpdateByDefault
public boolean areValuesIncludedInUpdateByDefault()
从接口复制的说明:ColumnBindingDefaultsHow should non-specification of value updating by the individual value sources here be interpreted in terms of defaulting that value.- 指定者:
areValuesIncludedInUpdateByDefault在接口中ColumnBindingDefaults- 返回:
trueIndicates that updates are enabled by default for all value sources which do not explicitly specify.
-
areValuesNullableByDefault
public boolean areValuesNullableByDefault()
从接口复制的说明:ColumnBindingDefaultsHow should non-specification of value nullability by the individual value sources here be interpreted in terms of defaulting that value.- 指定者:
areValuesNullableByDefault在接口中ColumnBindingDefaults- 返回:
trueIndicates that insertions are enabled by default for all value sources which do not explicitly specify.
-
getRelationalValueSources
public List<RelationalValueSource> getRelationalValueSources()
从接口复制的说明:RelationalValueSourceContainerObtain the containedRelationalValueSourcereferences.- 指定者:
getRelationalValueSources在接口中RelationalValueSourceContainer- 返回:
- The contained
RelationalValueSourcereferences.
-
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
-
getToolingHintContext
public ToolingHintContext getToolingHintContext()
-
getBuildingContext
public MetadataBuildingContext getBuildingContext()
从接口复制的说明:ImplicitNameSourceAccess to the current building context.- 指定者:
getBuildingContext在接口中ImplicitNameSource- 返回:
- The building context
-
-