Inside Paulo Abrantes' head
[ start | index | login or register ]
start > comment-start > 2007-02-28 > 1-17

1-17 commented start/2007-02-28/1

Created by m4ktub. Last edited by m4ktub, one year and 195 days ago. Viewed 513 times. #4
[diff] [history] [edit] [rdf]
labels
attachments
I agree with you. Most of these problems are infrastructural. There should be direct support for this situations, like paging, in the persistence framework we are using. All other solutions are hacks around it and often are not relevant concepts in the application's domain.

just thinking out loud , pay not attention: Off course the real challenge is to provide a paging solution that is well integrated in the model. Ideally we would be able to do a query over the domain, with some sort of OQL, and have paging in an efficient way without ever leaving the comfort of the OO model. Something in the lines of

QueryPager<Item> pager = Query.pagedExecute(Item.class, "orders[date > %1].customer.country == 'PT'", lastWeek);

print(pager.getNumberOfPages(pageSize)); for (Page page : pager.getPages(pageSize)) { for (Item item : page.getElements()) { for (Order order : (Collection<Order>) page.getElements(item)) { Customer customer = (Customer) page.getElement(item, order);

assert(page.getElement(item, order, customer) == "PT"); } } }

I have to check some existing OQL solutions and how they try to optimize the query. (more one thing to do smiley )

And how about (new E()).getClass()

E, in the example, is not an example class, it's a generic type. So you can't even do new E().

24 comments (by jpmsi, m4ktub, pabrantes) | post comment
Who am I?
paulo-roca2My name is Paulo Abrantes AKA pabrantes and I'm a software developer. I'm currently employed at >>CIIST working as a Java developer in >>FenixEDU.

This blog is mostly about Java programming, domain driven design and snipsnap bliki developing. Everything written in this blog is my personal opinion and it may not reflect the opinions of my employer and co-workers.


Blog subscription
subscribe by rss subscribe by email

Links
>> Home
>> Paulo's Profile
>> Post History
>> Add to Technorati Favorites
>> Paulo's Photo Gallery
>> WishList
>> Posting without Login

Search Blog
Fellow Bloggers

Recent Posts

Java Programming: Bytecode Injection
Intermission: Sorry For Downtime
Software Developing: Studying The Bliki Domain Model
SnipSnap Developing: Trying to settle a roadmap
System Administration: Load Balancing with Apache
Blogging: Two years have passed
Software Developing: The SnipSnap Saga
Java Programming: Getting your code spicy with Groovy
Software Developing: Fluent Interfaces
Software Developing: Implementing a ShoutBox on SnipsSnip
Software Developing: SnipSnap, SnipIt and SnipSnip
Java Programming: Proxies and Access Control
Java Programming: Proxies and References
Java Programming: References' Package
YALM: Yet Another Layout Modification

For older posts, please refer to post-history for a complete Post History

Logged in Users: (0)
… and 4 Guests.
This is a modified version of snipsnap.org created by >>Paulo Abrantes