getOrderedView is commented out in Revision 9625 - Why?

0 views
Skip to first unread message

Kris

unread,
May 4, 2009, 12:03:25 PM5/4/09
to Helma
I just updated to Revision 9625 in the SVN and found that in
HopObject.java the routine jsFunction_getOrderedView was commented and
thus no longer available.

Is the getOrderedView no longer available?

Thanks,
Kris Leite

Chris Zumbrunn

unread,
May 4, 2009, 1:52:57 PM5/4/09
to he...@googlegroups.com

Hannes would like to drop getOrderedView() in Helma 1.7...

http://helma.zumbrunn.net/hopbot/2009-04-02

...in favor of the newly added getCollection() feature:

http://dev.helma.org/wiki/Creating+collections+programmatically/

Chris

Kris

unread,
May 4, 2009, 2:06:02 PM5/4/09
to Helma
>
> Hannes would like to drop getOrderedView() in Helma 1.7...
>

Sorry, I didn't know that. I converted my usage to using the new
'list' function and then sort the array.
So now I don't use getOrderedView.

Thanks,
Kris Leite

Hannes Wallnoefer

unread,
May 4, 2009, 4:39:58 PM5/4/09
to he...@googlegroups.com
2009/5/4 Kris <kle...@imcsoftware.com>:
There were several scalability and implementation problems with the
concept of keeping several versions of a collection up to date within
Helma. With Helma 1.7, you'll have severl options to replace it:

- HopObject.list() and HopObject.list(start, length), which are no
longer problematic in terms of performance
- HopObject.getCollection() as described on the wiki page Chris linked above

and finally I'm still planning to implement a feature to create
variants on existing HopObject collections. It's quite easy with the
new infrastructrure in place, I just didn't have the time to come up
with an API design.

Hannes

> Thanks,
> Kris Leite
>
>
> >
>

Kris

unread,
May 4, 2009, 4:52:57 PM5/4/09
to Helma
> There were several scalability and implementation problems with the

I greatly appreciate and understand your concern with the
getOrderedView.

The new Collections and list functions are much better for
scalability. My
replacement for getOrderedView with List/sort is more than
satisfactory for
my app.

Thanks,
Kris Leite
Reply all
Reply to author
Forward
0 new messages