org.objectweb.telosys.dal.sql
Class SqlConnectionFactory

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.dal.sql.SqlConnectionProvider
          extended byorg.objectweb.telosys.dal.sql.SqlConnectionFactory
All Implemented Interfaces:
ConnectionProvider

public class SqlConnectionFactory
extends SqlConnectionProvider


Field Summary
 
Fields inherited from interface org.objectweb.telosys.dal.sql.ConnectionProvider
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, pool creation
 
Method Summary
 java.sql.Connection getConnection()
          Returns a standard JDBC Connection
 int getType()
          Returns the type of ConnectionProvider : FACTORY, POOL, DATASOURCE
 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

SqlConnectionFactory

public SqlConnectionFactory(java.lang.String sName,
                            java.lang.String sDriver,
                            java.lang.String sUrl,
                            java.util.Properties prop,
                            int iIsolationLevel)
Constructor, pool creation

Parameters:
sName -
sDriver -
sUrl -
prop -
iIsolationLevel -
Method Detail

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

isPool

public boolean isPool()
Specified by:
isPool in class SqlConnectionProvider

getType

public int getType()
Description copied from interface: ConnectionProvider
Returns the type of ConnectionProvider : FACTORY, POOL, DATASOURCE

Returns: