javax.ejb
Interface EJBMetaData


public interface EJBMetaData

Metadata of EJB provided to the client.

Author:
Florent Benoit
See Also:
EJB 3.0 specification

Method Summary
 EJBHome getEJBHome()
          Obtain the remote home interface of the enterprise Bean.
 java.lang.Class getHomeInterfaceClass()
          Obtain the Class object for the enterprise Bean's remote home interface.
 java.lang.Class getPrimaryKeyClass()
          Obtain the Class object for the enterprise Bean's primary key class.
 java.lang.Class getRemoteInterfaceClass()
          Obtain the Class object for the enterprise Bean's remote interface.
 boolean isSession()
          Test if the enterprise Bean's type is "session".
 boolean isStatelessSession()
          Test if the enterprise Bean's type is "stateless session".
 

Method Detail

getEJBHome

EJBHome getEJBHome()
Obtain the remote home interface of the enterprise Bean.

Returns:
the remote home interface of the enterprise Bean.

getHomeInterfaceClass

java.lang.Class getHomeInterfaceClass()
Obtain the Class object for the enterprise Bean's remote home interface.

Returns:
the Class object for the enterprise Bean's remote home interface.

getRemoteInterfaceClass

java.lang.Class getRemoteInterfaceClass()
Obtain the Class object for the enterprise Bean's remote interface.

Returns:
the Class object for the enterprise Bean's remote interface.

getPrimaryKeyClass

java.lang.Class getPrimaryKeyClass()
Obtain the Class object for the enterprise Bean's primary key class.

Returns:
the Class object for the enterprise Bean's primary key class.

isSession

boolean isSession()
Test if the enterprise Bean's type is "session".

Returns:
True if the type of the enterprise Bean is session bean.

isStatelessSession

boolean isStatelessSession()
Test if the enterprise Bean's type is "stateless session".

Returns:
True if the type of the enterprise Bean is stateless session.


Copyright © 2008. All Rights Reserved.