当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
JDBCKeyGeneratorCreateCommand (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
org.jboss.ejb.plugins.cmp.jdbc.keygen
Class JDBCKeyGeneratorCreateCommand
java.lang.Object
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand
org.jboss.ejb.plugins.cmp.jdbc.JDBCInsertPKCreateCommand
org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCKeyGeneratorCreateCommand
- All Implemented Interfaces:
- JDBCCreateCommand
- public class JDBCKeyGeneratorCreateCommand
- extends JDBCInsertPKCreateCommand
JDBCKeyGeneratorCreateCommand executes an INSERT INTO query.
This command will ask the corresponding key generator for a
value for the primary key before inserting the row.
- Version:
- $Revision: 1.4 $
- Author:
- Alex Loubyansky
Methods inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand |
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 |
keyGenerator
protected KeyGenerator keyGenerator
pkField
protected JDBCCMPFieldBridge pkField
JDBCKeyGeneratorCreateCommand
public JDBCKeyGeneratorCreateCommand()
init
public void init(JDBCStoreManager manager)
throws org.jboss.deployment.DeploymentException
- Specified by:
init
in interface JDBCCreateCommand
- Overrides:
init
in class JDBCInsertPKCreateCommand
- Throws:
org.jboss.deployment.DeploymentException
initEntityCommand
protected void initEntityCommand(JDBCEntityCommandMetaData entityCommand)
throws org.jboss.deployment.DeploymentException
- Overrides:
initEntityCommand
in class JDBCAbstractCreateCommand
- Throws:
org.jboss.deployment.DeploymentException
generateFields
protected void generateFields(EntityEnterpriseContext ctx)
throws javax.ejb.CreateException
- Overrides:
generateFields
in class JDBCAbstractCreateCommand
- Throws:
javax.ejb.CreateException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.