db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Hillegas <Richard.Hille...@Sun.COM>
Subject Re: Generating UUIDs
Date Wed, 10 Jun 2009 12:51:25 GMT
Hi Suran,

I think that you have successfully created an identifier which no-one 
else will recreate using Derby's UUID generator. That's all you need to do.

Cheers,
-Rick

Suran Jayathilaka wrote:
> Thanks Francois.
>
> I generated UUIDs using Rick's code snippet with an initial value I 
> changed at random. Is this correct, or should I leave the initial 
> value as it is?
>
> Thanks!
> Suran
>
> On Wed, Jun 10, 2009 at 2:00 AM, Francois Orsini 
> <francois.orsini@gmail.com <mailto:francois.orsini@gmail.com>> wrote:
>
>     Hi Suran,
>
>     As defined in
>     https://svn.apache.org/repos/asf/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/uuid/BasicUUIDFactory.java
>
>     //		INITIAL_VALUE	=	a number guaranteeing that the first couple sequence numbers
>     //			                won't be monotonically increasing.
>     ...
>     ...
>     private	static	final	long	INITIAL_VALUE	=	( 2551218188L );
>
>
>     ...
>     ...
>
>     FYI,
>
>     --francois
>
>
>     On Tue, Jun 9, 2009 at 1:12 PM, Suran Jayathilaka
>     <suranjay@gmail.com <mailto:suranjay@gmail.com>> wrote:
>
>         Thanks Rick. That did the trick. The 3rd argument is a random
>         Long, is it not?
>
>
>


Mime
View raw message