|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.ejb Interface EJBMetaData
public interface EJBMetaData
EJBMetaData 接口允许客户端获得企业 Bean 的元数据信息。
元数据用于让开发工具用来构建部属企业 Bean 的应用程序,让客户端使用脚本语言访问企业 Bean。
注意,EJBMetaData 不是远程接口。实现此接口的类(该类一般由容器工具生成)必须可序列化,并且必须是有效的 RMI/IDL 值类型。
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 |
---|
public EJBHome
getEJBHome()
获得企业 Bean 的远程 home 接口。
return | 企业 Bean 的远程 home 接口。 |
getEJBHome
EJBHome getEJBHome()
- Obtain the remote home interface of the enterprise Bean.
- Returns:
- the remote home interface of the enterprise Bean.
public Class<T>
getHomeInterfaceClass()
获得企业 Bean 远程 home 接口的 Class 对象。
return | 企业 Bean 远程 home 接口的 Class 对象。 |
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.
public Class<T>
getRemoteInterfaceClass()
获得企业 Bean 远程接口的 Class 对象。
return | 企业 Bean 远程接口的 Class 对象。 |
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.
public Class<T>
getPrimaryKeyClass()
获得企业 Bean 的主键类的 Class 对象。
return | 企业 Bean 的主键类的 Class 对象。 |
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.
public boolean
isSession()
测试企业 Bean 的类型是否为“会话”。
return | 如果企业 Bean 的类型为会话 Bean,则返回 true。 |
isSession
boolean isSession()
- Test if the enterprise Bean's type is "session".
- Returns:
- True if the type of the enterprise Bean is session bean.
public boolean
isStatelessSession()
测试企业 Bean 的类型是否是“无状态会话”。
return | 如果企业 Bean 的类型为无状态会话,则返回 true。 |
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!