org.objectweb.telosys.dal.sql
Interface ConnectionProvider

All Known Implementing Classes:
SqlConnectionProvider, SqlDataSource

public interface ConnectionProvider


Field Summary
static int DATASOURCE
           
static int FACTORY
           
static int NO_PROVIDER
           
static int POOL
           
 
Method Summary
 java.sql.Connection getConnection()
          Returns a standard JDBC Connection
 java.lang.String getName()
          Returns the name of the ConnectionProvider (from 'dbconfig' file)
 int getType()
          Returns the type of ConnectionProvider : FACTORY, POOL, DATASOURCE
 

Field Detail

NO_PROVIDER

public static final int NO_PROVIDER
See Also:
Constant Field Values

FACTORY

public static final int FACTORY
See Also:
Constant Field Values

POOL

public static final int POOL
See Also:
Constant Field Values

DATASOURCE

public static final int DATASOURCE
See Also:
Constant Field Values
Method Detail

getName

public java.lang.String getName()
Returns the name of the ConnectionProvider (from 'dbconfig' file)

Returns:

getConnection

public java.sql.Connection getConnection()
                                  throws java.lang.Exception
Returns a standard JDBC Connection

Returns:
Throws:
java.lang.Exception

getType

public int getType()
Returns the type of ConnectionProvider : FACTORY, POOL, DATASOURCE

Returns:
Since:
1.0.0