ValidatingManagedConnectionFactory (Java EE 5)

Java EE API


javax.resource.spi Interface ValidatingManagedConnectionFactory


public interface ValidatingManagedConnectionFactory


此接口由支持验证 ManagedConnection 对象的 ManagedConnectionFactory 实例实现。

应用服务器可以使用此接口将无效的 ManagedConnection 对象从其连接池中清除。

英文文档:

This interface is implemented by a ManagedConnectionFactory instance that supports the ability to validate ManagedConnection objects.

This may be used by the application server to prune invalid ManagedConnection objects from its connection pool.

Version:
1.0
Author:
Ram Jeyaraman

Method Summary
 Set
 

Method Detail

public java.util.Set<E> getInvalidConnections(java.util.Set<E> connectionSet) throws ResourceException
此方法返回从指定的 ManagedConnection 对象集合中选出的无效 ManagedConnection 对象集合。
connectionSet 需要验证的 ManagedConnection 对象集合。
return 无效的 ManagedConnection 对象集合。
ThrowsResourceException: 一般异常。
英文文档:

getInvalidConnections

Set getInvalidConnections(Set connectionSet)
                          throws ResourceException
This method returns a set of invalid ManagedConnection objects chosen from a specified set of ManagedConnection objects.

Parameters:
connectionSet - a set of ManagedConnection objects that need to be validated.
Returns:
a set of invalid ManagedConnection objects.
Throws:
ResourceException - generic exception.


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!