connectionvalidator.java
来自「java编写的数据库连接池的源代码。包含有连接池的源码。」· Java 代码 · 共 21 行
JAVA
21 行
/*
DBPool - JDBC Connection Pool Manager
Copyright (c) Giles Winstanley
*/
package snaq.db;
import java.sql.*;
/**
* Interface for validating database connections.
* This interface can be implemented by a class in order to provide custom
* database connection validation. To use the custom validator class make
* sure you call the <tt>setValidator</tt> method in either the
* <tt>ConnectionPool</tt> object or the <tt>ConnectionPoolManager</tt>
* in your code (or use the properties file version with the pool manager).
* @author Giles Winstanley
*/
public interface ConnectionValidator
{
boolean isValid(Connection con);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?