java.lang.Objectorg.objectweb.telosys.common.TelosysObject
org.objectweb.telosys.dal.sql.SqlConnectionProvider
org.objectweb.telosys.dal.sql.SqlConnectionPool
The standard connection pool This class is a "ConnectionProvider"
Field Summary |
Fields inherited from interface org.objectweb.telosys.dal.sql.ConnectionProvider |
CUSTOMCLASS, DATASOURCE, FACTORY, NO_PROVIDER, POOL |
Constructor Summary | |
SqlConnectionPool(java.lang.String sName,
java.lang.String sDriver,
java.lang.String sUrl,
java.util.Properties prop,
int iIsolationLevel,
int iSize)
Constructor |
Method Summary | |
protected void |
finalize()
|
java.sql.Connection |
getConnection()
Returns a standard JDBC Connection |
int |
getCurrentSize()
|
int |
getFreeConnections()
|
int |
getInitialSize()
|
int |
getType()
Returns the type of ConnectionProvider : FACTORY, POOL, DATASOURCE, CUSTOMCLASS |
int |
getUsedConnections()
|
boolean |
isPool()
|
Methods inherited from class org.objectweb.telosys.dal.sql.SqlConnectionProvider |
createStandardJdbcConnection, getName |
Methods inherited from class org.objectweb.telosys.common.TelosysObject |
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SqlConnectionPool(java.lang.String sName, java.lang.String sDriver, java.lang.String sUrl, java.util.Properties prop, int iIsolationLevel, int iSize)
sName
- the connection provider namesDriver
- the JDBC driver to usesUrl
- the JDBC URLprop
- the connection propertiesiIsolationLevel
- the "isolation level"iSize
- the initial size of the poolMethod Detail |
public boolean isPool()
protected void finalize()
public int getFreeConnections()
public int getUsedConnections()
public int getInitialSize()
public int getCurrentSize()
public java.sql.Connection getConnection() throws java.lang.Exception
ConnectionProvider
java.lang.Exception
public int getType()
ConnectionProvider