public abstract class JDBCAbstractCreateCommand extends Object implements JDBCCreateCommand
Modifier and Type | Field and Description |
---|---|
protected boolean |
createAllowed |
protected boolean |
debug |
protected JDBCEntityBridge |
entity |
protected SQLExceptionProcessor |
exceptionProcessor |
protected boolean |
insertAfterEjbPostCreate |
protected JDBCFieldBridge[] |
insertFields |
protected String |
insertSQL |
protected org.jboss.logging.Logger |
log |
protected org.jboss.security.AuthenticationManager |
securityManager |
protected boolean |
trace |
Constructor and Description |
---|
JDBCAbstractCreateCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterInsert(CmpEntityBeanContext ctx) |
protected void |
beforeInsert(CmpEntityBeanContext ctx) |
protected void |
checkCreateAllowed() |
Object |
execute(Method m,
Object[] args,
CmpEntityBeanContext ctx) |
protected int |
executeInsert(int paramIndex,
PreparedStatement ps,
CmpEntityBeanContext ctx) |
protected void |
generateFields(CmpEntityBeanContext ctx) |
protected JDBCCMPFieldBridge |
getGeneratedPKField() |
protected Object |
getPrimaryKey(CmpEntityBeanContext ctx) |
void |
init(JDBCStoreManager manager) |
protected void |
initEntityCommand(JDBCEntityCommandMetaData entityCommand) |
protected void |
initGeneratedFields() |
protected void |
initInsertFields() |
protected void |
initInsertSQL() |
protected boolean |
isInsertField(JDBCFieldBridge field) |
protected void |
performInsert(CmpEntityBeanContext ctx) |
protected PreparedStatement |
prepareStatement(Connection c,
String sql,
CmpEntityBeanContext ctx) |
protected org.jboss.logging.Logger log
protected boolean debug
protected boolean trace
protected JDBCEntityBridge entity
protected org.jboss.security.AuthenticationManager securityManager
protected boolean createAllowed
protected SQLExceptionProcessor exceptionProcessor
protected String insertSQL
protected JDBCFieldBridge[] insertFields
protected boolean insertAfterEjbPostCreate
public void init(JDBCStoreManager manager)
init
in interface JDBCCreateCommand
protected void initEntityCommand(JDBCEntityCommandMetaData entityCommand)
public Object execute(Method m, Object[] args, CmpEntityBeanContext ctx) throws javax.ejb.CreateException
execute
in interface JDBCCreateCommand
javax.ejb.CreateException
protected void checkCreateAllowed() throws javax.ejb.CreateException
javax.ejb.CreateException
protected JDBCCMPFieldBridge getGeneratedPKField()
protected void initGeneratedFields()
protected void generateFields(CmpEntityBeanContext ctx) throws javax.ejb.CreateException
javax.ejb.CreateException
protected void initInsertFields()
protected boolean isInsertField(JDBCFieldBridge field)
protected void initInsertSQL()
protected void beforeInsert(CmpEntityBeanContext ctx) throws javax.ejb.CreateException
javax.ejb.CreateException
protected void performInsert(CmpEntityBeanContext ctx) throws javax.ejb.CreateException
javax.ejb.CreateException
protected PreparedStatement prepareStatement(Connection c, String sql, CmpEntityBeanContext ctx) throws SQLException
SQLException
protected int executeInsert(int paramIndex, PreparedStatement ps, CmpEntityBeanContext ctx) throws SQLException
SQLException
protected void afterInsert(CmpEntityBeanContext ctx) throws javax.ejb.CreateException
javax.ejb.CreateException
protected Object getPrimaryKey(CmpEntityBeanContext ctx)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.