类 CompositeIdentifierSingularAttributeSourceManyToOneImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
-
- org.hibernate.boot.model.source.internal.hbm.AbstractToOneAttributeSourceImpl
-
- org.hibernate.boot.model.source.internal.hbm.CompositeIdentifierSingularAttributeSourceManyToOneImpl
-
- 所有已实现的接口:
AssociationSource,AttributeSource,CascadeStyleSource,ColumnBindingDefaults,FetchableAttributeSource,ForeignKeyContributingSource,RelationalValueSourceContainer,SingularAttributeSource,SingularAttributeSourceManyToOne,SingularAttributeSourceToOne,ToolingHintContextContainer
public class CompositeIdentifierSingularAttributeSourceManyToOneImpl extends AbstractToOneAttributeSourceImpl implements SingularAttributeSourceManyToOne, RelationalValueSourceContainer
Descriptor for<key-many-to-one/>mapping- 作者:
- Steve Ebersole, Gail Badner
-
-
构造器概要
构造器 构造器 说明 CompositeIdentifierSingularAttributeSourceManyToOneImpl(MappingDocument mappingDocument, AttributeSourceContainer container, JaxbHbmCompositeKeyManyToOneType keyManyToOneElement)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()AttributeRolegetAttributeRole()StringgetCascadeStyleName()Obtain the cascade styles to be applied to this association.protected StringgetClassName()StringgetExplicitForeignKeyName()Retrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.FetchCharacteristicsSingularAssociationImplgetFetchCharacteristics()ForeignKeyDirectiongetForeignKeyDirection()StringgetName()Obtain the attribute name.StringgetPropertyAccessorName()Obtain the name of the property accessor style used to access this attribute.StringgetReferencedEntityAttributeName()StringgetReferencedEntityName()Obtain the name of the referenced entity.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?booleanisCascadeDeleteEnabled()Is "cascade delete" enabled for the foreign key?BooleanisEmbedXml()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?booleanisUnique()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.AbstractToOneAttributeSourceImpl
createForeignKeyConstraint, getAttributeSource, getGenerationTiming, getNaturalIdMutability, isIgnoreNotFound, isMappedBy, isSingular
-
从类继承的方法 org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.boot.model.source.spi.AssociationSource
getAttributeSource, isIgnoreNotFound, isMappedBy
-
从接口继承的方法 org.hibernate.boot.model.source.spi.AttributeSource
isSingular
-
从接口继承的方法 org.hibernate.boot.model.source.spi.ForeignKeyContributingSource
createForeignKeyConstraint
-
从接口继承的方法 org.hibernate.boot.model.source.spi.SingularAttributeSource
getGenerationTiming, getNaturalIdMutability
-
-
-
-
构造器详细资料
-
CompositeIdentifierSingularAttributeSourceManyToOneImpl
public CompositeIdentifierSingularAttributeSourceManyToOneImpl(MappingDocument mappingDocument, AttributeSourceContainer container, JaxbHbmCompositeKeyManyToOneType keyManyToOneElement)
-
-
方法详细资料
-
getSingularAttributeNature
public SingularAttributeNature getSingularAttributeNature()
从接口复制的说明:SingularAttributeSourceObtain the nature of this attribute type.- 指定者:
getSingularAttributeNature在接口中SingularAttributeSource- 返回:
- The attribute type nature
-
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?
-
getSourceType
public XmlElementMetadata getSourceType()
- 指定者:
getSourceType在接口中AttributeSource
-
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
-
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
-
getAttributeRole
public AttributeRole getAttributeRole()
- 指定者:
getAttributeRole在接口中AttributeSource
-
getRelationalValueSources
public List<RelationalValueSource> getRelationalValueSources()
从接口复制的说明:RelationalValueSourceContainerObtain the containedRelationalValueSourcereferences.- 指定者:
getRelationalValueSources在接口中RelationalValueSourceContainer- 返回:
- The contained
RelationalValueSourcereferences.
-
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.
-
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.
-
getFetchCharacteristics
public FetchCharacteristicsSingularAssociationImpl getFetchCharacteristics()
-
isVirtualAttribute
public boolean isVirtualAttribute()
从接口复制的说明:SingularAttributeSourceDetermine whether this is a virtual attribute or whether it physically exists on the users domain model.- 指定者:
isVirtualAttribute在接口中SingularAttributeSource- 覆盖:
isVirtualAttribute在类中AbstractToOneAttributeSourceImpl- 返回:
trueindicates the attribute is virtual, meaning it does NOT exist on the domain model;falseindicates the attribute physically exists.
-
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.
-
getReferencedEntityAttributeName
public String getReferencedEntityAttributeName()
-
getReferencedEntityName
public String getReferencedEntityName()
从接口复制的说明:AssociationSourceObtain the name of the referenced entity.- 指定者:
getReferencedEntityName在接口中AssociationSource- 指定者:
getReferencedEntityName在接口中SingularAttributeSourceToOne- 返回:
- The name of the referenced entity
-
isEmbedXml
public Boolean isEmbedXml()
- 指定者:
isEmbedXml在接口中SingularAttributeSourceToOne
-
isUnique
public boolean isUnique()
- 指定者:
isUnique在接口中SingularAttributeSourceToOne
-
getForeignKeyDirection
public ForeignKeyDirection getForeignKeyDirection()
-
getCascadeStyleName
public String getCascadeStyleName()
从接口复制的说明:CascadeStyleSourceObtain the cascade styles to be applied to this association.- 指定者:
getCascadeStyleName在接口中CascadeStyleSource- 返回:
- The cascade styles.
-
getExplicitForeignKeyName
public String getExplicitForeignKeyName()
从接口复制的说明:ForeignKeyContributingSourceRetrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.- 指定者:
getExplicitForeignKeyName在接口中ForeignKeyContributingSource- 返回:
- The user supplied foreign key name.
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()
从接口复制的说明:ForeignKeyContributingSourceIs "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?- 指定者:
isCascadeDeleteEnabled在接口中ForeignKeyContributingSource- 返回:
true, if the cascade delete is enabled;false, otherwise.
-
getClassName
protected String getClassName()
-
getToolingHintContext
public ToolingHintContext getToolingHintContext()
-
-