org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql
Interface ConnectionProvider
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- DriverConnectionProvider, JndiConnectionProvider, StaticConnectionProvider
public interface ConnectionProvider
- extends Serializable
Creation-Date: Dec 12, 2006, 1:53:44 PM
- Author:
- Thomas Morgner
Method Summary |
Connection |
createConnection(String user,
String password)
Although named getConnection() this method should always return a new connection when being queried or should wrap
the connection in a way so that calls to "close()" on that connection do not prevent subsequent calls to this
method to fail. |
Object |
getConnectionHash()
|
createConnection
Connection createConnection(String user,
String password)
throws SQLException
- Although named getConnection() this method should always return a new connection when being queried or should wrap
the connection in a way so that calls to "close()" on that connection do not prevent subsequent calls to this
method to fail.
- Parameters:
user
- the user name.password
- the password.
- Returns:
- the connection.
- Throws:
SQLException
- if the connection has errors.
getConnectionHash
Object getConnectionHash()