当前页面:
在线文档首页 >
JBoss 3.2.7 server API Documentation 英文版文档
JDBC30GeneratedKeysCreateCommand (JBoss Server API) - JBoss 3.2.7 server API Documentation 英文版文档
org.jboss.ejb.plugins.cmp.jdbc.keygen
Class JDBC30GeneratedKeysCreateCommand
java.lang.Object
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand
org.jboss.ejb.plugins.cmp.jdbc.JDBCIdentityColumnCreateCommand
org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBC30GeneratedKeysCreateCommand
- All Implemented Interfaces:
- JDBCCreateCommand
- public class JDBC30GeneratedKeysCreateCommand
- extends JDBCIdentityColumnCreateCommand
Create method that uses the JDBC 3.0 getGeneratedKeys method to obtain
the value from the identity column.
- Author:
- Jeremy Boynes
Methods inherited from class org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand |
afterInsert, beforeInsert, checkCreateAllowed, execute, generateFields, getGeneratedPKField, getPrimaryKey, initEntityCommand, initInsertFields, initInsertSQL, performInsert |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBC30GeneratedKeysCreateCommand
public JDBC30GeneratedKeysCreateCommand()
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
prepareStatement
protected PreparedStatement prepareStatement(Connection c,
String sql,
EntityEnterpriseContext ctx)
throws SQLException
- Overrides:
prepareStatement
in class JDBCAbstractCreateCommand
- Throws:
SQLException
executeInsert
protected int executeInsert(int paramIndex,
PreparedStatement ps,
EntityEnterpriseContext ctx)
throws SQLException
- Overrides:
executeInsert
in class JDBCIdentityColumnCreateCommand
- Throws:
SQLException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.