Mike we do delegate our database access code to a hivemind service but that
is on the server. I want the results to be cached on the cliient. Been
thinking about it having a concrete method on my page may not be a threading
problems methods are thread safe right? I just can't have concrete class
If you use a hivemind service to access the database and cache the
results then it will be thread safe if you use the singleton service
model (the default).
In general, pages and components should delegate business logic like
this to services, so it would be a good idea to do it that way anyway.
the getEntries method in this would not be thread safe if it's not abstract
right? i don't think this would work for me if it's not
On 3/24/06, Mike Snare <[EMAIL PROTECTED]> wrote:
>
> What does getEntries look like? If it goes to the database than it
> makes perfect sense.
>
> why not:
>
> pub
What does getEntries look like? If it goes to the database than it
makes perfect sense.
why not:
public abstract Collection getCachedEntries();
public abstract void setCachedEntries(Collection col);
public Collection getEntries {
Collection cache = getCachedEntries();
if (cache == null) {
I have a table view component and i want to use session paging
I have it configured like this:
I was expecting the paging to be done through the session but this is not
working. It goes back to the database every time.
What am I d