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

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

public class JDBCPkSqlCreateCommand
extends JDBCInsertPKCreateCommand (src)

Create command that uses an SQL statement to generate the primary key. Typically used with databases that support sequences.


Field Summary
protected  JDBCCMPFieldBridge (src) pkField
           
protected  java.lang.String pkSQL
           
 
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
JDBCPkSqlCreateCommand()
           
 
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

pkSQL

protected java.lang.String pkSQL

pkField

protected JDBCCMPFieldBridge (src)  pkField
Constructor Detail

JDBCPkSqlCreateCommand

public JDBCPkSqlCreateCommand()
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)