org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql
Class StaticConnectionProvider
java.lang.Object
org.pentaho.reporting.engine.classic.core.modules.misc.datafactory.sql.StaticConnectionProvider
- All Implemented Interfaces:
- Serializable, ConnectionProvider
public class StaticConnectionProvider
- extends Object
- implements ConnectionProvider
Creation-Date: 07.04.2006, 14:54:57
- Author:
- Thomas Morgner
- See Also:
- Serialized Form
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()
|
StaticConnectionProvider
public StaticConnectionProvider(Connection connection)
createConnection
public 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.
- Specified by:
createConnection
in interface ConnectionProvider
- Parameters:
user
- the user name.password
- the password.
- Returns:
-
- Throws:
SQLException
getConnectionHash
public Object getConnectionHash()
- Specified by:
getConnectionHash
in interface ConnectionProvider