Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.ejb.plugins.cmp » jdbc » [javadoc | source]
org.jboss.ejb.plugins.cmp.jdbc
abstract public class: JDBCAbstractCreateCommand [javadoc | source]
java.lang.Object
   org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand

All Implemented Interfaces:
    JDBCCreateCommand

Direct Known Subclasses:
    JDBCDB2IdentityValLocalCreateCommand, JDBCPkSqlCreateCommand, JDBCSQLServerCreateCommand, JDBC30GeneratedKeysCreateCommand, JDBCOracleSequenceCreateCommand, JDBCPostgreSQLCreateCommand, JDBCSybaseCreateCommand, JDBCMySQLCreateCommand, JDBCInformixCreateCommand, JDBCHsqldbCreateCommand, JDBCIdentityColumnCreateCommand, JDBCKeyGeneratorCreateCommand, JDBCMySQLCreateCommand, JDBCOracleCreateCommand, JDBCPkSqlCreateCommand, JDBCKeyGeneratorCreateCommand, JDBCGetGeneratedKeysCreateCommand, JDBCInsertPKCreateCommand, JDBCCreateEntityCommand

Base class for create commands that drives the operation sequence.
Field Summary
protected  Logger log     
protected  boolean debug     
protected  boolean trace     
protected  JDBCEntityBridge entity     
protected  AuthenticationManager securityManager     
protected  boolean createAllowed     
protected  SQLExceptionProcessorMBean exceptionProcessor     
protected  String insertSQL     
protected  JDBCFieldBridge[] insertFields     
protected  boolean insertAfterEjbPostCreate     
Method from org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand Summary:
afterInsert,   beforeInsert,   checkCreateAllowed,   execute,   executeInsert,   generateFields,   getGeneratedPKField,   getPrimaryKey,   init,   initEntityCommand,   initGeneratedFields,   initInsertFields,   initInsertSQL,   isInsertField,   performInsert,   prepareStatement
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand Detail:
 protected  void afterInsert(EntityEnterpriseContext ctx) throws CreateException 
 protected  void beforeInsert(EntityEnterpriseContext ctx) throws CreateException 
 protected  void checkCreateAllowed() throws CreateException 
 public Object execute(Method m,
    Object[] args,
    EntityEnterpriseContext ctx) throws CreateException 
 protected int executeInsert(int paramIndex,
    PreparedStatement ps,
    EntityEnterpriseContext ctx) throws SQLException 
 protected  void generateFields(EntityEnterpriseContext ctx) throws CreateException 
 protected JDBCCMPFieldBridge getGeneratedPKField() throws DeploymentException 
 protected Object getPrimaryKey(EntityEnterpriseContext ctx) 
 public  void init(JDBCStoreManager manager) throws DeploymentException 
 protected  void initEntityCommand(JDBCEntityCommandMetaData entityCommand) throws DeploymentException 
 protected  void initGeneratedFields() throws DeploymentException 
 protected  void initInsertFields() 
 protected  void initInsertSQL() 
 protected boolean isInsertField(JDBCFieldBridge field) 
 protected  void performInsert(EntityEnterpriseContext ctx) throws CreateException 
 protected PreparedStatement prepareStatement(Connection c,
    String sql,
    EntityEnterpriseContext ctx) throws SQLException