|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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 | |
|---|---|
Getter |
getGetter(Class clazz,
String property)
Create a Getter object for the specified class and
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 Getter getGetter(Class clazz,
String property)
throws PropertyNotFoundException
Getter object for the specified class and
property.
getGetter in interface PropertyAccessorclazz - The Class of the itemproperty - The name of the property
PropertyNotFoundException - If the item is not Extendable
public Setter getSetter(Class clazz,
String property)
throws PropertyNotFoundException
Setter object for the specified class and
property.
getSetter in interface PropertyAccessorclazz - The Class of the itemproperty - The name of the property
PropertyNotFoundException - If the item is not Extendable
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||