hi rodney,

> partially load objects, modify them and store them without being concerned
> about the attributes that aren't loaded.

but what if the object get completely loaded by let's say accessing a not
yet loaded attribute.
in this case store must store all attributes.
all i want to say is that we need some kind of state in the business object
and also modified getters and evtl. setters.

ie:

String getStreet()
{
  if (!isLoaded())
 {
     executeLoad();
  }

  return this.street;
}

jakob

----- Original Message -----
From: "Rodney Schneider" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 05, 2002 3:04 AM
Subject: Re: AW: Proxy question


> On Thu, 5 Sep 2002 06:07, you wrote:
>
> > Jakob Braeuchi wrote:
> >
> > > hi all,
> > >
> > > the partial loading is imho not the problem.
> > > problems arise when you try to modify and store a partially loaded
object.
> > > this should not be possible because all not loaded attributes woul be
set
> > > to null. also when reading a not loaded attribute the object should
first
> > > do a full load.
> >
> > Well, you can make setting of ANY attribute complete the loading.  Then
> > I don't think that would be a problem.
>
> Hi,
>
> You could also implement it so that not loaded attributes are left alone
> instead of being set to null when they are persisted.  This way you can
> partially load objects, modify them and store them without being concerned
> about the attributes that aren't loaded.
>
> Am I missing something?
>
> Regards,
>
> -- Rodney
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to