Sorry, get your last post too late ;-)

Armin

Armin Waibel wrote:

Hi,

R�mi Bars wrote:

Hi all,

i don't understand the use of the PersistentFieldIntrospectorImpl class.

in the OJB.properties i read:

# - PersistentFieldIntrospectorImpl
#   uses JavaBeans compliant calls only to access persistent attributes.
#   No Reflection is needed. But for each attribute xxx there must be
#   public getXxx() and setXxx() methods.

and in the code i read

org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldIntrospectorImpl


protected PropertyDescriptor findPropertyDescriptor(Class aClass, String aPropertyName) { ... pd = info.getPropertyDescriptors(); ... }

when my class extends another class, the introspector don't find the field
from the parent,


-> why don't u use the info.getMethodDescriptors() as mentionned in the
properties file?

I'm not familiar with java.beans package.
So what's wrong invoking
"Method m = getPropertyDescriptor().getWriteMethod();"
write method for the property to set the value?

and
"Method m = getPropertyDescriptor().getReadMethod();"
invoke read method to get the value?

regards,
Armin

how do u do that?

thank for ur help

Remi


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to