public final class ExtendedPropertyAccessor extends java.lang.Object implements PropertyAccessor
getExtended("name")
instead of getName()
.
During startup Hibernate creates a pair of Getter
and Setter
objects for each extended property of an
Extendable
item. These objects are then used to access the
extended properties for all items via the GetterSetter.get
and GetterSetter.set
methods.
ExtendableData
,
ExtendedProperty
,
ExtendedProperties
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ExtendedPropertyAccessor.GetterSetter
This class implements the Hibernate
Getter and
Setter interfaces. |
Constructor and Description |
---|
ExtendedPropertyAccessor()
Create a new ExtendedPropertyAccessor object.
|
Modifier and Type | Method and Description |
---|---|
Getter |
getGetter(java.lang.Class clazz,
java.lang.String property)
Create a
Getter object for the specified class and
property. |
Setter |
getSetter(java.lang.Class clazz,
java.lang.String property)
Create a
Setter object for the specified class and
property. |
public ExtendedPropertyAccessor()
public Getter getGetter(java.lang.Class clazz, java.lang.String property) throws PropertyNotFoundException
Getter
object for the specified class and
property.getGetter
in interface PropertyAccessor
clazz
- The Class
of the itemproperty
- The name of the propertyPropertyNotFoundException
- If the item is not Extendable
public Setter getSetter(java.lang.Class clazz, java.lang.String property) throws PropertyNotFoundException
Setter
object for the specified class and
property.getSetter
in interface PropertyAccessor
clazz
- The Class
of the itemproperty
- The name of the propertyPropertyNotFoundException
- If the item is not Extendable