db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Russell <Craig.Russ...@Sun.COM>
Subject Re: allocate method in Sequence
Date Wed, 14 Sep 2005 19:07:28 GMT
Hi Karan,

On Sep 14, 2005, at 3:57 AM, Karan Malhi wrote:

> Hi,
>
> Below is the partial javadoc for the allocate() method in the Sequence
> interface:
>
> public void *allocate*()
>
> Provides a hint to the implementation that the application will need
> additional sequence value objects in short order.
>
> What is "short order" ?

It's supposed to mean that the application plans to insert a bunch of  
objects and doesn't want to wait for the sequence to go to the  
datastore during the insertion of the next intParameter objects.

It didn't seem like there was an easy way to say that in the spec or  
javadoc.

In any event, this method (in fact, most "hints") can only be tested  
by calling it and making sure it doesn't throw an exception. There's  
no visible behavior to test.

Regards,

Craig
>
>
> -- 
> Karan Malhi
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message