Re: Re: [dev-groupware] Java OpenGroupware API - EarlyAccess Release

Helge Hess <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
On Montag, Sep 1, 2003, at 02:32 Europe/Berlin, murphee (Werner 
Schuster) wrote:
>>> eg. some "name" field (or whatever) is queried with eg. "getName()",
>>> this would result in a call that fetches only the name;
>> Which would be highly inefficient as it would result in 
>> "attribute-count x records" queries.  You basically need to allow the 
>> user to fetch
>> "fragments".
>
> Hmmmm... OK, I guess you mean, if the user wants to have, eg. 
> FirstName, LastName and EmailAdress of a Person, that should be 
> queried in one go (as a fragment of the whole document) instead of 
> either loading the whole Person OR fetching each datum individually 
> (resulting in 3 XmlRpc
> function calls);

Of course.

> OK... I see what you mean... hmmmmm... I guess we should give some
> thought to opening our XmlRpc Subsystem to the Programmer a little more
> instead of completely hiding it; allowing the Programmer to set the
> attributes of a fetch() call would be an idea; I suppose, we here, at 
> the JOGI HQ, will need to get our thinking caps out again...

Well, actually you cannot catch all that in a neat API way.

Eg if you have a view which shows the persons and the project names of 
each person like

   | Account	| Projects				|
  --------------------------------------------------------
   | murphee	| JOGI, XMLRPC		|
   | helge		| XMLRPC, ZideStore	|

You would want to catch exactly that data from the server - ergo you 
need some special server method for that.

>> Anyway. My whole point is that there is no "one-API-that-fits-all". 
>> JOGI is excellent if you need what it does. It might be wrong if you 
>> have specific needs.
>
> Yup, I see; it's basically like knowing when to use DOM and
> when to use SAX when dealing with XML;

Exactly. Go with specialized, low level XML-RPC for high-volume, 
tableview like views and expand to full object eg when opening an 
editor or view.

regards,
   Helge
-- 
OpenGroupware.org - http://www.opengroupware.org

-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.