javax.ejb
Interface EJBObject
- All Superinterfaces:
- java.rmi.Remote
- All Known Subinterfaces:
- Account (src) , Account (src) , AddressRemote (src) , AggregateProfileService (src) , AllTypes (src) , AllTypes (src) , AuditSession (src) , AutoNumber (src) , Bad (src) , Bank (src) , Bank (src) , BmpCallback (src) , BMPHelperSession (src) , BMTStateful (src) , BMTStateless (src) , BusinessObject (src) , CalledRemote (src) , CalledSession (src) , CalleeRemote (src) , CallerIdentity (src) , CallerSession (src) , CheckBookMgr (src) , ClusteredHTTPSession (src) , CMPFindTestEntityRemote (src) , CMPFindTestSessionRemote (src) , ComplexEntity (src) , CtsBmp (src) , CtsCmp (src) , CtsCmp2Session (src) , Customer (src) , Customer (src) , Customer (src) , CustomPrincipal (src) , EJBLoad (src) , EJBTestRunner (src) , EJBThreads (src) , EnterpriseEntity (src) , EnterpriseEntity (src) , EnterpriseEntity (src) , Entity (src) , Entity (src) , Entity (src) , EntityBMP (src) , EntityExc (src) , EntityExceptionTester (src) , EntityPK (src) , EntitySession (src) , ExceptionTester (src) , ExceptionThrower (src) , Facade (src) , Facade (src) , Hello (src) , Hello (src) , Hello (src) , Hello (src) , HelloLog (src) , HelloRemote (src) , HelloRemote (src) , IdCounter (src) , IdGenerator (src) , IOSession (src) , IOSession (src) , JMSSession (src) , LOB (src) , Management (src) , MySession (src) , OrganizationClientRemote (src) , OrganizationRemote (src) , PerfTestSession (src) , PreparedStatementRemote (src) , Probe (src) , ProfileService (src) , ProjRepository (src) , ProjRepositoryAdmin (src) , Publisher (src) , PublisherCMP (src) , QueueRec (src) , Record (src) , RetrySession (src) , SecurityContext (src) , Session (src) , Session (src) , SessionA (src) , SessionA (src) , SessionB (src) , SessionB (src) , SessionToEntity (src) , SimpleBMP (src) , SimpleBMP (src) , SimpleEntity (src) , StatefulSession (src) , StatefulSession (src) , StatefulSession (src) , StatefulSession (src) , StatefulSession (src) , StatelessSession (src) , StatelessSession (src) , StatelessSession (src) , StatelessSession (src) , StatelessSession (src) , StatelessSession (src) , StatelessSession (src) , StatelessSession (src) , StatelessSession (src) , StatelessSession (src) , StatelessSession (src) , StrictlyPooledSession (src) , SubjectSession (src) , Teller (src) , Teller (src) , TestDataSource (src) , TestEjbLink (src) , TestENC (src) , TestSession (src) , TestSessionRemote (src) , TimerEntity (src) , TimerSFSB (src) , TimerSLSB (src) , TreeFacade (src) , TxSession (src) , TxSession (src) , TxTimeout (src) , UnshareableConnectionSession (src) , User (src) , XATest (src)
- public interface EJBObject
- extends java.rmi.Remote
The EJBObject interface is extended by all enterprise Bean's remote
interface. An enterprise Bean's remote interface provides the client's
view of an EJB object. An enterprise Bean's remote interface defines
the business methods callable by a client.
Each enterprise Bean has a remote interface. The remote interface must
extend the javax.ejb.EJBObject interface, and define the enterprise Bean
specific business methods.
The enterprise Bean's remote interface is defined by the enterprise Bean
provider and implemented by the enterprise Bean container.
getEJBHome
public EJBHome (src) getEJBHome()
throws java.rmi.RemoteException
- Obtain the enterprise Bean's remote home interface. The remote home interface defines the
enterprise Bean's create, finder, remove, and home business methods.
- Returns:
- A reference to the enterprise Bean's home interface.
- Throws:
java.rmi.RemoteException
- - Thrown when the method failed due to a system-level failure.
getPrimaryKey
public java.lang.Object getPrimaryKey()
throws java.rmi.RemoteException
Obtain the primary key of the EJB object.
This method can be called on an entity bean. An attempt to invoke this method on a session
bean will result in RemoteException.
- Returns:
- The EJB object's primary key.
- Throws:
java.rmi.RemoteException
- - Thrown when the method failed due to a system-level failure.
remove
public void remove()
throws java.rmi.RemoteException,
RemoveException (src)
- Remove the EJB object.
- Throws:
java.rmi.RemoteException
- - Thrown when the method failed due to a system-level failure.
RemoveException (src)
- - The enterprise Bean or the container does not allow destruction of the object.
getHandle
public Handle (src) getHandle()
throws java.rmi.RemoteException
- Obtain a handle for the EJB object. The handle can be used at later time to re-obtain a
reference to the EJB object, possibly in a different Java Virtual Machine.
- Returns:
- A handle for the EJB object.
- Throws:
java.rmi.RemoteException
- - Thrown when the method failed due to a system-level failure.
isIdentical
public boolean isIdentical(EJBObject (src) ejbo)
throws java.rmi.RemoteException
- Tests if a given EJB object is identical to the invoked EJB object.
- Parameters:
ejbo
- - An object to test for identity with the invoked object.
- Returns:
- True if the given EJB object is identical to the invoked object, false otherwise.
- Throws:
java.rmi.RemoteException
- - Thrown when the method failed due to a system-level failure.