package org.jboss.test.cts.ejb;
import org.jboss.test.cts.keys.*;
import java.rmi.RemoteException;
import java.util.Vector;
import java.util.Collection;
import java.sql.*;
import javax.naming.*;
import javax.ejb.*;
import javax.sql.DataSource;
public class BmpCallbackBean
implements EntityBean
{
org.apache.log4j.Category log = org.apache.log4j.Category.getInstance(getClass());
EntityContext ctx;
public AccountPK ejbCreate (AccountPK pk, String personsName)
throws CreateException, DuplicateKeyException, EJBException,
RemoteException
{
log.debug("entry ejbCreate");
return new AccountPK(pk.getKey());
}
public AccountPK ejbFindByPrimaryKey (AccountPK pk)
throws FinderException, EJBException, RemoteException
{
log.debug("entry ejbFindByPrimaryKey");
return new AccountPK(pk.getKey());
}
public void ejbPostCreate (AccountPK pk, String personsName)
throws CreateException, DuplicateKeyException, EJBException,
RemoteException
{
log.debug("ejbPostCreate (AccountPK, String) called");
}
public void ejbLoad ()
throws EJBException, RemoteException
{
log.debug("ejbLoad () called");
}
public void ejbStore ()
throws EJBException, RemoteException
{
log.debug("ejbStore () called");
}
public void ejbRemove ()
throws EJBException, RemoteException
{
log.debug("ejbRemove () called");
}
public void ejbActivate ()
throws EJBException, RemoteException
{
log.debug("ejbActivate () called");
}
public void ejbPassivate ()
throws EJBException, RemoteException
{
log.debug("ejbPassivate () called");
}
public void setEntityContext (EntityContext ctx)
throws EJBException, RemoteException
{
log.debug("setEntityContext () called");
this.ctx = ctx;
}
public void unsetEntityContext ()
throws EJBException, RemoteException
{
log.debug("unsetEntityContext () called");
ctx = null;
}
}