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
-
-
Constructor Summary
Constructors Constructor Description StaticConnectionProvider(Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
Constructor Detail
-
StaticConnectionProvider
public StaticConnectionProvider(Connection connection)
-
-
Method Detail
-
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 interfaceConnectionProvider
- Parameters:
user
- the user name.password
- the password.- Returns:
- Throws:
SQLException
-
getConnectionHash
public Object getConnectionHash()
- Specified by:
getConnectionHash
in interfaceConnectionProvider
-
-