Package net.sf.basedb.core
Class ExtendedPropertyAccessor
- java.lang.Object
-
- net.sf.basedb.core.ExtendedPropertyAccessor
-
- All Implemented Interfaces:
org.hibernate.property.access.spi.PropertyAccessStrategy
public final class ExtendedPropertyAccessor extends Object implements org.hibernate.property.access.spi.PropertyAccessStrategy
This class is used to interface with Hibernate for extended properties. We need specialized getter and setter methods since there are no regulare get and set methods for the extended properties. Ie. we have to callgetExtended("name")
instead ofgetName()
.During startup Hibernate creates a pair of
Getter
andSetter
objects for each extended property of anExtendable
item. These objects are then used to access the extended properties for all items via theGetterSetter.get
andGetterSetter.set
methods.- Version:
- 2.0
- Author:
- Nicklas, Samuel
- See Also:
ExtendableData
,ExtendedProperty
,ExtendedProperties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ExtendedPropertyAccessor.GetterSetter
This class implements the HibernateGetter
andSetter
interfaces.
-
Constructor Summary
Constructors Constructor Description ExtendedPropertyAccessor()
Create a new ExtendedPropertyAccessor object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.property.access.spi.PropertyAccess
buildPropertyAccess(Class clazz, String property)
-