Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Java OpenGroupware API - annotations: msg#00016

cms.opengroupware.xmlrpc.devel

Subject: Re: Java OpenGroupware API - annotations

On Montag, Sep 1, 2003, at 17:38 Europe/Berlin, Burkhard Sell wrote:
Well, I don't know the Iterator API, only the Enumerator one (which is also available in Objective-C).
java knows enumerations too.
but sometimes sun created a collection frameworks.

Yes, you already explained me. If they are actually the same thing, lets refer to them as enumerators ;-)

but there are some cases the client needs think like element counting,
getting elements by index, ...

Yes, in that case you need to read all elements anyway. Nothing against an additional, higher level, method which does that.

so you *need* a list interface.

Sure.

in those cases if you only provide a iterator the client will copy all elements into its own list/array/...

Of course. Isn't there Java API like
list = List(Enumerator e)
?
If it would be that simple, the burden could be placed on the client to keep the API slim. If creating an array from an enumerator involves more steps, you may want to create a convenience method.

Again, if you have thousands of records this will hit you big time because indexed access is wrong(tm) for big collections.
what will the client do with this records...
mostly it'll display them...so you need all elements in RAM.

If you strictly focus on an OGo specific GUI client, this may be true. In any other case it is not.
Mostly you will *not* keep them in memory - because you can't!

Examples:
JSP pages
- render object, forget object, render object, forget object
Export tools
- export CSV line, forget object, export CSV line, forget object
Glow GUI Client
- map JOGI Person to SDBC Contact, forget object, etc
OGo GUI Client
- extract attributes you need (name,street,email), forget object

otherwise you can use the iterator() method

This will be the most commonly used method for scalabale solutions.

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

--
OpenGroupware.org XML-RPC
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation