站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Java Platform, Enterprise Edition v5.0 API Specifications

EJBMetaData (Java EE 5 SDK) - Java Platform, Enterprise Edition v5.0 API Specifications

Java EE 5 SDK

javax.ejb
Interface EJBMetaData


public interface EJBMetaData

The EJBMetaData interface allows a client to obtain the enterprise Bean's meta-data information.

The meta-data is intended for development tools used for building applications that use deployed enterprise Beans, and for clients using a scripting language to access the enterprise Bean.

Note that the EJBMetaData is not a remote interface. The class that implements this interface (this class is typically generated by container tools) must be serializable, and must be a valid RMI/IDL value type.


Method Summary
 EJBHome getEJBHome()
          Obtain the remote home interface of the enterprise Bean.
 Class getHomeInterfaceClass()
          Obtain the Class object for the enterprise Bean's remote home interface.
 Class getPrimaryKeyClass()
          Obtain the Class object for the enterprise Bean's primary key class.
 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

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

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

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.

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.