com.sun.ejb.containers
Class EJBLocalObjectImpl
java.lang.Object
com.sun.ejb.containers.EJBLocalRemoteObject
com.sun.ejb.containers.EJBLocalObjectImpl
- All Implemented Interfaces:
- IndirectlySerializable, EJBLocalObject
- Direct Known Subclasses:
- EJBLocalObjectInvocationHandler
public abstract class EJBLocalObjectImpl
- extends EJBLocalRemoteObject
- implements EJBLocalObject, IndirectlySerializable
Implementation of the EJBLocalObject interface.
This is NOT serializable to prevent local references from leaving
the JVM.
It is extended by the generated concrete type-specific EJBLocalObject
implementation (e.g. Hello_EJBLocalObject).
- Author:
- Mahesh Kannan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EJBLocalObjectImpl
public EJBLocalObjectImpl()
getClientObject
protected Object getClientObject()
- Get the client object corresponding to an EJBLocalObjectImpl.
Users of this class cannot
assume they can cast an EJBLocalObjectImpl to the object that
the client uses, and vice-versa. This is overridden in the
InvocationHandler. Only applicable for local home view.
getEJBLocalHome
public EJBLocalHome getEJBLocalHome()
throws EJBException
- Specified by:
getEJBLocalHome in interface EJBLocalObject
- Throws:
EJBException
remove
public void remove()
throws RemoveException,
EJBException
- Specified by:
remove in interface EJBLocalObject
- Throws:
RemoveException
EJBException
getPrimaryKey
public Object getPrimaryKey()
throws EJBException
- Specified by:
getPrimaryKey in interface EJBLocalObject
- Throws:
EJBException
isIdentical
public boolean isIdentical(EJBLocalObject other)
throws EJBException
- Specified by:
isIdentical in interface EJBLocalObject
- Throws:
EJBException
getSerializableObjectFactory
public SerializableObjectFactory getSerializableObjectFactory()
- Called from EJBUtils.EJBObjectOutputStream.replaceObject
- Specified by:
getSerializableObjectFactory in interface IndirectlySerializable
Copyright © 2012 GlassFish Community. All Rights Reserved.