com.ibm.websphere.commandUtil
Class CommandServerEntityBean

java.lang.Object
  |
  +--com.ibm.websphere.commandUtil.CommandServerEntityBean
All Implemented Interfaces:
CommandTarget, javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

public class CommandServerEntityBean
extends java.lang.Object
implements javax.ejb.EntityBean, CommandTarget

This object has no state. The EJSPersister is overwritten not to read/write from/to the database. This is an Entity Bean class with BMP fields

See Also:
Serialized Form

Field Summary
 CommandServerEntityPrimaryKey primaryKey
           
 
Constructor Summary
CommandServerEntityBean()
           
 
Method Summary
 void ejbActivate()
          This implements the method in the EntityBean interface.
 CommandServerEntityPrimaryKey ejbCreate(CommandServerEntityPrimaryKey key)
          ejbCreate method for a BMP entity bean
 CommandServerEntityPrimaryKey ejbFindByPrimaryKey(CommandServerEntityPrimaryKey primaryKey)
          ejbFindByPrimaryKey method comment
 void ejbLoad()
          This implements the method in the EntityBean interface.
 void ejbPassivate()
          This implements the method in the EntityBean interface.
 void ejbPostCreate(CommandServerEntityPrimaryKey key)
          ejbPostCreate method for a BMP entity bean
 void ejbRemove()
          This implements the method in the EntityBean interface.
 void ejbStore()
          This implements the method in the EntityBean interface.
 TargetableCommand executeCommand(TargetableCommand command)
          This implements the method in the CommandTarget interface.
 javax.ejb.EntityContext getEntityContext()
          getEntityContext method comment
 void setEntityContext(javax.ejb.EntityContext ctx)
          setEntityContext method comment
 void unsetEntityContext()
          unsetEntityContext method comment
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

primaryKey

public CommandServerEntityPrimaryKey primaryKey
Constructor Detail

CommandServerEntityBean

public CommandServerEntityBean()
Method Detail

executeCommand

public TargetableCommand executeCommand(TargetableCommand command)
                                 throws java.rmi.RemoteException,
                                        CommandException
This implements the method in the CommandTarget interface.
Specified by:
executeCommand in interface CommandTarget
Parameters:
command - The TargetableCommand to be executed.
Returns:
The TargetableCommand that has been executed. If the command's hasOutputProperties method returns false, this returns null to avoid an unnecessary copy across the wire.
Throws:
java.rmi.RemoteException - The superclass for all remote exceptions. This is thrown to allow the possibility for this method to be an RMI remote method (eg, an EJB server).
CommandException - The superclass for all command exceptions.

ejbCreate

public CommandServerEntityPrimaryKey ejbCreate(CommandServerEntityPrimaryKey key)
                                        throws javax.ejb.CreateException,
                                               java.rmi.RemoteException
ejbCreate method for a BMP entity bean
Parameters:
key - com.ibm.websphere.commandUtil.CommandServerEntityPrimaryKey
Returns:
com.ibm.websphere.commandUtil.CommandServerEntityPrimaryKey
Throws:
javax.ejb.CreateException - The exception description.
java.rmi.RemoteException - The exception description.

ejbFindByPrimaryKey

public CommandServerEntityPrimaryKey ejbFindByPrimaryKey(CommandServerEntityPrimaryKey primaryKey)
                                                  throws java.rmi.RemoteException,
                                                         javax.ejb.FinderException
ejbFindByPrimaryKey method comment
Parameters:
primaryKey - com.ibm.websphere.commandUtil.CommandServerEntityPrimaryKey
Returns:
com.ibm.websphere.commandUtil.CommandServerEntityPrimaryKey
Throws:
java.rmi.RemoteException - The exception description.
javax.ejb.FinderException - The exception description.

ejbPostCreate

public void ejbPostCreate(CommandServerEntityPrimaryKey key)
                   throws java.rmi.RemoteException
ejbPostCreate method for a BMP entity bean
Parameters:
key - com.ibm.websphere.commandUtil.CommandServerEntityPrimaryKey
Throws:
java.rmi.RemoteException - The exception description.

ejbLoad

public void ejbLoad()
             throws java.rmi.RemoteException
This implements the method in the EntityBean interface.
Specified by:
ejbLoad in interface javax.ejb.EntityBean

ejbStore

public void ejbStore()
              throws java.rmi.RemoteException
This implements the method in the EntityBean interface.
Specified by:
ejbStore in interface javax.ejb.EntityBean

ejbRemove

public void ejbRemove()
               throws java.rmi.RemoteException,
                      javax.ejb.RemoveException
This implements the method in the EntityBean interface.
Specified by:
ejbRemove in interface javax.ejb.EntityBean

ejbActivate

public void ejbActivate()
                 throws java.rmi.RemoteException
This implements the method in the EntityBean interface.
Specified by:
ejbActivate in interface javax.ejb.EntityBean

ejbPassivate

public void ejbPassivate()
                  throws java.rmi.RemoteException
This implements the method in the EntityBean interface.
Specified by:
ejbPassivate in interface javax.ejb.EntityBean

getEntityContext

public javax.ejb.EntityContext getEntityContext()
getEntityContext method comment
Returns:
javax.ejb.EntityContext

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
                      throws java.rmi.RemoteException
setEntityContext method comment
Specified by:
setEntityContext in interface javax.ejb.EntityBean
Parameters:
ctx - javax.ejb.EntityContext
Throws:
java.rmi.RemoteException - The exception description.

unsetEntityContext

public void unsetEntityContext()
                        throws java.rmi.RemoteException
unsetEntityContext method comment
Specified by:
unsetEntityContext in interface javax.ejb.EntityBean
Throws:
java.rmi.RemoteException - The exception description.