Package net.sf.basedb.core
Class ExtendedPropertyAccessor
java.lang.Object
net.sf.basedb.core.ExtendedPropertyAccessor
- All Implemented Interfaces:
PropertyAccessStrategy
public final class ExtendedPropertyAccessor extends Object implements 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:
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
Modifier and Type Method Description PropertyAccess
buildPropertyAccess(Class clazz, String property)
-
Constructor Details
-
ExtendedPropertyAccessor
public ExtendedPropertyAccessor()Create a new ExtendedPropertyAccessor object.
-
-
Method Details
-
buildPropertyAccess
- Specified by:
buildPropertyAccess
in interfacePropertyAccessStrategy
-