|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.ExtendedPropertyAccessor
public final class ExtendedPropertyAccessor
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.
ExtendableData
,
ExtendedProperty
,
ExtendedProperties
Nested Class Summary | |
---|---|
(package private) static class |
ExtendedPropertyAccessor.GetterSetter
This class implements the Hibernate Getter and
Setter interfaces. |
Constructor Summary | |
---|---|
ExtendedPropertyAccessor()
Create a new ExtendedPropertyAccessor object. |
Method Summary | |
---|---|
org.hibernate.property.Getter |
getGetter(Class clazz,
String property)
Create a Getter object for the specified class and
property. |
org.hibernate.property.Setter |
getSetter(Class clazz,
String property)
Create a Setter object for the specified class and
property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtendedPropertyAccessor()
Method Detail |
---|
public org.hibernate.property.Getter getGetter(Class clazz, String property) throws org.hibernate.PropertyNotFoundException
Getter
object for the specified class and
property.
getGetter
in interface org.hibernate.property.PropertyAccessor
clazz
- The Class
of the itemproperty
- The name of the property
org.hibernate.PropertyNotFoundException
- If the item is not Extendable
public org.hibernate.property.Setter getSetter(Class clazz, String property) throws org.hibernate.PropertyNotFoundException
Setter
object for the specified class and
property.
getSetter
in interface org.hibernate.property.PropertyAccessor
clazz
- The Class
of the itemproperty
- The name of the property
org.hibernate.PropertyNotFoundException
- If the item is not Extendable
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |