org.jboss.ejb.plugins.cmp.jdbc.keygen
Class JDBCDB2IdentityValLocalCreateCommand

java.lang.Object
  extended byorg.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand (src) 
      extended byorg.jboss.ejb.plugins.cmp.jdbc.JDBCIdentityColumnCreateCommand (src) 
          extended byorg.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCDB2IdentityValLocalCreateCommand
All Implemented Interfaces:
JDBCCreateCommand (src)

public class JDBCDB2IdentityValLocalCreateCommand
extends JDBCIdentityColumnCreateCommand (src)

Create method that uses the identity_val_local() function in DB2 to get get the ID of the last inserted row, and populate it into the EJB object being created.


Field Summary
 
Fields inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCIdentityColumnCreateCommand (src)
pkField, pkSQL
 
Fields inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand (src)
createAllowed, debug, entity, exceptionProcessor, insertAfterEjbPostCreate, insertFields, insertSQL, log, securityManager, trace
 
Constructor Summary
JDBCDB2IdentityValLocalCreateCommand()
           
 
Method Summary
protected  int executeInsert(int paramIndex, java.sql.PreparedStatement ps, EntityEnterpriseContext (src)  ctx)
           
 
Methods inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCIdentityColumnCreateCommand (src)
initGeneratedFields, isInsertField, processException
 
Methods inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand (src)
afterInsert, beforeInsert, checkCreateAllowed, execute, generateFields, getGeneratedPKField, getPrimaryKey, init, initEntityCommand, initInsertFields, initInsertSQL, performInsert, prepareStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCDB2IdentityValLocalCreateCommand

public JDBCDB2IdentityValLocalCreateCommand()
Method Detail

executeInsert

protected int executeInsert(int paramIndex,
                            java.sql.PreparedStatement ps,
                            EntityEnterpriseContext (src)  ctx)
                     throws java.sql.SQLException
Overrides:
executeInsert in class JDBCIdentityColumnCreateCommand (src)
Throws:
java.sql.SQLException