org.tranql.pkgenerator
Class SQLPrimaryKeyGenerator

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

public class SQLPrimaryKeyGenerator
extends java.lang.Object
implements PrimaryKeyGenerator

Version:
$Revision: 173 $ $Date: 2005-02-20 16:42:56 +0100 (Sun, 20 Feb 2005) $
See Also:
Serialized Form

Constructor Summary
SQLPrimaryKeyGenerator(javax.sql.DataSource ds, java.lang.String sqlText, ResultBinding binding)
           
 
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

SQLPrimaryKeyGenerator

public SQLPrimaryKeyGenerator(javax.sql.DataSource ds,
                              java.lang.String sqlText,
                              ResultBinding binding)
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.