org.openejb.entity.cmp.pkgenerator
Class SequenceTablePrimaryKeyGeneratorWrapper

java.lang.Object
  extended byorg.openejb.entity.cmp.pkgenerator.SequenceTablePrimaryKeyGeneratorWrapper
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle, org.tranql.pkgenerator.PrimaryKeyGenerator, Serializable

public class SequenceTablePrimaryKeyGeneratorWrapper
extends Object
implements org.tranql.pkgenerator.PrimaryKeyGenerator, org.apache.geronimo.gbean.GBeanLifecycle

Version:
$Revision: 446119 $ $Date: 2006-03-23 01:47:50 +0100 (Thu, 23 Mar 2006) $
See Also:
Serialized Form

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
SequenceTablePrimaryKeyGeneratorWrapper(org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager, org.apache.geronimo.connector.outbound.ConnectionFactorySource connectionFactoryWrapper, String tableName, String sequenceName, int batchSize)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 Object getNextPrimaryKey(org.tranql.cache.CacheRow cacheRow)
           
 org.tranql.cache.CacheRow updateCache(org.tranql.cache.InTxCache cache, org.tranql.identity.GlobalIdentity id, org.tranql.cache.CacheRow cacheRow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

SequenceTablePrimaryKeyGeneratorWrapper

public SequenceTablePrimaryKeyGeneratorWrapper(org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
                                               org.apache.geronimo.connector.outbound.ConnectionFactorySource connectionFactoryWrapper,
                                               String tableName,
                                               String sequenceName,
                                               int batchSize)
Method Detail

doStart

public void doStart()
             throws Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

getNextPrimaryKey

public Object getNextPrimaryKey(org.tranql.cache.CacheRow cacheRow)
                         throws org.tranql.pkgenerator.PrimaryKeyGeneratorException
Specified by:
getNextPrimaryKey in interface org.tranql.pkgenerator.PrimaryKeyGenerator
Throws:
org.tranql.pkgenerator.PrimaryKeyGeneratorException

updateCache

public org.tranql.cache.CacheRow updateCache(org.tranql.cache.InTxCache cache,
                                             org.tranql.identity.GlobalIdentity id,
                                             org.tranql.cache.CacheRow cacheRow)
                                      throws org.tranql.cache.DuplicateIdentityException
Specified by:
updateCache in interface org.tranql.pkgenerator.PrimaryKeyGenerator
Throws:
org.tranql.cache.DuplicateIdentityException

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 1999-2006 OpenEJB. All Rights Reserved.