Interface AttributeSource
-
- All Superinterfaces:
ToolingHintContextContainer
- All Known Subinterfaces:
org.hibernate.boot.model.source.internal.hbm.IndexedPluralAttributeSource
,PluralAttributeSource
,PluralAttributeSourceArray
,SingularAttributeSource
,SingularAttributeSourceAny
,SingularAttributeSourceBasic
,SingularAttributeSourceEmbedded
,SingularAttributeSourceManyToOne
,SingularAttributeSourceOneToOne
,SingularAttributeSourceToOne
,VersionAttributeSource
public interface AttributeSource extends ToolingHintContextContainer
Contract for sources of persistent attribute descriptions. These values are used to buildProperty
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttributePath
getAttributePath()
AttributeRole
getAttributeRole()
java.lang.String
getName()
Obtain the attribute name.java.lang.String
getPropertyAccessorName()
Obtain the name of the property accessor style used to access this attribute.org.hibernate.boot.model.source.internal.hbm.XmlElementMetadata
getSourceType()
HibernateTypeSource
getTypeInformation()
Obtain information about the Hibernate type (Type
) for this attribute.java.lang.String
getXmlNodeName()
Ugh.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?boolean
isSingular()
Attributes are (coarsely speaking) either singular or plural.-
Methods inherited from interface org.hibernate.boot.model.source.spi.ToolingHintContextContainer
getToolingHintContext
-
-
-
-
Method Detail
-
getSourceType
org.hibernate.boot.model.source.internal.hbm.XmlElementMetadata getSourceType()
-
getName
java.lang.String getName()
Obtain the attribute name.- Returns:
- The attribute name.
null
is NOT allowed!
-
isSingular
boolean isSingular()
Attributes are (coarsely speaking) either singular or plural.- Returns:
true
indicates the attribute is singular (and therefore castable toSingularAttributeSource
);false
indicates it is plural (and therefore castable toPluralAttributeSource
).
-
getXmlNodeName
java.lang.String getXmlNodeName()
Ugh. This is the deprecated DOM4J entity-mode feature- Returns:
- The xml node name
-
getAttributePath
AttributePath getAttributePath()
-
getAttributeRole
AttributeRole getAttributeRole()
-
getTypeInformation
HibernateTypeSource getTypeInformation()
Obtain information about the Hibernate type (Type
) for this attribute.- Returns:
- The Hibernate type information
-
getPropertyAccessorName
java.lang.String getPropertyAccessorName()
Obtain the name of the property accessor style used to access this attribute.- Returns:
- The property accessor style for this attribute.
- See Also:
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?- Returns:
true
indicates it should be included;false
, it should not.
-
-