站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

JDBCDB2IdentityValLocalCreateCommand (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


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

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

public class JDBCDB2IdentityValLocalCreateCommand
extends JDBCIdentityColumnCreateCommand

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.

Author:
Daniel Wintschel

Field Summary
 
Fields inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCIdentityColumnCreateCommand
pkField, pkSQL
 
Fields inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand
createAllowed, debug, entity, exceptionProcessor, insertAfterEjbPostCreate, insertFields, insertSQL, log, securityManager, trace
 
Constructor Summary
JDBCDB2IdentityValLocalCreateCommand()
           
 
Method Summary
protected  int executeInsert(int paramIndex, PreparedStatement ps, EntityEnterpriseContext ctx)
           
 
Methods inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCIdentityColumnCreateCommand
initGeneratedFields, isInsertField, processException
 
Methods inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand
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,
                            PreparedStatement ps,
                            EntityEnterpriseContext ctx)
                     throws SQLException
Overrides:
executeInsert in class JDBCIdentityColumnCreateCommand
Throws:
SQLException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.