[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Proxy objects?



Hi,
I am reading Ozone documentation, trying to understand something
of its architecture. But I can't fully undersatnd the following sentence.

"...The fact that database object are controlled via Proxy objects
does not mean that each an every method call needs a roundtrip
from the client to the server. This is because Proxies can be used to 
reference a database object form the client and from other database objec
inside the server..."

Here is what I have understood:

When in a client application I call a method of a proxy object previously
created,
actually the database object (referenced by that proxy object) 
executes that method from within the db server. This leads to good
performance.

So in general when I wrote a client application is always better something
like this:

public class O1Impl extends OzoneObjetct ...
{
 public void first()
	{
 	 for(...)
  	 {
           realmethod()
 	 }
	}
 
}

public clas myClient
{
 ...
 O1.first();
}




Than something like this



public class O1Impl extends OzoneObjetct ...
{
 public void realmethod()
	{
         ...
	}
 
}

public clas myClient
{
 ...
 for(...)
 {
  O1.realmethod();
 }
}


In general put the loops in the class tha extends OzoneObject rather than in
the client

Am I right or I have totally missed the point?
Thanks
Marco