org.tranql.pkgenerator
Class UUIDPrimaryKeyGenerator
java.lang.Object
org.tranql.pkgenerator.UUIDPrimaryKeyGenerator
- All Implemented Interfaces:
- java.io.Serializable, PrimaryKeyGenerator
public class UUIDPrimaryKeyGenerator
- extends java.lang.Object
- implements PrimaryKeyGenerator
UUID generator. For more information on UUID, see
UUID Internet Draft.
This code was borrowed from Axis
org.apache.axis.components.uuid.FastUUIDGen
class, contributed
to the Axis project by Jarek Gawor (gawor@apache.org).
- Version:
- $Revision: 319 $ $Date: 2006-01-08 04:34:04 +0100 (Sun, 08 Jan 2006) $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UUIDPrimaryKeyGenerator
public UUIDPrimaryKeyGenerator()
getNextPrimaryKey
public java.lang.Object getNextPrimaryKey(CacheRow cacheRow)
throws PrimaryKeyGeneratorException
- Specified by:
getNextPrimaryKey
in interface PrimaryKeyGenerator
- Throws:
PrimaryKeyGeneratorException
updateCache
public CacheRow updateCache(InTxCache cache,
GlobalIdentity id,
CacheRow cacheRow)
throws DuplicateIdentityException
- Specified by:
updateCache
in interface PrimaryKeyGenerator
- Throws:
DuplicateIdentityException
Copyright © -2010 The Codehaus. All Rights Reserved.