当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
JDBCInsertPKCreateCommand (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
org.jboss.ejb.plugins.cmp.jdbc
Class JDBCInsertPKCreateCommand
java.lang.Object
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand
org.jboss.ejb.plugins.cmp.jdbc.JDBCInsertPKCreateCommand
- All Implemented Interfaces:
- JDBCCreateCommand
- Direct Known Subclasses:
- JDBCCreateEntityCommand, JDBCKeyGeneratorCreateCommand, JDBCPkSqlCreateCommand
- public abstract class JDBCInsertPKCreateCommand
- extends JDBCAbstractCreateCommand
Base class for create commands that actually insert the primary key value.
If an exception processor is not supplied, this command will perform an
additional query to determine if a DuplicateKeyException should be thrown.
- Author:
- Jeremy Boynes
Methods inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand |
afterInsert, checkCreateAllowed, execute, executeInsert, generateFields, getGeneratedPKField, getPrimaryKey, initEntityCommand, initGeneratedFields, initInsertFields, initInsertSQL, isInsertField, performInsert, prepareStatement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
existsSQL
protected String existsSQL
JDBCInsertPKCreateCommand
public JDBCInsertPKCreateCommand()
init
public void init(JDBCStoreManager manager)
throws org.jboss.deployment.DeploymentException
- Specified by:
init
in interface JDBCCreateCommand
- Overrides:
init
in class JDBCAbstractCreateCommand
- Throws:
org.jboss.deployment.DeploymentException
initExistsSQL
protected void initExistsSQL()
beforeInsert
protected void beforeInsert(EntityEnterpriseContext ctx)
throws javax.ejb.CreateException
- Overrides:
beforeInsert
in class JDBCAbstractCreateCommand
- Throws:
javax.ejb.CreateException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.