Hi, Anders S�e wrote: > According to Suns JavaBeans spec at > http://java.sun.com/products/javabeans/docs/beans.101.pdf > (section 8.3.2) > > both the getDefault() and isDefault() methods are valid for boolean > properties. > The latter is preferred though, and i have never seen the first used > except in OJB. > Yet another thing for the ToDo-list ? :) >
As I already mentioned: OJB DOES NOT HAVE ANY FIXED SCHEME FOR GETTERS AND SETTERS! A short look at http://jakarta.apache.org/ojb/xref/org/apache/ojb/broker/metadata/PersistentFieldPropertyImpl.html#151 will show you that we are using getPropertyDescriptor().getReadMethod() to select the getter method. cheers, Thomas > /Soee > > -----Oprindelig meddelelse----- > Fra: Mahler Thomas [mailto:[EMAIL PROTECTED]] > Sendt: 3. september 2002 11:03 > Til: 'OJB Users List' > Emne: AW: getters/setters naming question > > > Hi, > > >>-----Urspr�ngliche Nachricht----- >>Von: Andrey Chernyh [mailto:[EMAIL PROTECTED]] >>Gesendet: Dienstag, 3. September 2002 10:41 >>An: OJB Users List >>Betreff: getters/setters naming question >> >> >>Hello! >> >>I have field named "default" >>I use PersistentFieldClass=org.apache.ojb.broker.metadata.Persistent >>FieldPropertyImpl in OJB.properties >> >>I want my access methods to be called >>isDefault() >>setDefault(), >>but now I must call them setIsDefault() and getIsDefailt() because of >>PersistentFieldClass rules. > > > Not because of our rules but because of JavaBeans rules. > > >>Is there any solution for this case? > > > You use a BeanInfo class to declare spcif getter/setter methods. > > cheers, > Thomas > > >>Is it possible to use different PersistentFieldClass settings for >>different classes? >> >>Thanks. >> >> >>-- >>Best regards, >> Andrey mailto:[EMAIL PROTECTED] >> >> >>-- >>To unsubscribe, e-mail: >><mailto:[EMAIL PROTECTED]> >>For additional commands, e-mail: >><mailto:[EMAIL PROTECTED]> >> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
