当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
JDBCInitEntityCommand (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
org.jboss.ejb.plugins.cmp.jdbc
Class JDBCInitEntityCommand
java.lang.Object
org.jboss.ejb.plugins.cmp.jdbc.JDBCInitEntityCommand
- public final class JDBCInitEntityCommand
- extends Object
CMPStoreManager JDBCActivateEntityCommand
- Version:
- $Revision: 1.10 $
- Author:
- Dain Sundstrom
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCInitEntityCommand
public JDBCInitEntityCommand(JDBCStoreManager manager)
execute
public void execute(EntityEnterpriseContext ctx)
- Called before ejbCreate. In the JDBCStoreManager we need to
initialize the presistence context. The persistence context is where
where bean data is stored. If CMP 1.x, original values are store
and for CMP 2.x actual values are stored int the context. Then we
initialize the data. In CMP 1.x fields are reset to Java defaults, and
in CMP 2.x current value in persistence store are initialized.
Note: persistence context is also initialized in activate.
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.