org.jboss.ejb.plugins.cmp.jdbc
Class JDBCInitEntityCommand

java.lang.Object
  extended byorg.jboss.ejb.plugins.cmp.jdbc.JDBCInitEntityCommand

public final class JDBCInitEntityCommand
extends Object

CMPStoreManager JDBCActivateEntityCommand

Version:
$Revision: 1.6.4.5 $
Author:
Dain Sundstrom

Constructor Summary
JDBCInitEntityCommand(JDBCStoreManager manager)
           
 
Method Summary
 void execute(EntityEnterpriseContext ctx)
          Called before ejbCreate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCInitEntityCommand

public JDBCInitEntityCommand(JDBCStoreManager manager)
Method Detail

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.