org.openejb.entity.cmp.pkgenerator
Class SQLPrimaryKeyGeneratorWrapper
java.lang.Object
org.openejb.entity.cmp.pkgenerator.SQLPrimaryKeyGeneratorWrapper
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle, org.tranql.pkgenerator.PrimaryKeyGenerator, Serializable
- public class SQLPrimaryKeyGeneratorWrapper
- 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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
SQLPrimaryKeyGeneratorWrapper
public SQLPrimaryKeyGeneratorWrapper(org.apache.geronimo.connector.outbound.ConnectionFactorySource connectionFactoryWrapper,
String initSql,
String sql,
Class returnType)
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.