org.openmdx.application.ejb.lightweight
Class AbstractEJBObject

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by org.openmdx.application.ejb.lightweight.AbstractRemoteObject
              extended by org.openmdx.application.ejb.lightweight.AbstractEJBObject
All Implemented Interfaces:
Serializable, Remote, EJBObject

public abstract class AbstractEJBObject
extends AbstractRemoteObject
implements EJBObject

Abstract EJBObject implementation

See Also:
Serialized Form

Nested Class Summary
protected static class AbstractEJBObject.Action
          Action
 
Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
protected AbstractEJBObject(AbstractEJBHome home)
          Constructor
 
Method Summary
protected  AbstractEJBObject.Action getAction(String name, Class[] parameterTypes)
          Action factory
 EJBHome getEJBHome()
           
 Object getPrimaryKey()
          This method must be overridden by a subclass unless it represents a session bean.
 boolean isIdentical(EJBObject that)
          This method must be overridden by a subclass unless it represents a session bean.
 void remove()
          This method must be overridden by a subclass unless it represents a stateless session bean.
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.ejb.EJBObject
getHandle
 

Constructor Detail

AbstractEJBObject

protected AbstractEJBObject(AbstractEJBHome home)
                     throws RemoteException
Constructor

Parameters:
home - the EJB's home
Throws:
RemoteException
Method Detail

getEJBHome

public EJBHome getEJBHome()
                   throws RemoteException
Specified by:
getEJBHome in interface EJBObject
Throws:
RemoteException

getPrimaryKey

public Object getPrimaryKey()
                     throws RemoteException
This method must be overridden by a subclass unless it represents a session bean.

Specified by:
getPrimaryKey in interface EJBObject
Throws:
RemoteException
See Also:
EJBObject.getPrimaryKey()

remove

public void remove()
            throws RemoteException,
                   RemoveException
This method must be overridden by a subclass unless it represents a stateless session bean.

Specified by:
remove in interface EJBObject
Throws:
RemoteException
RemoveException
See Also:
EJBObject.remove()

isIdentical

public boolean isIdentical(EJBObject that)
                    throws RemoteException
This method must be overridden by a subclass unless it represents a session bean.

Specified by:
isIdentical in interface EJBObject
Throws:
RemoteException
See Also:
EJBObject.isIdentical(javax.ejb.EJBObject)

getAction

protected AbstractEJBObject.Action getAction(String name,
                                             Class[] parameterTypes)
                                      throws RemoteException
Action factory

Parameters:
name -
parameterTypes -
Returns:
the rquested instance method
Throws:
RemoteException


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.