接口 AttributeSource
-
- 所有超级接口:
ToolingHintContextContainer
- 所有已知子接口:
IndexedPluralAttributeSource,PluralAttributeSource,PluralAttributeSourceArray,SingularAttributeSource,SingularAttributeSourceAny,SingularAttributeSourceBasic,SingularAttributeSourceEmbedded,SingularAttributeSourceManyToOne,SingularAttributeSourceOneToOne,SingularAttributeSourceToOne,VersionAttributeSource
- 所有已知实现类:
AbstractPluralAttributeSourceImpl,AbstractSingularAttributeSourceEmbeddedImpl,AbstractToOneAttributeSourceImpl,CompositeIdentifierSingularAttributeSourceBasicImpl,CompositeIdentifierSingularAttributeSourceManyToOneImpl,PluralAttributeSourceArrayImpl,PluralAttributeSourceBagImpl,PluralAttributeSourceIdBagImpl,PluralAttributeSourceListImpl,PluralAttributeSourceMapImpl,PluralAttributeSourcePrimitiveArrayImpl,PluralAttributeSourceSetImpl,SingularAttributeSourceAnyImpl
public interface AttributeSource extends ToolingHintContextContainer
Contract for sources of persistent attribute descriptions. These values are used to buildPropertyinstances.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 AttributePathgetAttributePath()AttributeRolegetAttributeRole()StringgetName()Obtain the attribute name.StringgetPropertyAccessorName()Obtain the name of the property accessor style used to access this attribute.XmlElementMetadatagetSourceType()HibernateTypeSourcegetTypeInformation()Obtain information about the Hibernate type (Type) for this attribute.StringgetXmlNodeName()Ugh.booleanisIncludedInOptimisticLocking()If the containing entity is using optimistic locking, should this attribute participate in that locking?booleanisSingular()Attributes are (coarsely speaking) either singular or plural.-
从接口继承的方法 org.hibernate.boot.model.source.spi.ToolingHintContextContainer
getToolingHintContext
-
-
-
-
方法详细资料
-
getSourceType
XmlElementMetadata getSourceType()
-
getName
String getName()
Obtain the attribute name.- 返回:
- The attribute name.
nullis NOT allowed!
-
isSingular
boolean isSingular()
Attributes are (coarsely speaking) either singular or plural.- 返回:
trueindicates the attribute is singular (and therefore castable toSingularAttributeSource);falseindicates it is plural (and therefore castable toPluralAttributeSource).
-
getXmlNodeName
String getXmlNodeName()
Ugh. This is the deprecated DOM4J entity-mode feature- 返回:
- The xml node name
-
getAttributePath
AttributePath getAttributePath()
-
getAttributeRole
AttributeRole getAttributeRole()
-
getTypeInformation
HibernateTypeSource getTypeInformation()
Obtain information about the Hibernate type (Type) for this attribute.- 返回:
- The Hibernate type information
-
getPropertyAccessorName
String getPropertyAccessorName()
Obtain the name of the property accessor style used to access this attribute.- 返回:
- The property accessor style for this attribute.
- 另请参阅:
PropertyAccessStrategy
-
isIncludedInOptimisticLocking
boolean isIncludedInOptimisticLocking()
If 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?- 返回:
trueindicates it should be included;false, it should not.
-
-