EJBMetaData (Java EE 5 SDK)

Java

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.


方法摘要
 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".
 

方法详细信息

getEJBHome

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

返回:
the remote home interface of the enterprise Bean.

getHomeInterfaceClass

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

返回:
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.

返回:
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.

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

isSession

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

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

isStatelessSession

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

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

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.