package com.huawei.db;
import java.sql.* ;
public interface ConnectionPool
{
/**
* Gets a Connection from pool.
* @return the connection with a special Database.
* @exception SQLException when access database, or not.
*/
public Connection getConnection () throws SQLException ;
/**
* Release the Connection.
* @param conn the Connection be released.
*/
public void free (Connection conn) ;
public int getMaxConnectionNumber () ;
public int getCurrentConnectionNumber () ;
public void setMaxConnectionNumber(int maxlen) ;
/**
* Close this pool. Maybe all connections in this pool be closed.
*/
public void close () ;
}
import java.sql.* ;
public interface ConnectionPool
{
/**
* Gets a Connection from pool.
* @return the connection with a special Database.
* @exception SQLException when access database, or not.
*/
public Connection getConnection () throws SQLException ;
/**
* Release the Connection.
* @param conn the Connection be released.
*/
public void free (Connection conn) ;
public int getMaxConnectionNumber () ;
public int getCurrentConnectionNumber () ;
public void setMaxConnectionNumber(int maxlen) ;
/**
* Close this pool. Maybe all connections in this pool be closed.
*/
public void close () ;
}