You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by Karan Malhi <ka...@gmail.com> on 2005/09/14 12:57:44 UTC
allocate method in Sequence
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" ?
--
Karan Malhi
Re: allocate method in Sequence
Posted by Craig Russell <Cr...@Sun.COM>.
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!