public interface AttributeSource extends ToolingHintContextContainer
Contract for sources of persistent attribute descriptions.
<p/>
These values are used to build Property instances.
| Modifier and Type | Method and 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.
|
org.hibernate.boot.model.source.internal.hbm.XmlElementMetadata |
getSourceType() |
HibernateTypeSource |
getTypeInformation()
Obtain information about the Hibernate type (
Type) for this attribute. |
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.
|
getToolingHintContextorg.hibernate.boot.model.source.internal.hbm.XmlElementMetadata getSourceType()
String getName()
Obtain the attribute name.
null is NOT allowed!boolean isSingular()
Attributes are (coarsely speaking) either singular or plural.
true indicates the attribute is singular (and therefore castable
to SingularAttributeSource); false indicates it is plural (and
therefore castable to PluralAttributeSource).String getXmlNodeName()
Ugh. This is the deprecated DOM4J entity-mode feature
AttributePath getAttributePath()
AttributeRole getAttributeRole()
HibernateTypeSource getTypeInformation()
Obtain information about the Hibernate type (Type) for this attribute.
String getPropertyAccessorName()
Obtain the name of the property accessor style used to access this attribute.
PropertyAccessStrategyboolean 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?
true indicates it should be included; false, it should not.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.