org.jboss.ejb.plugins.cmp.jdbc
Class JDBCAbstractCreateCommand
java.lang.Object
   org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand
- All Implemented Interfaces: 
- JDBCCreateCommand
- Direct Known Subclasses: 
- JDBCIdentityColumnCreateCommand, JDBCInsertPKCreateCommand
- public abstract class JDBCAbstractCreateCommand 
- extends Object- implements JDBCCreateCommand
Base class for create commands that drives the operation sequence.
- Author:
- Jeremy Boynes, Alexey Loubyansky
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
log
protected org.jboss.logging.Logger log
debug
protected boolean debug
trace
protected boolean trace
entity
protected JDBCEntityBridge entity
securityManager
protected org.jboss.security.AuthenticationManager securityManager
createAllowed
protected boolean createAllowed
exceptionProcessor
protected SQLExceptionProcessorMBean exceptionProcessor
insertSQL
protected String insertSQL
insertFields
protected JDBCFieldBridge[] insertFields
insertAfterEjbPostCreate
protected boolean insertAfterEjbPostCreate
JDBCAbstractCreateCommand
public JDBCAbstractCreateCommand()
init
public void init(JDBCStoreManager manager)
          throws org.jboss.deployment.DeploymentException
- 
- Specified by:
- initin interface- JDBCCreateCommand
 
- 
- Throws:
- org.jboss.deployment.DeploymentException
 
initEntityCommand
protected void initEntityCommand(JDBCEntityCommandMetaData entityCommand)
                          throws org.jboss.deployment.DeploymentException
- 
 
- 
- Throws:
- org.jboss.deployment.DeploymentException
 
execute
public Object execute(Method m,
                      Object[] args,
                      EntityEnterpriseContext ctx)
               throws javax.ejb.CreateException
- 
- Specified by:
- executein interface- JDBCCreateCommand
 
- 
- Throws:
- javax.ejb.CreateException
 
checkCreateAllowed
protected void checkCreateAllowed()
                           throws javax.ejb.CreateException
- 
 
- 
- Throws:
- javax.ejb.CreateException
 
getGeneratedPKField
protected JDBCCMPFieldBridge getGeneratedPKField()
                                          throws org.jboss.deployment.DeploymentException
- 
 
- 
- Throws:
- org.jboss.deployment.DeploymentException
 
initGeneratedFields
protected void initGeneratedFields()
                            throws org.jboss.deployment.DeploymentException
- 
 
- 
- Throws:
- org.jboss.deployment.DeploymentException
 
generateFields
protected void generateFields(EntityEnterpriseContext ctx)
                       throws javax.ejb.CreateException
- 
 
- 
- Throws:
- javax.ejb.CreateException
 
initInsertFields
protected void initInsertFields()
- 
 
- 
 
isInsertField
protected boolean isInsertField(JDBCFieldBridge field)
- 
 
- 
 
initInsertSQL
protected void initInsertSQL()
- 
 
- 
 
beforeInsert
protected void beforeInsert(EntityEnterpriseContext ctx)
                     throws javax.ejb.CreateException
- 
 
- 
- Throws:
- javax.ejb.CreateException
 
performInsert
protected void performInsert(EntityEnterpriseContext ctx)
                      throws javax.ejb.CreateException
- 
 
- 
- Throws:
- javax.ejb.CreateException
 
prepareStatement
protected PreparedStatement prepareStatement(Connection c,
                                             String sql,
                                             EntityEnterpriseContext ctx)
                                      throws SQLException
- 
 
- 
- Throws:
- SQLException
 
executeInsert
protected int executeInsert(int paramIndex,
                            PreparedStatement ps,
                            EntityEnterpriseContext ctx)
                     throws SQLException
- 
 
- 
- Throws:
- SQLException
 
afterInsert
protected void afterInsert(EntityEnterpriseContext ctx)
                    throws javax.ejb.CreateException
- 
 
- 
- Throws:
- javax.ejb.CreateException
 
getPrimaryKey
protected Object getPrimaryKey(EntityEnterpriseContext ctx)
- 
 
- 
 
      
      
        Copyright © 2002 JBoss Group, LLC. All Rights Reserved.