java.lang.Objectorg.objectweb.telosys.common.TelosysObject
org.objectweb.telosys.dal.sql.SqlConnectionProvider
org.objectweb.telosys.dal.sql.SqlConnectionFactory
Factory designed to create standalone connections
( connections that doesn't belong to a 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 | |
SqlConnectionFactory(java.lang.String sName,
java.lang.String sDriver,
java.lang.String sUrl,
java.util.Properties prop,
int iIsolationLevel)
Constructor |
Method Summary | |
java.sql.Connection |
getConnection()
Returns a standard JDBC Connection |
int |
getType()
Returns the type of ConnectionProvider : FACTORY, POOL, DATASOURCE, CUSTOMCLASS |
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SqlConnectionFactory(java.lang.String sName, java.lang.String sDriver, java.lang.String sUrl, java.util.Properties prop, int iIsolationLevel)
sName
- the connection provider namesDriver
- the JDBC driver to usesUrl
- the JDBC URLprop
- the connection propertiesiIsolationLevel
- the "isolation level"Method Detail |
public java.sql.Connection getConnection() throws java.lang.Exception
ConnectionProvider
java.lang.Exception
public boolean isPool()
public int getType()
ConnectionProvider