On 4/27/06, Peter Svensson <[EMAIL PROTECTED]> wrote:
> Hmm. I'm not sure I follow you here.
> Would you like to make a method which reads a Set of pojos from the dao and
> then return an array of all days except those in a month, or what?
In a "good" month, the database contains all days, but there might be
months where a few or all days are missing in the database.
What I'm looking for is a good abstract java way of filling those
gaps. Maybe like this (in ugly pseudo code :) :
for( all entries in pojo list ) {
complete[pojo.date()] = pojo;
}
for( Calendar.days in a month() ) {
if ( !complete.exists(Calendar.date()) {
complete[date] = new pojo;
}
}
But where should this be? In the dao, in the middle layer or in the
page? That is my question. Another idea of code aswell perhaps :)
--
regards,
Robin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]