Some more clarifications if you please: Bruce Snyder wrote:
>This one time, at band camp, bikehead said: > >b>I have some clarification questions: >b> >b>1. how exactly is the descriptor used? I have hunted throught the API >b>and I can find a use of it anywhere. How does castor know to use my >b>CustomerDescriptor class? An example would be great. >b> >b>2. The reason I'm even trying to understand the descriptor is that it >b>appears to let me control how a values are accessed from an object. >b> Specifically, as far as I can tell the XMLFieldDescriptor has a >b>XMLFieldHandler which defines implementations for getValue and setValue >b>calls. I have a non-standard way to access fields in my objects and I >b>want to change the implementations of get/setValue to access the object >b>using different access methods. If I change the implementation of the >b>handlers for my descriptor will Castor XML use the new implementations >b>to access the properties in my object? Will Castor JDO use these >b>handlers to access the properties also? > >Brian, > >Please see these two documents about the mapping descriptor: > > http://www.castor.org/xml-mapping.html > > http://www.castor.org/jdo-mapping.html > This describes the XML mapping description. I'm trying to determine if Castor JDO uses the ClassDescriptor when accessing an object it will store to the database? It was pointed out to me in the source that the org.exolab.castor.xml package has ClassDescriptorResolverImpl which tries to find a ClassDescriptor file the class it is marshalling. I can use this class to control how properties are accessed in the object. Does Castor JDO use this same description when accessing the object? If not, is there a way to control how JDO accesses an objects properties. Ultimately I want to substitute my own code for invoking the accessors on the object. > >There are two documents describing it because it is used for both JDO >and XML. It is completely legal, however, to have more than one mapping >descriptor that is used at different times for different scenarios. > >Bruce > > And thank you for all your help on a great product. -- __o _-\<,_ Brian (_)/ (_) [EMAIL PROTECTED] x503 ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
