org.tranql.pkgenerator
Class UUIDPrimaryKeyGenerator

java.lang.Object
  extended byorg.tranql.pkgenerator.UUIDPrimaryKeyGenerator
All Implemented Interfaces:
PrimaryKeyGenerator, java.io.Serializable

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

Constructor Summary
UUIDPrimaryKeyGenerator()
           
 
Method Summary
 java.lang.Object getNextPrimaryKey(CacheRow cacheRow)
           
 CacheRow updateCache(InTxCache cache, GlobalIdentity id, CacheRow cacheRow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UUIDPrimaryKeyGenerator

public UUIDPrimaryKeyGenerator()
Method Detail

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 © -2006 The Codehaus. All Rights Reserved.