|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.resource.spi Interface DissociatableManagedConnection
public interface DissociatableManagedConnection
这是一个混合接口,
ManagedConnection 实现可以有选择的实现。此接口的实现必须支持延时连接关联优化。
| version | 1.0 |
This is a mix-in interface that may be optionally implemented by a
ManagedConnection implementation. An implementation of
this interface must support the lazy connection association optimization.
- Version:
- 1.0
- Author:
- Ram Jeyaraman
| Method Summary | |
|---|---|
void |
dissociateConnections()
This method is called by an application server (that is capable of lazy connection association optimization) in order to dissociate a ManagedConnection instance from all of its connection
handles. |
| Method Detail |
|---|
public void
dissociateConnections() throws ResourceException
此方法由应用服务器(能够进行延时连接关联优化)调用,以便取消 ManagedConnection 实例与其所有连接句柄的关联。
| Throws | ResourceException: 如果执行操作失败,则抛出一般异常。 |
| Throws | ResourceAdapterInternalException: 资源适配器内部错误情况 |
| Throws | IllegalStateException: 调用连接清除时处于非法状态。例如,如果正在进行不允许清除连接的 localtransaction 操作。 |
dissociateConnections
void dissociateConnections()
throws ResourceException
- This method is called by an application server (that is capable of
lazy connection association optimization) in order to dissociate
a
ManagedConnectioninstance from all of its connection handles. - Throws:
ResourceException- generic exception if operation fails.ResourceAdapterInternalException- resource adapter internal error conditionIllegalStateException- Illegal state for calling connection cleanup. Example - if a localtransaction is in progress that doesn't allow connection cleanup.
|
|
|||||||||
| 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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!