Interface AttributeSource
-
- All Superinterfaces:
ToolingHintContextContainer
- All Known Subinterfaces:
IndexedPluralAttributeSource
,PluralAttributeSource
,PluralAttributeSourceArray
,SingularAttributeSource
,SingularAttributeSourceAny
,SingularAttributeSourceBasic
,SingularAttributeSourceEmbedded
,SingularAttributeSourceManyToOne
,SingularAttributeSourceOneToOne
,SingularAttributeSourceToOne
,VersionAttributeSource
- All Known Implementing Classes:
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 build
Property
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttributePath
getAttributePath()
AttributeRole
getAttributeRole()
String
getName()
Obtain the attribute name.String
getPropertyAccessorName()
Obtain the name of the property accessor style used to access this attribute.XmlElementMetadata
getSourceType()
HibernateTypeSource
getTypeInformation()
Obtain information about the Hibernate type (Type
) for this attribute.String
getXmlNodeName()
This is only useful to log warnings when these deprecated attributes are populated.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
XmlElementMetadata getSourceType()
-
getName
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
String getXmlNodeName()
This is only useful to log warnings when these deprecated attributes are populated. It was only useful for DOM4J entity-mode, which was removed a long time ago.- 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
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.
-
-