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

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

public class JDBCKeyGeneratorCreateCommand
extends JDBCInsertPKCreateCommand (src)

JDBCKeyGeneratorCreateCommand executes an INSERT INTO query. This command will ask the corresponding key generator for a value for the primary key before inserting the row.


Field Summary
protected  KeyGenerator (src) keyGenerator
           
protected  JDBCCMPFieldBridge (src) pkField
           
 
Fields inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCInsertPKCreateCommand (src)
existsSQL
 
Fields inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand (src)
createAllowed, debug, entity, exceptionProcessor, insertAfterEjbPostCreate, insertFields, insertSQL, log, securityManager, trace
 
Constructor Summary
JDBCKeyGeneratorCreateCommand()
           
 
Method Summary
protected  void generateFields(EntityEnterpriseContext (src)  ctx)
           
 void init(JDBCStoreManager (src)  manager)
           
protected  void initEntityCommand(JDBCEntityCommandMetaData (src)  entityCommand)
           
 
Methods inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCInsertPKCreateCommand (src)
beforeInsert, initExistsSQL
 
Methods inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand (src)
afterInsert, checkCreateAllowed, execute, executeInsert, getGeneratedPKField, getPrimaryKey, initGeneratedFields, initInsertFields, initInsertSQL, isInsertField, performInsert, prepareStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyGenerator

protected KeyGenerator (src)  keyGenerator

pkField

protected JDBCCMPFieldBridge (src)  pkField
Constructor Detail

JDBCKeyGeneratorCreateCommand

public JDBCKeyGeneratorCreateCommand()
Method Detail

init

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

initEntityCommand

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

generateFields

protected void generateFields(EntityEnterpriseContext (src)  ctx)
                       throws CreateException (src) 
Overrides:
generateFields in class JDBCAbstractCreateCommand (src)
Throws:
CreateException (src)