org.objectweb.telosys.dal.sql
Class SqlConnectionPool
java.lang.Object
org.objectweb.telosys.common.TelosysObject
org.objectweb.telosys.dal.sql.SqlConnectionProvider
org.objectweb.telosys.dal.sql.SqlConnectionPool
- All Implemented Interfaces:
- ConnectionProvider
- public class SqlConnectionPool
- extends SqlConnectionProvider
Constructor Summary |
SqlConnectionPool(java.lang.String sName,
java.lang.String sDriver,
java.lang.String sUrl,
java.util.Properties prop,
int iIsolationLevel,
int iSize)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlConnectionPool
public SqlConnectionPool(java.lang.String sName,
java.lang.String sDriver,
java.lang.String sUrl,
java.util.Properties prop,
int iIsolationLevel,
int iSize)
isPool
public boolean isPool()
- Specified by:
isPool
in class SqlConnectionProvider
finalize
protected void finalize()
getFreeConnections
public int getFreeConnections()
getUsedConnections
public int getUsedConnections()
getInitialSize
public int getInitialSize()
getCurrentSize
public int getCurrentSize()
getConnection
public java.sql.Connection getConnection()
throws java.lang.Exception
- Description copied from interface:
ConnectionProvider
- Returns a standard JDBC Connection
- Specified by:
getConnection
in interface ConnectionProvider
- Specified by:
getConnection
in class SqlConnectionProvider
- Throws:
java.lang.Exception
findConnection
public SqlConnection findConnection()
throws java.lang.Exception
- Throws:
java.lang.Exception
getType
public int getType()
- Description copied from interface:
ConnectionProvider
- Returns the type of ConnectionProvider : FACTORY, POOL, DATASOURCE
- Returns: