|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.resource.spi Interface ResourceAdapterAssociation
- All Known Subinterfaces:
- ActivationSpec
public interface ResourceAdapterAssociation
Implemented by:
ActivationSpec
此接口指定将
ResourceAdapter 对象与其他实现此接口的对象(如 ManagedConnectionFactory 和 ActivationSpec)关联的方法。
| version | 1.0 |
This interface specifies the methods to associate a
ResourceAdapter object with other objects that
implement this interface like
ManagedConnectionFactory and ActivationSpec.
- Version:
- 1.0
- Author:
- Ram Jeyaraman
| Method Summary | |
|---|---|
ResourceAdapter |
getResourceAdapter()
Get the associated ResourceAdapter object. |
void |
setResourceAdapter(ResourceAdapter ra)
Associate this object with a ResourceAdapter object. |
| Method Detail |
|---|
public ResourceAdapter
getResourceAdapter()
获取关联的 ResourceAdapter 对象。
| return |
关联的 ResourceAdapter 对象。 |
getResourceAdapter
ResourceAdapter getResourceAdapter()
- Get the associated
ResourceAdapterobject. - Returns:
- the associated
ResourceAdapterobject.
public void
setResourceAdapter(ResourceAdapter ra) throws ResourceException
将此对象与 ResourceAdapter 对象关联。注意,此方法只能调用一次。也就是说,在此对象的生命周期内不得更改关联。
| ra |
要关联的 ResourceAdapter 对象。 |
| Throws | ResourceException: 一般异常。 |
| Throws | ResourceAdapterInternalException: 与资源适配器有关的错误情况。 |
| Throws | IllegalStateException: 指示调用该方法时此对象处于非法状态。例如,在同一对象上多次调用此方法时发生该异常。 |
setResourceAdapter
void setResourceAdapter(ResourceAdapter ra) throws ResourceException
- Associate this object with a
ResourceAdapterobject. Note, this method must be called exactly once. That is, the association must not change during the lifetime of this object. - Parameters:
ra-ResourceAdapterobject to be associated with.- Throws:
ResourceException- generic exception.ResourceAdapterInternalException- resource adapter related error condition.IllegalStateException- indicates that this object is in an illegal state for the method invocation. For example, this occurs when this method is called more than once on the same object.
|
|
|||||||||
| 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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!