Package net.sf.basedb.core
Class ExtendedPropertyAccessor
java.lang.Object
net.sf.basedb.core.ExtendedPropertyAccessor
- All Implemented Interfaces:
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 call
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.
- Version:
- 2.0
- Author:
- Nicklas, Samuel
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final class
This class implements the HibernateGetter
andSetter
interfaces. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
ExtendedPropertyAccessor
public ExtendedPropertyAccessor()Create a new ExtendedPropertyAccessor object.
-
-
Method Details
-
buildPropertyAccess
- Specified by:
buildPropertyAccess
in interfacePropertyAccessStrategy
-