commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <p...@steitz.com>
Subject Re: [id] hooking up UUID generation
Date Fri, 12 Mar 2004 12:50:32 GMT
Tim,

Sorry for the latency.  My inclination would be to go with the different 
names / classes for different versions.  These look like different 
identifiers to me.

Phil

Tim Reilly wrote:
> Any thoughts on "hooking-up" the UUID generation like the other id
> generators?
> 
> I was thinking something along these lines:
> either:
> IdentifierUtils.nextUUID([UUID.VERSION_ONE | UUID.VERSION_FOUR]);
> -or-
> IdentifierUtils.nextVersionOneUUID();
> IdentifierUtils.nextVersionFourUUID([void | boolean:secure]);
> 
> And same thought on the factory:
> either:
> IdentifierGeneratorFactory factory =
> IdentifierGeneratorFactory.newInstance();
> UUIDGenerator generator = factory.uuidGenerator(UUID.VERSION_ONE |
> UUID.VERSION_FOUR);
> -or-
> VersionOneGenerator generator = factory.uuidVersionOneGenerator();
> VersionFourGenerator generator = factory.uuidVersionFourGenerator();
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message