org.exolab.castor.jdo.keygen
Class UUIDKeyGeneratorFactory
public final
class
UUIDKeyGeneratorFactory
extends Object
implements KeyGeneratorFactory
UUID key generator factory.
The short name of this key generator is "UUID".
It uses the following alrorithm:
The uuid is a combination of the IP address, the current
time in milliseconds since 1970 and a static counter.
The complete key consists of a 30 character fixed length string.
Brief statement:
The ip only exists once during runtime of castor, the
current time in milliseconds (updated every 55 mills) is
in combination to the ip pretty unique. considering a static
counter will be used a database-wide unique key will be created.
Version: $Revision: 6230 $ $Date: 2005-06-01 06:08:22 -0600 (Wed, 01 Jun 2005) $
Author: Thomas Fach
See Also: UUIDKeyGenerator
Produce the key generator.
Parameters: factory Helper object for obtaining database-specific QuerySyntax. params Parameters for key generator.
public String getName()
The short name of this key generator is "UUID"
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com