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

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.JDBCInformixCreateCommand
All Implemented Interfaces:
JDBCCreateCommand (src)

public class JDBCInformixCreateCommand
extends JDBCIdentityColumnCreateCommand (src)

Create command for Informix that uses the driver's getSerial method to retrieve SERIAL values. Also supports SERIAL8 columns if method attribute of entity-command is set to "getSerial8"


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
JDBCInformixCreateCommand()
           
 
Method Summary
protected  int executeInsert(int paramIndex, java.sql.PreparedStatement ps, EntityEnterpriseContext (src)  ctx)
           
 void init(JDBCStoreManager (src)  manager)
           
protected  void initEntityCommand(JDBCEntityCommandMetaData (src)  entityCommand)
           
 
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, initInsertFields, initInsertSQL, performInsert, prepareStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCInformixCreateCommand

public JDBCInformixCreateCommand()
Method Detail

init

public void init(JDBCStoreManager (src)  manager)
          throws DeploymentException (src) 
Specified by:
init in interface JDBCCreateCommand (src)
Overrides:
init in class JDBCAbstractCreateCommand (src)
Throws:
DeploymentException (src)

initEntityCommand

protected void initEntityCommand(JDBCEntityCommandMetaData (src)  entityCommand)
                          throws DeploymentException (src) 
Overrides:
initEntityCommand in class JDBCAbstractCreateCommand (src)
Throws:
DeploymentException (src)

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